summaryrefslogtreecommitdiff
path: root/app/controllers/projects
Commit message (Collapse)AuthorAgeFilesLines
* Destroy repo mirrors instead of disabling themLuke Bennett2019-05-061-0/+1
| | | | | | | | It is important to destroy data related to repo mirrors when they are disabled. Use `_destroy` nested attribute instead of `enabled` for push mirrors. Call `remove_import_data` after saving a project if its pull mirror is disabled.
* Implement support for CI variables of type fileKrasimir Angelov2019-05-063-3/+3
| | | | | | | | | Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
* Adds a way to start multiple manual jobs in stageMayra Cabrera2019-05-021-0/+25
| | | | | | | | | | - 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-4/+22
| | | | | | | | | | | 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.
* Merge branch ↵Ash McKenzie2019-04-301-12/+0
|\ | | | | | | | | | | | | | | | | '60476-actionview-missingtemplate-missing-template-projects-issues-_merge_requests-with-locale-en-formats-html-varian' into 'master' Delete leftover code for referenced_merge_requests endpoint Closes #60476 See merge request gitlab-org/gitlab-ce!27335
| * Delete leftover code for referenced_merge_requests60476-actionview-missingtemplate-missing-template-projects-issues-_merge_requests-with-locale-en-formats-html-varianFatih Acet2019-04-151-12/+0
| | | | | | | | | | | | | | We rewrote Related MRs widget using Vue. The previous implementation was using Haml templates and calling referenced_merge_requests endpoint which is now deprecated. This MR deletes leftover stuff them.
* | 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-1/+16
|\ \ | | | | | | | | | | | | | | | | | | Create dashboards endpoint & setup dashboard post-processing Closes #60383 See merge request gitlab-org/gitlab-ce!27405
| * | Move MetricsDashboard to Metrics::Dashboardsyasonik2019-04-251-1/+1
| | |
| * | Rubocopsyasonik2019-04-241-0/+1
| | |
| * | Defend against dashboard errors, rework sequencesyasonik2019-04-241-1/+1
| | |
| * | Remove extra spacesyasonik2019-04-241-1/+1
| | |
| * | Refactor metrics_dashboard response conditionalssyasonik2019-04-241-11/+5
| | |
| * | Make EE interactions and transformations cleanersyasonik2019-04-241-1/+1
| | |
| * | Reduce cognitivty complexity moresyasonik2019-04-241-4/+8
| | |
| * | Try to reduce complexity againsyasonik2019-04-241-10/+4
| | |
| * | Reduce congnitive complexitysyasonik2019-04-241-8/+7
| | |
| * | Bring in line with EE needssyasonik2019-04-241-1/+1
| | |
| * | Inherit from BaseServicerpereira22019-04-241-3/+13
| | | | | | | | | | | | | | | Change MetricsDashboard::Service to inherit from BaseService so that it can reuse methods like initialize, success, error.
| * | Refactor dashboard proccesing into stagessyasonik2019-04-241-1/+1
| | |
| * | Rubocop cleanupsyasonik2019-04-241-1/+1
| | |
| * | Add unit tests and fix broken endpointsyasonik2019-04-241-2/+2
| | |
| * | Use existing common metricssyasonik2019-04-241-1/+0
| | |
| * | Save multi-dashboard logic for another MRsyasonik2019-04-241-1/+1
| | |
| * | Add inital dashboard endpoint supportsyasonik2019-04-241-0/+14
| | |
* | | Add ProjectMetricsDashboardSetting model and tableReuben Pereira2019-04-261-0/+2
| | | | | | | | | | | | | | | | | | 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.
* | | Added list_pages method to avoid loading all wiki pages contentFrancisco Javier López2019-04-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|/ /
* | Introduce ServiceResponse to wrap around responseLin Jen-Shin2019-04-221-4/+4
| | | | | | | | See https://gitlab.com/gitlab-org/gitlab-ce/issues/60730
* | Aligned IssuesController implementation with EEPatrick Derichs2019-04-181-4/+4
| |
* | Revert "Revert "Merge branch '24704-download-repository-path' into 'master'""Nick Thomas2019-04-161-1/+1
| | | | | | | | This reverts commit 171818df0a72097aa1a804c8213666b3f66b0966.
* | Merge branch 'mc/feature/custom-metrics-ce' into 'master'Kamil Trzciński2019-04-161-14/+16
|\ \ | | | | | | | | | | | | Backport metrics report type See merge request gitlab-org/gitlab-ce!26798
| * | Backport changes from EEMatija Čupić2019-04-161-14/+16
| | | | | | | | | | | | | | | This backports the changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10452
* | | Merge branch 'forbid-the-usage-of-reload' into 'master'Lin Jen-Shin2019-04-151-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Forbid the usage of reload Closes #60218 See merge request gitlab-org/gitlab-ce!27125
| * | | Forbid the use of `#reload` and prefer `#reset`forbid-the-usage-of-reloadKamil Trzciński2019-04-151-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | The `#reload` makes to load all objects into memory, and the main purpose of `#reload` is to drop the association cache. The `#reset` seems to solve exactly that case.
* | | Add ability to do variable substitutionReuben Pereira2019-04-151-3/+26
| | | | | | | | | | | | | | | | | | - 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.
* | | Added write_repository scope for personal access tokenHoratiu Eugen Vlad2019-04-151-1/+1
| | |
* | | Remove rails-deprecated_sanitizer dependency17014-remove-rails-deprecated_sanitizerDmitriy Zaporozhets2019-04-121-2/+2
|/ / | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Revert "Merge branch '24704-download-repository-path' into 'master'"revert-24704-download-repository-pathPatrick Bajao2019-04-111-1/+1
|/ | | | | This reverts commit 6c75bd015cba181f028bc87c396c3d8e43b5dc3e, reversing changes made to 1be7f5aaa38aba79843eae8835be6c99c025e982.
* Merge branch 'docs-zj-update-n-plus-one-comments' into 'master'Douglas Barbosa Alexandre2019-04-091-1/+1
|\ | | | | | | | | Update comments about N + 1 Gitaly calls See merge request gitlab-org/gitlab-ce!27178
| * Update comments about N + 1 Gitaly callsZeger-Jan van de Weg2019-04-091-1/+1
| | | | | | | | | | To make sure all known issues are linked to the correct epic, I've gone through the code base, and updated the comments where required.
* | Merge branch 'osw-multi-assignees-merge-requests' into 'master'Nick Thomas2019-04-091-1/+1
|\ \ | | | | | | | | | | | | [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-1/+1
| | | | | | | | | | | | | | | 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-1/+1
| |/ |/|
* | Set release name when adding release notes to an existing tagJason Goodman2019-04-091-7/+3
|/ | | | 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-063-2/+5
| | | | | | | | | | | 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-6/+17
|
* Enable FindCommit caching for project and commits pagesStan Hu2019-04-051-0/+2
| | | | | This reduces a handful of duplicate FindCommit calls while viewing the projects and commits pages.
* Fall back to project repository type by defaultBob Van Landuyt2019-04-051-4/+2
| | | | | | | | | | | | This makes sure that we always have a repository type when trying to parse a repository from a path. This is needed because sometimes we want to perform access checks as if the project already existed, for example when creating a project on push. Before this we were only doing that when accessing git over http, this makes sure it also works correctly when accessing git over SSH