summaryrefslogtreecommitdiff
path: root/spec/controllers
Commit message (Collapse)AuthorAgeFilesLines
* Add gitlab-managed option to clusters formMayra Cabrera2019-05-032-3/+59
| | | | | | | | When this option is enabled, GitLab will create namespaces and service accounts as usual. When disabled, GitLab wont create any project specific kubernetes resources Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56557
* Adds a way to start multiple manual jobs in stageMayra Cabrera2019-05-021-0/+72
| | | | | | | | | | - Adds an endpoint on PipelinesController - Adds a service that iterates over every build in a stage and plays it. - Includes 'play_manual' details on EntitySerializer - Builds a new Stage state: PlayManual. An stage can take this status if it has manual builds or an skipped, scheduled or manual status - Includes FE modifications and specs
* Update metrics dashboard API to load yml from repoSarah Yasonik2019-05-011-7/+84
| | | | | | | | | | | Updates the EnvironmentController#metrics_dashboard endpoint to support a "dashboard" param, which can be used to specify the filepath of a dashboard configuration from a project repository. Dashboard configurations are expected to be stored in .gitlab/dashboards/. Updates dashboard post-processing steps to exclude custom metrics, which should only display on the system dashboard.
* Remove xit test for uninstall group cluster appDylan Griffith2019-04-291-60/+0
|
* DELETE clusters/:id/:application endpointThong Kuah2019-04-292-0/+122
| | | | Add endpoint to delete/uninstall a cluster application
* Load environment metrics only for JSON endpointPeter Leitzen2019-04-291-4/+4
| | | | | | | | When showing the HTML version of the environment metrics we don't need to fetch their metrics because we don't use them anymore on the HTML version. We use additional_metrics.json endpoint now.
* Merge branch '60383-setup-dashboard-endpoint' into 'master'Grzegorz Bizon2019-04-281-0/+37
|\ | | | | | | | | | | | | Create dashboards endpoint & setup dashboard post-processing Closes #60383 See merge request gitlab-org/gitlab-ce!27405
| * Prefer safe_load and deep_symbolize_keyssyasonik2019-04-251-1/+1
| |
| * Defend against dashboard errors, rework sequencesyasonik2019-04-241-0/+13
| |
| * Inherit from BaseServicerpereira22019-04-241-2/+2
| | | | | | | | | | Change MetricsDashboard::Service to inherit from BaseService so that it can reuse methods like initialize, success, error.
| * Add unit tests and fix broken endpointsyasonik2019-04-241-0/+24
| |
* | Add ProjectMetricsDashboardSetting model and tableReuben Pereira2019-04-261-0/+14
| | | | | | | | | | | | This new table will be used to store the external_dashboard_url which allows users to add a link to their external dashboards (ex Grafana) to the Metrics dashboard.
* | Merge branch '57171-operations-controller-spec-refactor' into 'master'Grzegorz Bizon2019-04-261-106/+110
|\ \ | | | | | | | | | | | | | | | | | | Refactor operations controller spec Closes #57171 See merge request gitlab-org/gitlab-ce!27558
| * | Fix a bug in shared_examples definition57171-operations-controller-spec-refactorrpereira22019-04-251-1/+1
| | |
| * | Move shared context to top of spec filerpereira22019-04-241-60/+52
| | | | | | | | | | | | | | | - Rename the shared_context - Use expect in stub_operations_update_service_returning.
| * | Refactor operations controller specrpereira22019-04-221-105/+117
| | | | | | | | | | | | | | | - Move specs into a shared_context so that they can be reused. - Move common specs out of a more specific context.
* | | Merge branch '60906-fix-wiki-links' into 'master'Stan Hu2019-04-251-0/+24
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Use wiki partial in search results Closes #60906 See merge request gitlab-org/gitlab-ce!27634
| * | | Use wiki partial in search resultsMario de la Ossa2019-04-251-0/+24
| | | |
* | | | Added list_pages method to avoid loading all wiki pages contentFrancisco Javier López2019-04-251-5/+17
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inside a wiki, when we show the sidebar or browse to the `pages`, all page contents are retrieved from Gitaly and that is a waste of resources, since no content from that pages are going to be showed. This MR introduces the method `ProjectWiki#list_pages`, which uses new wiki_list_pages RPC call to retrieve pages without content Also in the `WikisController` we're using the method to show pages in the sidebar and also on the `pages` page.
* | | Redirect to settings page on invalid updateMatija Čupić2019-04-241-0/+9
| |/ |/|
* | Revert Rails.application.env_config after using mock_auth_hashRémy Coutable2019-04-231-1/+5
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch ↵Kamil Trzciński2019-04-231-42/+68
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | '60569-timeline-entry-label-link-is-not-applying-the-filter-on-issues' into 'master' Adds `label_name` back as a scalar param in `IssuableFinder` Closes #60569 See merge request gitlab-org/gitlab-ce!27507
| * | Add label_name as scalar param of IssuableFinder60569-timeline-entry-label-link-is-not-applying-the-filter-on-issuesHeinrich Lee Yu2019-04-231-42/+68
| |/ | | | | | | This was removed by a previous MR but broke some links
* | Check that source and target branch existStan Hu2019-04-181-1/+1
|/ | | | | This ensures the return value is consistent if the source and/or branch do not exist.
* Migrate correlation and tracing code to LabKitan-use-labkitAndrew Newdigate2019-04-181-1/+1
| | | | | | | | | | | | | | | This change is a fairly straightforward refactor to extract the tracing and correlation-id code from the gitlab rails codebase into the new LabKit-Ruby project. The corresponding import into LabKit-Ruby was in https://gitlab.com/gitlab-org/labkit-ruby/merge_requests/1 The code itself remains very similar for now. Extracting it allows us to reuse it in other projects, such as Gitaly-Ruby. This will give us the advantages of correlation-ids and distributed tracing in that project too.
* Add ability to do variable substitutionReuben Pereira2019-04-151-0/+33
| | | | | | - In prometheus proxy api, allow variables to be replaced. For example, if 'up{env="%{ci_environment_slug}"}' is passed to the endpoint, it becomes 'up{env="production"}' before being sent to prometheus.
* Merge branch 'sh-validate-ref-name-in-commit' into 'master'Rémy Coutable2019-04-151-0/+20
|\ | | | | | | | | | | | | Validate refs used in controllers don't have spaces Closes #58572 and gitaly#1425 See merge request gitlab-org/gitlab-ce!24037
| * Validate refs used in controllers don't have spacessh-validate-ref-name-in-commitStan Hu2019-04-141-0/+20
| | | | | | | | | | | | | | This avoids an unnecessary call to Gitaly and reduces gRPC errors. * Closes https://gitlab.com/gitlab-org/gitaly/issues/1425 * Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58572
* | Add some frozen string to spec/**/*.rbgfyoung2019-04-15149-4/+300
|/ | | | | | | | | | 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
* Align UrlValidator to validate_url gem implementation.Thong Kuah2019-04-111-1/+1
| | | | | | | Renamed UrlValidator to AddressableUrlValidator to avoid 'url:' naming collision with ActiveModel::Validations::UrlValidator in 'validates' statement. Make use of the options attribute of the parent class ActiveModel::EachValidator. Add more options: allow_nil, allow_blank, message. Renamed 'protocols' option to 'schemes' to match the option naming from UrlValidator.
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-0922-21/+541
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Merge branch 'osw-multi-assignees-merge-requests' into 'master'Nick Thomas2019-04-091-3/+3
|\ | | | | | | | | [Backport] Support multiple assignees for merge requests See merge request gitlab-org/gitlab-ce!27089
| * [CE] Support multiple assignees for merge requestsosw-multi-assignees-merge-requestsOswaldo Ferreira2019-04-081-3/+3
| | | | | | | | | | Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
* | Resolve Environments#additional_metrics TypeError, ensure unix formatSarah Yasonik2019-04-091-0/+11
| |
* | Set release name when adding release notes to an existing tagJason Goodman2019-04-091-8/+53
|/ | | | Also set the release sha and author
* Enable Gitaly FindCommit caching for TreeControllersh-add-gitaly-ref-name-caching-tree-controllerStan Hu2019-04-071-0/+2
| | | | | | Accessing /namespace/project/tree/master appears to query FindCommit 5 times with identical parameters. This reduces the number of FindCommit queries to 1.
* Expand FindCommit caching to blob and refssh-improve-find-commit-cachingStan Hu2019-04-062-0/+6
| | | | | | | | | | | This enables FindCommit caching to the following actions: * BlobController#show * RefsController#logs_tree It also improves caching in CommitsController since some duplicate requests were occuring inside the before_action definitions.
* Add Knative metrics to PrometheusChris Baumbauer2019-04-061-0/+9
|
* Add part of needed codeGosia Ksionek2019-04-053-0/+20
| | | | | | | | | | | | | | | | | 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
* Merge branch 'revert-3962b00b' into 'master'Andreas Brandl2019-04-0522-541/+21
|\ | | | | | | | | Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'" See merge request gitlab-org/gitlab-ce!27051
| * Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-0522-541/+21
| | | | | | This reverts merge request !26823
* | Enable FindCommit caching for project and commits pagesStan Hu2019-04-052-0/+6
|/ | | | | This reduces a handful of duplicate FindCommit calls while viewing the projects and commits pages.
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-0522-21/+541
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Merge branch '58375-api-controller' into 'master'Sean McGivern2019-04-051-0/+152
|\ | | | | | | | | | | | | Add a prometheus proxy API per environment Closes #58375 See merge request gitlab-org/gitlab-ce!26841
| * Use environment_params when defining expected_params58375-api-controllerrpereira22019-04-051-10/+8
| |
| * Do not hardcode project and namespace name in urlrpereira22019-04-051-3/+3
| | | | | | | | The names can change in different runs of the spec.
| * Call permit! on paramsrpereira22019-04-051-1/+14
| |
| * Remove permitting of paramsrpereira22019-04-051-9/+0
| | | | | | | | - It is now being done in ProxyService class.
| * Add spec for invalid environment idrpereira22019-04-051-0/+10
| |
| * Make filter params specs more readablePeter Leitzen2019-04-051-5/+7
| |