summaryrefslogtreecommitdiff
path: root/lib/gitlab/cycle_analytics
Commit message (Collapse)AuthorAgeFilesLines
* Adds the Rubocop ReturnNil copAndrew Newdigate2019-03-061-2/+2
| | | | | This style change enforces `return if ...` instead of `return nil if ...` to save maintainers a few minor review points
* Enable even more frozen string in lib/gitlabgfyoung2018-11-0629-0/+58
| | | | | | | | | | | | | | | | | Enables frozens string for the following: * lib/gitlab/conflict/**/*.rb * lib/gitlab/cross_project_access/**/*.rb * lib/gitlab/cycle_analytics/**/*.rb * lib/gitlab/data_builder/**/*.rb * lib/gitlab/database/**/*.rb * lib/gitlab/dependency_linker/**/*.rb * lib/gitlab/diff/**/*.rb * lib/gitlab/downtime_check/**/*.rb * lib/gitlab/email/**/*.rb * lib/gitlab/etag_caching/**/*.rb Partially addresses gitlab-org/gitlab-ce#47424.
* Migrate CycleAnalytics::CommitCount to GitalyKim Carlbäcker2018-06-111-15/+5
|
* Add "deny disk access" Gitaly feature (tripswitch)Jacob Vosmaer (GitLab)2018-06-011-1/+3
|
* Adapt cycle analytics spec helper and cycle analytics usage data spec41777-include-cycle-time-in-usage-pingTiago Botelho2018-03-012-4/+8
|
* Refactors median code to work with both single and multiple projectsTiago Botelho2018-02-283-26/+34
|
* Restrict cycle analytics usage data to instances that use postgres onlyTiago Botelho2018-02-281-2/+2
|
* Restore memoization to base query and add a batch base query methodTiago Botelho2018-02-284-8/+8
|
* Add BatchLoader as a way to refactor the base stage codeTiago Botelho2018-02-285-24/+31
|
* Refactor CycleAnalytics base stage class and modelTiago Botelho2018-02-281-5/+1
|
* Adds get all medians to Cycle Analytics modelTiago Botelho2018-02-283-5/+74
|
* Remove soft removals related codeYorick Peterse2018-01-081-1/+0
| | | | | | | | | | | | | | This removes all usage of soft removals except for the "pending delete" system implemented for projects. This in turn simplifies all the query plans of the models that used soft removals. Since we don't really use soft removals for anything useful there's no point in keeping it around. This _does_ mean that hard removals of issues (which only admins can do if I'm not mistaken) can influence the "iid" values, but that code is broken to begin with. More on this (and how to fix it) can be found in https://gitlab.com/gitlab-org/gitlab-ce/issues/31114. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/37447
* Merge remote-tracking branch 'upstream/master' into no-ivar-in-modulesLin Jen-Shin2017-11-301-7/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (170 commits) support ordering of project notes in notes api Redirect to an already forked project if it exists Reschedule the migration to populate fork networks Create fork networks for forks for which the source was deleted. Fix item name and namespace text overflow in Projects dropdown Minor backport from EE fix link that was linking to `html` instead of `md` Backport epic tasklist Add timeouts for Gitaly calls SSHUploadPack over Gitaly is now OptOut fix icon colors in commit list Fix star icon color/stroke Backport border inline edit Add checkboxes to automatically run AutoDevops pipeline BE for automatic pipeline when enabling Auto DevOps I am certainly weary of debugging sidekiq but I don't think that's what was meant Ensure MRs always use branch refs for comparison Fix issue comment submit button disabled on GFM paste Lock seed-fu at the correct version in Gemfile.lock Improve indexes on merge_request_diffs ...
| * Remove serialised diff and commit columnsSean McGivern2017-11-281-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The st_commits and st_diffs columns on merge_request_diffs historically held the YAML-serialised data for a merge request diff, in a variety of formats. Since 9.5, these have been migrated in the background to two new tables: merge_request_diff_commits and merge_request_diff_files. That has the advantage that we can actually query the data (for instance, to find out how many commits we've stored), and that it can't be in a variety of formats, but must match the new schema. This is the final step of that journey, where we drop those columns and remove all references to them. This is a breaking change to the importer, because we can no longer import diffs created in the old format, and we cannot guarantee the export will be in the new format unless it was generated after this commit.
* | Cache allowed_idsLin Jen-Shin2017-11-221-1/+1
| |
* | Move ModuleWithInstanceVariables to Gitlab namespaceLin Jen-Shin2017-11-222-3/+3
| | | | | | | | | | And use .rubocop.yml to exclude paths we don't care, rather than using the cop itself to exclude.
* | Just define allowed_ids and override it with empty valueLin Jen-Shin2017-11-226-16/+8
| | | | | | | | if not needed for those sub-classes.
* | Use StrongMemoize and enable/disable cops properlyLin Jen-Shin2017-11-182-5/+5
| |
* | Allow simple ivar ||= form. Update accordinglyLin Jen-Shin2017-09-192-2/+2
| |
* | Add cop to make sure we don't use ivar in a moduleLin Jen-Shin2017-09-188-24/+34
|/
* Refactor Gitlab::Git::Commit to include a repositoryAlejandro Rodríguez2017-08-071-1/+1
|
* Add table for merge request commitsSean McGivern2017-07-062-9/+32
| | | | | | | | | | | This is an ID-less table with just three columns: an association to the merge request diff the commit belongs to, the relative order of the commit within the merge request diff, and the commit SHA itself. Previously we stored much more information about the commits, so that we could display them even when they were deleted from the repo. Since 8.0, we ensure that those commits are kept around for as long as the target repo itself is, so we don't need to duplicate that data in the database.
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-9/+9
|
* Enable the Style/TrailingCommaInLiteral copRémy Coutable2017-05-101-1/+1
| | | | | | Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Some small updates for Spanish translations.Ruben Davila2017-05-043-3/+3
|
* Merge branch 'master' into 28433-internationalise-cycle-analytics-pageRuben Davila2017-05-043-3/+3
|\ | | | | | | | | | | | | Conflicts: lib/gitlab/cycle_analytics/review_stage.rb lib/gitlab/cycle_analytics/staging_stage.rb lib/gitlab/cycle_analytics/test_stage.rb
| * Fix wording of Cycle Analytics stage legendsDouwe Maan2017-05-043-3/+3
| |
* | More updates for translations plus some refactoring.Ruben Davila2017-05-0312-10/+46
| |
* | More translations updates.Ruben Davila2017-05-037-7/+7
| |
* | Add more translation for Spanish.Ruben Davila2017-04-267-7/+7
|/
* Merge branch 'add-additional-checks-to-ca-data' into 'master' Jacob Schatz2017-02-187-0/+28
|\ | | | | | | | | Small improvements for Cycle Analytics See merge request !9153
| * Restore exposure of legend property for eventsAlfredo Sumaran2017-02-107-0/+28
| |
| * Revert "Merge branch 'add-additional-checks-to-ca-data' into 'master' "Alfredo Sumaran2017-02-107-28/+0
| | | | | | | | | | This reverts commit b7c5ca499d9c26494736d92505116bbb294c63d6, reversing changes made to 9745c98bb77a1a1ddd964f58cc4d058a665eb9ee.
| * Restore exposure of legend property for eventsAlfredo Sumaran2017-02-107-0/+28
| |
* | move query limit to base event fetcherJames Lopez2017-02-061-1/+3
|/
* Fix cycle analytics code after improving serializersGrzegorz Bizon2017-01-277-7/+7
|
* fix specfix/refactor-cycle-analytics-stagesJames Lopez2017-01-171-2/+2
|
* refactored a bunch of stuff based on feedbackJames Lopez2017-01-1710-43/+49
|
* fix bug retrieving mediansJames Lopez2017-01-171-1/+1
|
* fix specsJames Lopez2017-01-172-5/+5
|
* refactored metrics fetcher - merged into stage and eventsJames Lopez2017-01-1715-119/+116
|
* fix refactor of production event fetcherJames Lopez2017-01-172-17/+17
|
* a few more fixesJames Lopez2017-01-172-18/+1
|
* fix missing refactor in metrics fetcherJames Lopez2017-01-171-2/+2
|
* fix plan stage issue and some spec failuresJames Lopez2017-01-173-3/+9
|
* fix specs, refactor missing bits from events stuffJames Lopez2017-01-174-11/+12
|
* big refactor based on MR feedbackJames Lopez2017-01-1721-117/+123
|
* few fixes after mergeJames Lopez2017-01-172-3/+10
|
* refactor fetcher and fixed specsJames Lopez2017-01-173-34/+17
|
* refactor cycle analytics - updated based on MR feedbackJames Lopez2017-01-1713-61/+89
|