summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make 'build permissions' consistentci-permissions-documentationAchilleas Pipinellis2016-09-222-3/+3
| | | | [ci skip]
* Add a small description mentioning submodules/LFSAchilleas Pipinellis2016-09-221-2/+1
|
* Move document on CI build permissions to new locationAchilleas Pipinellis2016-09-223-16/+16
|
* Refactor new CI build permissions model docsAchilleas Pipinellis2016-09-222-158/+211
|
* Update permissions tableKamil Trzcinski2016-09-211-6/+23
|
* Describe how the recent changes of CI permissions affect buildsKamil Trzcinski2016-09-213-0/+244
|
* Merge branch 'show-all-pipelines-from-all-diffs' into 'master' Rémy Coutable2016-09-214-10/+79
|\ | | | | | | | | | | | | | | | | | | Show all pipelines from all merge_request_diffs This way we could also show pipelines from commits which were discarded due to a force push. Closes #21889 See merge request !6414
| * Use factory instead of using new directly. Feedback:show-all-pipelines-from-all-diffsLin Jen-Shin2016-09-211-9/+2
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15765156
| * Add a test for non-persisted merge requestLin Jen-Shin2016-09-201-0/+22
| |
| * If merge request wasn't persisted yet, we show only 1 pipeline:Lin Jen-Shin2016-09-201-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | However, if MergeRequest#all_commits_sha would want to handle non-persisted merge request, by judging its name, it should not just give 1 SHA, but all of them. But we don't really care all_commits_sha for non-persisted merge request anyway. So I think we should just ignore that case. Better to not implementing something than implementing it in a wrong and confusing way.
| * Test against MergeRequest#all_commits_sha, feedback:Lin Jen-Shin2016-09-201-9/+22
| | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15750344 So that we could just use it in testing for MergeRequest#all_pipelines
| * slightly tweak about the comment, feedback:Lin Jen-Shin2016-09-201-1/+1
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15750250
| * Introduce MergeRequest#all_commits_sha, feedback:Lin Jen-Shin2016-09-201-8/+9
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15746083
| * Add an entry to CHANGELOG [ci skip]Lin Jen-Shin2016-09-201-0/+1
| |
| * Show all pipelines from all merge_request_diffs:Lin Jen-Shin2016-09-193-9/+44
| | | | | | | | | | This way we could also show pipelines from commits which were discarded due to a force push.
* | Merge branch 'limit-number-of-shown-environments' into 'master' Rémy Coutable2016-09-218-21/+130
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit number of shown environments ## What does this MR do? This MR limits in context of Merge Request a list of shown environments. Previously we would show all environments containing the SHA of the head commit of Merge Request. However, with introducing of dynamically created environments this lead to a cases that we would show multiple review apps, for different branches, because these branches would contain a new questioned commit. This MR changes what environments we test against presence of the commit, to: 1. We look for environments with deployments to source_branch of source_project: used for deployments to per-branch environments, 2. We look for environments with deployments to target_branch of target_project: used for deployments to staging / production environments, 3. We look for environments with deployments for tags on target_project: used for staging / production environments. ## Why was this MR needed? To improve a list of returned environments when we introduced ability to create dynamic environments for review apps: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6323 See merge request !6438
| * | Scope environments to projectlimit-number-of-shown-environmentsKamil Trzcinski2016-09-214-2/+8
| | |
| * | Improve specsKamil Trzcinski2016-09-212-4/+5
| | |
| * | Fix project for merge_request environmentsKamil Trzcinski2016-09-211-1/+1
| | |
| * | Add tests to verify the correctness of returned environmentsKamil Trzcinski2016-09-216-11/+93
| | |
| * | Limit number of shown environments for Merge RequestsKamil Trzcinski2016-09-213-14/+34
| | | | | | | | | | | | | | | - For target project show only environments for target branch or with tags - For source project show only environments for source branch
* | | Merge branch '20310-new-project-btn' into 'master' Jacob Schatz2016-09-213-3/+15
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix new project button alignment ## What does this MR do? Increases the width of the button/search container to fit all items at smaller screen width. The left side of the row can only have a max of two tabs (All Projects, Shared Projects), so everything can still fit on one line until they resize for mobile ## Why was this MR needed? The `New project` button wrapped to next line at smaller screen width, breaking the layout ## Screenshots (if relevant) ![Screen_Shot_2016-09-09_at_11.44.27_AM](/uploads/a726208deec6623d9fb62db0a549bf38/Screen_Shot_2016-09-09_at_11.44.27_AM.png) ![Screen_Shot_2016-09-09_at_11.46.29_AM](/uploads/bd8dc911757b14c5fafc4d3849e0b242/Screen_Shot_2016-09-09_at_11.46.29_AM.png) ## What are the relevant issue numbers? Closes #20310 See merge request !6286
| * | | Fix new project button alignment20310-new-project-btnAnnabel Dunstone Gray2016-09-143-3/+15
| | | |
* | | | Add 8.11.7, 8.10.10, and 8.9.10 CHANGELOG entriesRémy Coutable2016-09-211-0/+11
| | | | | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Merge branch ↵Rémy Coutable2016-09-212-0/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 'vitalybaev/gitlab-ce-build-page-sidebar-coverage-horizontal-padding' See !6196.
| * | | | Added horizontal padding on build page sidebar on code coverage blockVitaly Baev2016-09-212-0/+5
|/ / / / | | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Merge branch 'add_spec_for_committer_hash' into 'master' Rémy Coutable2016-09-214-1/+49
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add spec covering 'committer_hash' Adds a missing spec from changes added in !5822 See merge request !6433
| * | | | Add spec covering 'committer_hash'Dan Dunckel2016-09-204-1/+49
| | | | |
* | | | | Merge branch 'bump-shell-to-3-6-0' into 'master' Douwe Maan2016-09-211-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump GITLAB_SHELL_VERSION to 3.6.0 for SSH support for LFS. cc @rdavila See merge request !6441
| * | | | | Bump GITLAB_SHELL_VERSION to 3.6.0 for SSH support for LFS.bump-shell-to-3-6-0Patricio Cano2016-09-201-1/+1
| | | | | |
* | | | | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceDmitriy Zaporozhets2016-09-21279-1594/+6147
|\ \ \ \ \ \
| * \ \ \ \ \ Merge branch 'post-merge-improve-of-ci-permissions' into 'master' Rémy Coutable2016-09-218-18/+30
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Post-merge improve of CI permissions Improves code from !6409 See merge request !6432
| | * | | | | | Improve JwtController implementationpost-merge-improve-of-ci-permissionsKamil Trzcinski2016-09-204-8/+11
| | | | | | | |
| | * | | | | | Post-merge improve of CI permissionsKamil Trzcinski2016-09-206-15/+24
| | | | | | | |
| * | | | | | | Merge branch 'cs-upgrade-sidekiq' into 'master' Robert Speicher2016-09-212-11/+5
| |\ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade Sidekiq to 4.2.1, remove dependency on Sinatra This updates Sidekiq to 4.2.1, which adds full support for Rails 5 by removing a dependency on Sinatra which was one of the remaining Rails 5 blockers. Major things to check: Sidekiq still works, obviously. Also that the Web UI/Admin dashboard works and doesn't lose any functionality (based on my testing it works fine). Working toward #14286. Changelog: https://github.com/mperham/sidekiq/blob/921e939f995fbb5238975d4121d728b95be99ab5/Changes.md#421 See merge request !6349
| | * | | | | | Upgrade Sidekiq from 4.1.4 to 4.2.1, remove dependency on SinatraConnor Shea2016-09-152-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: https://github.com/mperham/sidekiq/blob/921e939f995fbb5238975d4121d728b95be99ab5/Changes.md#421 Sinatra is no longer required and sidekiq uses a vanilla Rack app for its Web UI now.
| * | | | | | | Merge branch '21170-cycle-analytics' into 'master' Stan Hu2016-09-2159-5/+2220
| |\ \ \ \ \ \ \ | | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cycle Analytics: first iteration ## What does this MR do? - Implement the first iteration of the "Cycle Analytics" feature. ## What are the relevant issue numbers? - Closes #21170 ## Screenshots ![cycle_analytics_screencast.gif](/uploads/d23c3c912caa6935fd47b53ca3a56b97/cycle_analytics.gif) ## Backend Tasks - [x] Implementation - [x] Phases - [x] Issue (Tracker) - [x] Plan (Board) - [x] Code (IDE) - [x] Test (CI) - [x] Review (MR) - [x] Staging (CD) - [x] Production (Total) - [x] Make heuristics more modular - [x] Scope to project - [x] Date range (30 days, 90 days) - [x] Access restriction - [x] Test - [x] Find a better way to test these phases - [x] Phases - [x] Issue (Tracker) - [x] Plan (Board) - [x] Code (IDE) - [x] Test (CI) - [x] Review (MR) - [x] Staging (CD) - [x] Production (Total) - [x] Test for "end case happens before start case" - [x] Consolidate helper - [x] Miniboss review - [x] Performance testing with mock data - [x] Improve performance - [x] Pre-calculate "merge requests closing issues - [x] Pre-calculate everything else - [x] Test performance against 10k issues - [x] Test all pre-calculation code - [x] Ci::Pipeline -> build start/finish - [x] Ci::Pipeline#merge_requests - [x] Issue -> record default metrics after save - [x] MergeRequest -> record default metrics after save - [x] Deployment -> Update "first_deployed_to_production_at" for MR metrics - [x] Git Push -> Update "first commit mention" for issue metrics - [x] Merge request create/update/refresh -> Update "merge requests closing issues" - [x] Remove `MergeRequestsClosingIssues` when necessary - [x] Changes to unblock Fatih - [x] Add summary data - [x] `stats` should be array - [x] Let `stats` be `null` if all `stats` are null - [x] Indexes for "merge requests closing issues" - [x] Test summary data - [x] Scope everything to project - [x] Find out why tests were passing - [x] Filter should include issues/MRs which have made it to production within the range - [x] Don't create duplicate `MergeRequestsClosingIssues` - [x] Fix tests - [x] MySQL median - [x] Assign to Douwe for review - [x] Fix conflicts - [x] Implement suggestions from Yorick's review - [x] Test on PG - [x] Test on MySQL - [x] Refactor - [x] Cleanup - [x] What happens if we have no data at all? - [x] Extract common queries to methods / scopes - [x] Remove unused queries - [x] Downtime for foreign key migrations - [x] Find a way around "if issue.metrics.present?" all over the place - [x] Find a way around "if merge_request.metrics.present?" all over the place - [x] Test migrations on a fresh database - [x] MySQL - [x] Pg - [x] Access issues - While the project is public and the visibility is set to "Everyone with access", you cannot visit the cycle analytics page when signed out. - [x] CHANGELOG - [x] Implement suggestions from Douwe's review - [x] First set of comments - [x] Second set of comments - [x] Third set of comments - [x] Fourth set of comments - [x] Make sure build is green - [ ] Make issue for "polish" - [ ] EE MR See merge request !5986
| | * | | | | | Implement fourth round of comments from @DouweM.Timothy Andrew2016-09-213-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Pluralize summary titles - Remove the `run_query` method - always return sql strings from the `date_time_sql` methods
| | * | | | | | Fix `CreateDeploymentService` spec.Timothy Andrew2016-09-211-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. The spec tests that if: - The merge request is merged - The target branch is deployed to production - The `first_deployed_to_production_at` metric is `nil` (for some reason) - The target branch is deployed to production again - The `first_deployed_to_production_at` metric stays as `nil` (and is not overwritten). 2. Failure only on MySQL due to some datetime weirdness.
| | * | | | | | Reload issues in spec to ensure label<->issue mapping properly loaded21170-cycle-analyticsStan Hu2016-09-201-0/+2
| | | | | | | |
| | * | | | | | Fix build.Timothy Andrew2016-09-213-8/+8
| | | | | | | |
| | * | | | | | Remove unnecessary #{} in cycle analytics template.Fatih Acet2016-09-211-1/+1
| | | | | | | |
| | * | | | | | Update cycle analytics icon and fix color of the dismiss button.Fatih Acet2016-09-212-1/+2
| | | | | | | |
| | * | | | | | Use triple dashes for the empty value in cycle analytics.Fatih Acet2016-09-211-1/+1
| | | | | | | |
| | * | | | | | Fix typo on cycle analytics copy.Fatih Acet2016-09-211-1/+1
| | | | | | | |
| | * | | | | | Add page title and fix sub menu width in Cycle Analytics page.Fatih Acet2016-09-211-1/+3
| | | | | | | |
| | * | | | | | Update Cycle Analytics Read more link URL.Fatih Acet2016-09-211-1/+1
| | | | | | | |
| | * | | | | | Display the cycle analytics navbar based on the `:read_cycle_analytics` ability.Timothy Andrew2016-09-211-1/+1
| | | | | | | |
| | * | | | | | Improve indentation in `Gitlab::Database::Median`Timothy Andrew2016-09-211-11/+18
| | | | | | | |
| | * | | | | | Add a spec for merge request metric caching while refreshing a merge request ↵Timothy Andrew2016-09-214-12/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from a forked project.