summaryrefslogtreecommitdiff
path: root/spec/controllers/admin
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'ce-port-315-log-impersonation-actions-in-audit-log' into 'master'Ash McKenzie2019-07-231-0/+6
|\ | | | | | | | | CE Port: Log impersonation actions in audit log See merge request gitlab-org/gitlab-ce!31039
| * CE Port: Log impersonation actions in audit logce-port-315-log-impersonation-actions-in-audit-logmanojmj2019-07-231-0/+6
| | | | | | | | | | | | This change adds audit logs for user impersonation when an admin starts/stops impersonating another user.
* | Bring backward compatibility for request profilesKamil Trzciński2019-07-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | It seems that we missed the backward compatibility support for profiles in the existing folder. This commit also fixes some specs to be idempotent and work in a temporary directory which not always seems to be the case. This commit also brings the profile_spec.rb which seems to be missing.
* | Style rules; Revert some examplesFabio Papa2019-07-191-4/+2
| |
* | Make subgroup_creation_level default to maintainer at SQL levelFabio Papa2019-07-191-4/+3
| | | | | | | | | | | | - Migration updates existing groups to "owner", then sets default to "maintainer" so that new groups will default to that - Update spec examples
* | Style rules; Revert some examplesFabio Papa2019-07-191-2/+5
| |
* | Apply changes recomended by merge request coachFabio Papa2019-07-191-2/+0
| |
* | Make subgroup_creation_level default to maintainer at SQL levelFabio Papa2019-07-191-1/+1
| | | | | | | | | | | | - Migration updates existing groups to "owner", then sets default to "maintainer" so that new groups will default to that - Update spec examples
* | Style rules; Revert some examplesFabio Papa2019-07-191-0/+2
| |
* | Apply changes recomended by merge request coachFabio Papa2019-07-191-4/+2
| |
* | Make subgroup_creation_level default to maintainer at SQL levelFabio Papa2019-07-191-4/+3
| | | | | | | | | | | | - Migration updates existing groups to "owner", then sets default to "maintainer" so that new groups will default to that - Update spec examples
* | Style rules; Revert some examplesFabio Papa2019-07-191-2/+7
| |
* | Add examples specing the setting to choose who can create subgroupsFabio Papa2019-07-191-0/+6
| | | | | | | | | | | | | | This setting is at the group level only. The default is specified to be maintainers and owners. **Specs only**, all failing.
* | Add profile mode to extend request profilingadd-profile-mode-to-extend-request-profilingQingyu Zhao2019-07-181-19/+44
| | | | | | | | | | | | | | Extend the support for "X-Profile-Token: <token>" to have an additional header that defines type of profile we are looking for, like: X-Profile-Mode: execution X-Profile-Mode: memory
* | Cleanup usages of `JSON.parse` in specsPeter Leitzen2019-07-161-1/+1
| | | | | | | | Prefer `json_response` where applicable.
* | Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-121-2/+3
|/ | | | Updates changed method names and fixes spec failures
* Remove instance_clusters feature_flagremove_group_and_instance_clusters_feature_flagThong Kuah2019-06-282-57/+29
| | | | | | Now we have terminals for instance and group clusters we can remove the FF now. Deploying to instance clusters has been working without complaints too.
* Use next_instance_of instead of any_instance_ofBob Van Landuyt2019-06-201-2/+7
| | | | | For prepended classes, we need to use `expect_next_instance_of` instead of RSpecs `any_instance_of` variants.
* Update application settings using correct actionBrett Walker2019-06-191-0/+28
| | | | | | | Updating multiple application settings panels through a single action causes the incorrect action to be shown when there are errors. Instead, make each panel action handle both updating and display.
* Allow switching clusters between managed/unmanagedTiger2019-06-181-0/+4
| | | | | | Any resources created while the cluster was managed will be untouched, allowing users to set/unset this flag as they please.
* Change specs to match gitlab code standardsJames Fargher2019-05-071-10/+10
|
* Stop using `go` function in clusters controller specsJames Fargher2019-05-071-54/+54
|
* Check instance cluster feature at policy levelJames Fargher2019-05-071-0/+10
| | | | Try to simplify feature flag checks by using policies
* Instance level kubernetes clusters adminJames Fargher2019-05-072-0/+679
| | | | | Instance level clusters were already mostly supported, this change adds admin area controllers for cluster CRUD
* Add some frozen string to spec/**/*.rbgfyoung2019-04-1514-0/+28
| | | | | | | | | | Adds frozen string to the following: * spec/bin/**/*.rb * spec/config/**/*.rb * spec/controllers/**/*.rb xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-091-0/+22
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Add part of needed codeGosia Ksionek2019-04-052-0/+13
| | | | | | | | | | | | | | | | | Add columns to store project creation settings Add project creation level column in groups and default project creation column in application settings Remove obsolete line from schema Update migration with project_creation_level column existence check Rename migrations to avoid conflicts Update migration methods Update migration method
* Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-051-22/+0
| | | This reverts merge request !26823
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-051-0/+22
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Fix undefined variable error on json project viewsAlejandro Rodríguez2019-03-181-0/+10
| | | | | | This mistake seems to have always been there, but it only resulted in errors on the `/explore*.json` since they were the one that _actually_ relied on the local variables.
* Show header and footer system messages in emailAlexandru Croitor2019-02-271-6/+42
| | | | | | | | | | | * Add email_header_and_footer_enabled flag to appearances table * Set email_header_and_footer_enabled default value to false * Add checkbox to appearance to toggle show header and footer in emails * Add email_header_and_footer_enabled to allowed params in controller * Add header and footer messages to the html and text email layouts * Remove the color styling for emails header and footer * Add empty_mailer layout for emails without layout, to have the header and footer applied
* Remove N+1 query for tags in /admin/runners pageStan Hu2019-02-261-1/+18
| | | | | | | | As discussed in https://github.com/mbleigh/acts-as-taggable-on/issues/91, we can avoid N+1 queries if we use `tags` instead of `tag_list`. Seen while reviewing https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19740.
* Merge branch 'sh-fix-users-controller-ruby-2.6-compat' into 'master'Douwe Maan2019-02-251-0/+14
|\ | | | | | | | | Make Admin::UsersController work with Ruby 2.6 See merge request gitlab-org/gitlab-ce!25316
| * Make Admin::UsersController work with Ruby 2.6Stan Hu2019-02-191-0/+14
| | | | | | | | | | | | | | | | | | | | | | Ruby 2.6 introduced `Enumerable#filter`, which takes no arguments. Attempting to call `filter` on an `ActiveRecord::Relation` with a scope will fail with a `wrong number of arguments (given 1, expected 0)` message because the `Enumerable#filter` implementation overrides the delegated `ActiveRecord::Relation#filter` method. To make Admin::UsersController compatible with Ruby 2.6, rename `User.filter` to `User.filter_items`.
* | Port EE System Header And Footer feature to CEDouwe Maan2019-02-211-0/+55
|/ | | | | | | | remove EE specific code remove EE licence checks move migration from EE to CE folder structure move specs from EE to CE folder structure remove EE specific flag specs
* Admin section finds users case-insensitivelyRobert Speicher2019-02-121-0/+11
| | | | | | | Previously, if you entered a username in the URL manually to view a specific user, the lookup was done case-sensitively, despite usernames being case-insensitive, often resulting in a 404. We now use the same `find_routable!` logic as the non-admin Users controller.
* Fix requests profiler in admin page not rendering HTML properlyStan Hu2019-01-091-0/+47
| | | | | | | | By default in Rails 5, content passed to `render` will be escaped. This doesn't work for the HTML profile output, which should be considered safe HTML already. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56152
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-1910-57/+63
| | | | | | | | | | Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
* Add config to disable impersonationImre Farkas2018-11-291-0/+12
| | | | | | | | Adds gitlab.impersonation_enabled config option defaulting to true to keep the current default behaviour. Only the act of impersonation is modified, impersonation token management is not affected.
* Remove Git circuit breakerZeger-Jan van de Weg2018-10-101-10/+2
| | | | | | | Was introduced in the time that GitLab still used NFS, which is not required anymore in most cases. By removing this, the API it calls will return empty responses. This interface has to be removed in the next major release, expected to be 12.0.
* Prepare admin/projects/show view to allow EE specific featureGabriel Mazetto2018-10-051-0/+11
| | | | | | | In EE it will render a Geo Status widget when Geo is enabled and it is in a secondary node. Also added minimal specs to that action.
* Simplify runner registration token resettingTomasz Maczukin2018-10-041-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add receive_max_input_size setting to Application settingsRubén Dávila2018-09-071-0/+7
| | | | | If user has configure the setting then it will be passed to gitlab-shell and gitlab-workhorse
* Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-modelsgfyoung2018-07-261-1/+1
| | | | Partially addresses #47424.
* Rails5 ActionController::ParameterMissing: param is missing or the value is ↵Jasper Maes2018-06-131-1/+1
| | | | empty: application_setting
* Update invalid test application_settings_controller_spec.rbDmitriy Zaporozhets2018-04-141-3/+2
| | | | | | | | | | | | There are 2 problems with this spec: 1. It checks for default visiblity level however there is not code in controller to handle such default. Same check can be performed on model directly. 2. It passes empty application_setting hash while controller requires application_setting not to be empty by using `require` with `permit` Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove N+1 queries in /admin/projects pageStan Hu2018-03-191-0/+10
|
* Gitaly Server info for admin panelZeger-Jan van de Weg2018-01-311-0/+15
| | | | | | | | | | | | Implements the client side for gitlab-org/gitaly#819. Which is a server info command. This checks the server version and git binairy version on the server. A small UI was added for administrators, so they can check the status of the Gitaly server. This is done for each storage the monolith knows. Because of this commit, gitlab-org/gitlab-ce!15580 is now closed. That MR removed the Git version too, but didn't replace it with anything.
* Permits 'password_authentication_enabled_for_git' parameter for ↵Mark Fletcher2018-01-191-0/+7
| | | | ApplicationSettingsController
* reference triggers.values for permitted parametersAlexis Reigel2018-01-171-3/+4
|