Commit Graph

189 Commits

Author SHA1 Message Date
Thong Kuah ebf87fd9c2 Unify into :group_clusters feature flag
With this MR, group clusters is now functional, so default to enabled.

Have a single setting on the root ancestor group to enabled or disable
group clusters feature as a whole
2018-12-05 10:16:44 +13:00
Mayra Cabrera 675bfd50a9 Adds feature flag for Group Clusters
As the frontend is still in progress and other related backend is still
in prgress we need a feature flag to turn off Group Clusters.
2018-11-08 23:26:04 +13:00
Thong Kuah 54e8ff0f21 Extend clusters_controller for group type clusters
- Add pages javascripts to intialize clusters for group pages

- Move specs asserting gcp specific validations from controller into
UpdateService spec

- Also teach Clusters::ApplicationController about groups
2018-11-08 23:14:06 +13:00
Marcel Amirault 14fc739c94 Renaming Secret Variables in the codebase 2018-10-30 08:49:26 +00:00
Sean McGivern fcd2f35b50 Merge branch 'rz_fix_milestone_count' into 'master'
Fixing count on Milestones

Closes #50848

See merge request gitlab-org/gitlab-ce!21446
2018-10-29 10:23:46 +00:00
Brett Walker 7aeab58f48 Automatically navigate to last board visited 2018-10-26 12:49:16 +00:00
Eagllus 074fafe9e0 Update code according comment recommendations 2018-10-16 15:13:03 +02:00
Dmitriy Zaporozhets 7876a7397d Merge branch 'dz-labels-subscribe-filter' into 'master'
Add subscribe filter to labels page

See merge request gitlab-org/gitlab-ce!21965
2018-10-04 13:41:48 +00:00
Dmitriy Zaporozhets 600a10b9d1 Add subscribe filter to labels page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-10-04 10:24:50 +02:00
Tomasz Maczukin 42af229510
Simplify runner registration token resetting
This icommit adds several changes related to the same topic
- resetting a Runner registration token:

1. On Project settings page it adds a button for resetting the
   registration token and it removes the Runner token field
   that was confusing all GitLab users.

2. On Group settings page it adds the same button for resetting
   the registration token.

3. On Admin Runners settings page it moves the button to the same
   place as in Project and Group settings and it changes slightly
   the page layout to make it more similar to Group and Project
   setting pages.

4. It refactorizes a little the partial that prints runner
   registration description. Thanks to this Project, Group
   and Admin settings of the Runner are re-using the same
   code to generate the button.

5. Updates the translations of changed text.
2018-10-04 08:37:01 +02:00
Stan Hu cc8424d4e8 Merge branch 'frozen-string-app-controller-more' into 'master'
Enable more frozen string in app/controllers/

See merge request gitlab-org/gitlab-ce!21873
2018-09-25 17:21:14 +00:00
gfyoung be42c05054 Enable more frozen string in app/controllers/
Enables frozen string for the following:

* app/controllers/dashboard/**/*.rb
* app/controllers/explore/**/*.rb
* app/controllers/google_api/**/*.rb
* app/controllers/groups/**/*.rb
* app/controllers/import/**/*.rb
* app/controllers/instance_statistics/**/*.rb
* app/controllers/ldap/**/*.rb
* app/controllers/oauth/**/*.rb
* app/controllers/profiles/**/*.rb

Partially addresses #47424.
2018-09-23 12:48:02 -07:00
Dmitriy Zaporozhets 9176ea999a
Move group labels AR code into finder
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-21 16:34:18 +03:00
Dmitriy Zaporozhets 8d19f4b4a6
Add sort dropdown to project labels page and group labels page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-10 15:34:36 +03:00
Dmitriy Zaporozhets 534f8152c6
Use optionally_search for group labels index page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-07 17:16:26 +03:00
Dmitriy Zaporozhets eca3015d88
Fix group labels page timeout if many projects and labels
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-07 15:26:32 +03:00
Dmitriy Zaporozhets 400cc09f72
Add search to group labels page [ci skip]
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-09-03 19:00:28 +03:00
Winnie Hellmann 743add978a Move badge settings to general settings 2018-09-03 13:16:23 +00:00
Sean McGivern 722631a929 Merge branch 'issue_36138' into 'master'
Allow to delete group milestones

Closes #36138

See merge request gitlab-org/gitlab-ce!21057
2018-08-28 07:49:09 +00:00
Felipe Artur abb50ff471 Allow to delete group milestones 2018-08-06 17:31:47 -03:00
Bob Van Landuyt f1d3ea63cf Show the status of a user in interactions
The status is shown for
- The author of a commit when viewing a commit
- Notes on a commit (regular/diff)
- The user that triggered a pipeline when viewing a pipeline
- The author of a merge request when viewing a merge request
- The author of notes on a merge request (regular/diff)
- The author of an issue when viewing an issue
- The author of notes on an issue
- The author of a snippet when viewing a snippet
- The author of notes on a snippet
- A user's profile page
- The list of members of a group/user
2018-07-30 15:01:26 +02:00
Lin Jen-Shin 4ee08b77bc Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
Jan Provaznik 656d4ebf67 Add workhorse authorize method for project/group uploads
This method can be used by workhorse to get presigned
URLs used for direct upload of files.
2018-06-18 09:11:02 +02:00
Luke Bennett 0af7333ef9
Merge remote-tracking branch 'origin/master' into 39549-label-list-page-redesign-with-draggable-labels 2018-06-06 08:50:13 +01:00
Rémy Coutable 4ccf4d3394 Merge branch '5941-extract-ee-controllers' into 'master'
Backport of "Extract EE specific files/lines for app/controllers/groups"

See merge request gitlab-org/gitlab-ce!19343
2018-06-06 05:57:55 +00:00
Luke Bennett 3f9cdb9c98
Merge remote-tracking branch 'origin/master' into 39549-label-list-page-redesign-with-draggable-labels 2018-06-05 11:55:32 +01:00
Mario de la Ossa fd97b86ed4
Backport changes to app/controllers/groups/milestones_controller.rb 2018-06-04 13:49:38 -06:00
Mario de la Ossa 4dbd28eea4
Backport changes to app/controllers/groups/group_members_controller.rb 2018-06-04 13:49:38 -06:00
Bob Van Landuyt 2f50b206f2 Hide archived projects from `shared_projects`
Since we don't show the archived projects, we shouldnot  load them and
pass them to the fronted to be filtered out again.
2018-06-04 17:43:13 +02:00
Toon Claes 1298fbe18d Fix small typos 2018-05-29 11:45:17 +02:00
Bob Van Landuyt 6072259230 Add `shared_projects` endpoint
This endpoint lists projects shared with a group visible to the
current user.

The `filter` and `sort` params are supported like on the `children` endpoint.
2018-05-29 11:45:17 +02:00
Luke Bennett a9583bc956
Merge remote-tracking branch 'origin/master' into 39549-label-list-page-redesign-with-draggable-labels 2018-05-28 12:27:06 +01:00
Luke Bennett c896ae7be8
BE review 2018-05-25 12:38:45 +01:00
Felipe Artur 97067682ec CE backport - Allow viewing only one board when multiple issue boards is not enabled 2018-05-22 15:04:20 -03:00
Luke Bennett 2fd334b86a
Fix group labels list 2018-05-17 16:14:17 +01:00
Francisco Javier López 14032b8a85
Fixed badge api endpoint route when relative_url is set 2018-05-17 11:45:59 +02:00
Dmitriy Zaporozhets 61e9a3dcc4
Add 2FA filter to group members page
* Show 2fa badge on a group members page
* Make group members page UI consistent with project members page
* Fix ambiguous sql in User.with/without_two_factor methods

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-05-10 13:02:56 +03:00
Kamil Trzciński 33b660be62 Support anchors for Groups::RunnersController 2018-05-07 15:53:55 +02:00
Dylan Griffith 131ca31b23 Add a comment about implementing proper policies for group runner permissions 2018-05-07 14:06:29 +02:00
Dylan Griffith 3762b910eb Rename set_runner -> runner in runner controllers 2018-05-07 08:54:08 +02:00
Dylan Griffith 4ec95dc404 Share _form and show for project, instance and group runners 2018-05-07 08:54:08 +02:00
Dylan Griffith 91f358942e Allow to pause,resume,show,edit,destroy group runners (#10244) 2018-05-07 08:54:07 +02:00
blackst0ne 350e26b8a6 [Rails5] Use `safe_params` instead of `params` in `url_for` helpers
This commits replaces `params` with `safe_params` in `url_for` helpers
to resolve security issues [1] and failing specs with the

```
ArgumentError:
  Attempting to generate a URL from non-sanitized request parameters!
  An attacker can inject malicious data into the generated URL, such as
  changing the host. Whitelist and sanitize passed parameters to be secure.
```

error.

[1]: https://gitlab.com/gitlab-org/gitlab-ce/issues/45168
2018-04-28 21:35:16 +11:00
Luke Bennett e5ae43e23f
Start changing group label page 2018-04-25 11:56:54 +01:00
🙈 jacopo beschi 🙉 c6b1043e9d Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
Francisco Javier López 31dd86b636 Projects and groups badges settings UI 2018-04-08 10:20:05 +00:00
Felipe Artur 22423d2847 Show issues of subgroups in group-level issue board 2018-04-05 14:58:49 -03:00
blackst0ne 3d3b46f344 [Rails5] Rename `sort` methods to `sort_by_attribute` 2018-04-04 09:19:47 +00:00
Matija Čupić 05103f080c
Make Variable key not secret 2018-03-22 12:08:16 +01:00
Matija Čupić 53915c5c54
Alias secret_key and secret_value to key and value 2018-03-17 16:33:36 +01:00