summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Move dashboard param to initialize method60383-setup-dashboard-endpointsyasonik2019-04-256-18/+17
|
* Prefer safe_load and deep_symbolize_keyssyasonik2019-04-252-9/+8
|
* Move MetricsDashboard to Metrics::Dashboardsyasonik2019-04-2512-292/+304
|
* Defend against dashboard errors, rework sequencesyasonik2019-04-245-9/+46
|
* Make EE interactions and transformations cleanersyasonik2019-04-246-23/+29
|
* Minor line length cleanupsyasonik2019-04-242-9/+11
|
* Bring in line with EE needssyasonik2019-04-247-51/+84
|
* Inherit from BaseServicerpereira22019-04-241-7/+5
| | | | | Change MetricsDashboard::Service to inherit from BaseService so that it can reuse methods like initialize, success, error.
* Minor optimization and code claritysyasonik2019-04-242-16/+16
|
* Correct the order of groups and panelsrpereira22019-04-242-3/+3
| | | | | | - Order groups by descending order of priority. - Order panels by descending order of weight. - Perform sorting after adding project/custom metrics.
* Fix rubocop failuresrpereira22019-04-243-15/+46
| | | | | | | | - Add 3 functions called find_or_create_panel, find_or_create_panel_group, and find_or_create_metric to avoid having to use 'send'. - Remove an unused variable. - Freeze a constant array.
* Refactor dashboard proccesing into stagessyasonik2019-04-245-0/+185
|
* Merge branch '60730-service-response' into 'master'Dmitriy Zaporozhets2019-04-241-2/+2
|\ | | | | | | | | | | | | Introduce ServiceResponse to wrap around response Closes #60730 See merge request gitlab-org/gitlab-ce!27516
| * Introduce ServiceResponse to wrap around responseLin Jen-Shin2019-04-221-2/+2
| | | | | | | | See https://gitlab.com/gitlab-org/gitlab-ce/issues/60730
* | Move scoped_label into label presenterJan Provaznik2019-04-231-2/+4
| | | | | | | | | | | | | | When rendering a label we want to check 'scoped_label' feature availability on a project/group where label is being used. For this reason a label presenter is used in UI and information about context project/group is passed to this presenter.
* | Merge branch ↵Michael Kozono2019-04-232-0/+92
|\ \ | | | | | | | | | | | | | | | | | | 'ce-11199-add-a-rake-task-to-seed-insights-data-for-a-given-project' into 'master' Provide a new gitlab:seed:issues task See merge request gitlab-org/gitlab-ce!27454
| * | Provide a new gitlab:seed:issues taskce-11199-add-a-rake-task-to-seed-insights-data-for-a-given-projectRémy Coutable2019-04-232-0/+92
| |/ | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch 'support-negative-matches' into 'master'Grzegorz Bizon2019-04-234-2/+74
|\ \ | | | | | | | | | | | | Support negative matches See merge request gitlab-org/gitlab-ce!27510
| * | Support negative matchesKamil Trzciński2019-04-234-2/+74
| | | | | | | | | | | | | | | This adds support for != and !~ operators giving more flexibility in comparing values
* | | Add feature flag to disable LFS checkIgor2019-04-231-0/+1
|/ /
* | Merge branch 'upgrade-to-rails-5-1' into 'master'Rémy Coutable2019-04-232-8/+4
|\ \ | | | | | | | | | | | | Upgrade Rails to 5.1 See merge request gitlab-org/gitlab-ce!27480
| * | Upgrade Rails to 5.1.6.1Jasper Maes2019-04-232-8/+4
| |/ | | | | | | Model.new.attributes now also returns encrypted attributes.
* | Merge branch 'sh-avoid-fetching-temp-refs-within-project' into 'master'Douwe Maan2019-04-231-7/+25
|\ \ | | | | | | | | | | | | | | | | | | Don't create a temp reference for branch comparisons within project Closes #58315 See merge request gitlab-org/gitlab-ce!24038
| * | Make use of local ref if it is reachablesh-avoid-fetching-temp-refs-within-projectOswaldo Ferreira2019-04-191-9/+23
| | |
| * | Remove source_branch_name commit checkStan Hu2019-04-181-2/+0
| | | | | | | | | | | | This should already be done in Gitlab::Git:Compare.
| * | Don't create a temp reference for branch comparisons within projectStan Hu2019-04-181-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | A temp reference is only needed to fetch a branch from another project, as in the case for forked repositories. For branch comparisons within the same project, we can just use the existing branch names to do the comparison. Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/38689#note_126107862
* | | Remove protected_branch_creation feature flag59572-remove-protected-branch-creation-flagPatrick Bajao2019-04-221-5/+1
| |/ |/|
* | Merge branch 'retry-review-deploy-twice' into 'master'Lin Jen-Shin2019-04-191-0/+2
|\ \ | | | | | | | | | | | | Retry the review-deploy job twice and make the Review App cleanup more efficient See merge request gitlab-org/gitlab-ce!27489
| * | Make the Review App cleanup more efficientretry-review-deploy-twiceRémy Coutable2019-04-191-0/+2
| | | | | | | | | | | | | | | | | | Ensure that the cleanup starts right away. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge branch 'bvl-graphql-only-authorize-rendered-fields' into 'master'Lin Jen-Shin2019-04-194-44/+61
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Only check abilities on rendered GraphQL nodes Closes #58647 and #60355 See merge request gitlab-org/gitlab-ce!27273
| * | | Only check abilities on rendered GraphQL nodesBob Van Landuyt2019-04-184-44/+61
| | | | | | | | | | | | | | | | | | | | With this we only check abilities on the rendered edges of a GraphQL connection instead of all the nodes in it.
* | | | Merge branch '39858-add-group-owned-info-to-projects-api' into 'master'Douwe Maan2019-04-191-1/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Return group information on Project endpoint Closes #39858 See merge request gitlab-org/gitlab-ce!27427
| * | | Adds namespace information to project endpoint39858-add-group-owned-info-to-projects-apiMayra Cabrera2019-04-181-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Namespace now return avatar_url and web_url - NamespaceBasic entity was modified to include avatar_url and web_url, information is fetched differently depending if the Namespace is a user or a group Includes documentation changes Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39858
* | | | Merge branch 'protected-runner-registration' into 'master'Kamil Trzciński2019-04-191-1/+3
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Add configuration of access_level for runners on registration via API See merge request gitlab-org/gitlab-ce!27490
| * | | Add configuration of access_level for runners on registration via APIzelin-l2019-04-181-1/+3
| | | | | | | | | | | | | | | | | | | | Allow setting access_level of new runner to not_protected (default) or ref_protected Minor update to relevant docs and tests
* | | | Merge branch 'sh-bump-ruby-required-version-check' into 'master'Michael Kozono2019-04-181-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump required Ruby version check to 2.5.3 Closes #60704 See merge request gitlab-org/gitlab-ce!27495
| * | | | Bump required Ruby version check to 2.5.3Stan Hu2019-04-181-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | Relates to https://gitlab.com/gitlab-org/gitlab-ce/issues/58079 Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60704
* | | | Migrate correlation and tracing code to LabKitan-use-labkitAndrew Newdigate2019-04-1819-563/+14
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch ↵Kamil Trzciński2019-04-171-1/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '60500-disable-jit-kubernetes-resource-creation-for-project-level-clusters' into 'master' Disable JIT Kubernetes resource creation for project level clusters Closes #60500 See merge request gitlab-org/gitlab-ce!27352
| * | | Disable JIT resource creation for project clusters60500-disable-jit-kubernetes-resource-creation-for-project-level-clustersTiger2019-04-161-1/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | JIT resource creation blocks deployments if a user is self-managing their cluster, as it will fail the build if unable to create a namespace and service account. Using a custom namespace and service account was previously supported for project level clusters, so we should preserve this functionality. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27352
* | | Merge branch 'sh-backport-list-commits-by-oid-rugged' into 'master'Douwe Maan2019-04-172-1/+21
|\ \ \ | | | | | | | | | | | | | | | | Bring back Rugged implementation of ListCommitsByOid See merge request gitlab-org/gitlab-ce!27441
| * | | Bring back Rugged implementation of ListCommitsByOidStan Hu2019-04-172-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This brings back changes in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20432. For users using Gitaly on top of NFS, accessing the Git data directly via Rugged may be faster than going through than Gitaly. This merge request introduces the feature flag `rugged_list_commits_by_oid` to activate the Rugged method. For one customer, we saw that ListCommitsByOid was the second highest used endpoint that may be causing increased load.
* | | | Merge branch 'sh-add-gitaly-backtrace' into 'master'Sean McGivern2019-04-172-4/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add backtrace to Gitaly performance bar Closes #60092 See merge request gitlab-org/gitlab-ce!27345
| * | | | Add backtrace to Gitaly performance barStan Hu2019-04-172-4/+13
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the backtrace to a table to show exactly where the Gitaly call was made to make it easier to understand where the call originated. This change also collapses the details in the same row to improve the usability when there is a backtrace.
* | | | Merge branch '24704-restore-download-repository-path' into 'master'Rémy Coutable2019-04-172-8/+64
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Restore "download repository path" feature, now with fixes and a feature flag Closes gitlab-workhorse#218 and #24704 See merge request gitlab-org/gitlab-ce!27275
| * | | | Add a feature flag for subdirectory archivesNick Thomas2019-04-161-15/+35
| | | | |
| * | | | JSON-encoded binary fields should use Base64::encode64Nick Thomas2019-04-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is not interoperable to use Base64::urlsafe_encode64 for fields in JSON that contain binary (as opposed to UTF8-safe) data. For instance, the Golang JSON decoder (which is what gitlab-workhorse uses) insists upon the standard base64 encoding.
| * | | | Revert "Revert "Merge branch '24704-download-repository-path' into 'master'""Nick Thomas2019-04-162-7/+38
| | | | | | | | | | | | | | | | | | | | This reverts commit 171818df0a72097aa1a804c8213666b3f66b0966.
* | | | | Merge branch 'tortuetorche/gitlab-ce-patch-auto-deploy-extra-values' into ↵Grzegorz Bizon2019-04-171-0/+3
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | 'master' Allow extra args for helm in Auto-DevOps See merge request gitlab-org/gitlab-ce!26838
| * | | | Rename HELM_EXTRA_ARGS to differentiate between helm invocationstortuetorche/gitlab-ce-patch-auto-deploy-extra-valuesJames Fargher2019-04-171-3/+3
| | | | |