summaryrefslogtreecommitdiff
path: root/spec/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove Rugged::Walk implementation of #logrepository-log-disable-walkJacob Vosmaer2018-01-311-38/+0
|
* Merge branch 'feature/migrate-delete-refs-to-gitaly' into 'master'Robert Speicher2018-01-302-21/+25
|\ | | | | | | | | | | | | Migrate Git::Repository#delete_refs to Gitaly Closes gitaly#967 See merge request gitlab-org/gitlab-ce!16723
| * Migrate Git::Repository#delete_refs to Gitalyfeature/migrate-delete-refs-to-gitalyAhmad Sherif2018-01-302-21/+25
| | | | | | | | Closes gitaly#967
* | Merge branch '41771-reduce-cardinality-of-metrics' into 'master'Grzegorz Bizon2018-01-307-49/+167
|\ \ | |/ |/| | | | | | | | | Reduce the cardinality of GitLab metrics Closes #41771 See merge request gitlab-org/gitlab-ce!16443
| * Rename Concern -> Methods41771-reduce-cardinality-of-metricsPawel Chojnacki2018-01-291-2/+2
| |
| * use public_send where appropriatePawel Chojnacki2018-01-291-3/+3
| |
| * before -> afterPawel Chojnacki2018-01-292-2/+2
| |
| * use define_method to define devine_metric_method. (couldn't resist)Pawel Chojnacki2018-01-291-15/+12
| |
| * Fix ruby sampler specPawel Chojnacki2018-01-291-12/+10
| |
| * Convert InfluxDB to concern. Fix uninitialized metrics when metrics code is ↵Pawel Chojnacki2018-01-291-2/+5
| | | | | | | | inherited.
| * Cleanup rspecPawel Chojnacki2018-01-291-14/+20
| |
| * NullMetric as a singletonPawel Chojnacki2018-01-291-1/+3
| |
| * Avoid cascading lockingPawel Chojnacki2018-01-291-1/+1
| |
| * Test if feature is respectedPawel Chojnacki2018-01-291-19/+52
| |
| * Small Concern_spec cleanupPawel Chojnacki2018-01-291-3/+1
| |
| * Add Tests for Metrics::ConcernPawel Chojnacki2018-01-291-0/+101
| |
| * Fix testsPawel Chojnacki2018-01-291-1/+1
| |
| * Convert active recordPawel Chojnacki2018-01-291-1/+1
| |
| * Fix code after refactoringPawel Chojnacki2018-01-291-1/+1
| |
| * cleanup method callPawel Chojnacki2018-01-291-32/+12
| |
* | Merge branch '21554-mark-new-user-as-external' into 'master'Douwe Maan2018-01-301-9/+21
|\ \ | | | | | | | | | | | | | | | | | | Login via OAuth marked as "external" should only mark new users as "external", not existing ones Closes #21554 See merge request gitlab-org/gitlab-ce!16672
| * | Only new users get marked as external21554-mark-new-user-as-externalTiago Botelho2018-01-301-9/+21
| | |
* | | Decouple more of Repository from RuggedJacob Vosmaer (GitLab)2018-01-301-0/+25
| | |
* | | Merge branch '41972-make-sure-no-warnings' into 'master'Robert Speicher2018-01-292-2/+153
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fail static-analysis if there's output to stderr Closes #41972 See merge request gitlab-org/gitlab-ce!16648
| * | | Use Process::Status rather than an integerLin Jen-Shin2018-01-262-9/+9
| | | | | | | | | | | | | | | | However keep backward compatibility
| * | | Fail static-analysis if there's output to stderrLin Jen-Shin2018-01-262-2/+153
| | | | | | | | | | | | | | | | TODO: fix offenders
* | | | Don't allow Repository#log with limit zeroJacob Vosmaer (GitLab)2018-01-291-0/+10
| |_|/ |/| |
* | | fix specJames Lopez2018-01-261-1/+1
| | |
* | | add an extra specJames Lopez2018-01-261-1/+5
| | |
* | | fix validation error on servicesJames Lopez2018-01-261-1/+1
|/ /
* | Fix rubocop offenses introduced in !16623Ahmad Sherif2018-01-251-2/+7
| |
* | Merge branch 'feature/migrate-repo-restorer-to-gitaly' into 'master'Robert Speicher2018-01-251-0/+36
|\ \ | | | | | | | | | | | | | | | | | | Migrate restoring repo from bundle to Gitaly Closes gitaly#946 See merge request gitlab-org/gitlab-ce!16623
| * | Migrate restoring repo from bundle to Gitalyfeature/migrate-repo-restorer-to-gitalyAhmad Sherif2018-01-241-0/+36
| | | | | | | | | | | | Closes gitaly#946
* | | Merge branch 'lint-rugged' into 'master'Rémy Coutable2018-01-251-3/+3
|\ \ \ | | | | | | | | | | | | | | | | Add a lint check to restrict use of Rugged See merge request gitlab-org/gitlab-ce!16656
| * | | Look for rugged with static analysislint-ruggedJacob Vosmaer2018-01-251-3/+3
| | |/ | |/|
* | | Merge branch 'fix/batch-lfs-pointers-accepting-lazy-enum' into 'master'Grzegorz Bizon2018-01-251-0/+15
|\ \ \ | |/ / |/| | | | | | | | Fix .batch_lfs_pointers accepting a lazy enumerator See merge request gitlab-org/gitlab-ce!16701
| * | Fix .batch_lfs_pointers accepting a lazy enumeratorfix/batch-lfs-pointers-accepting-lazy-enumAhmad Sherif2018-01-251-0/+15
| | |
* | | Merge branch 'revert-430b3f0e' into 'master'Douwe Maan2018-01-251-0/+38
|\ \ \ | | | | | | | | | | | | | | | | Revert "Merge branch 'remove-rugged-walk' into 'master'" See merge request gitlab-org/gitlab-ce!16676
| * | | Revert "Merge branch 'remove-rugged-walk' into 'master'"revert-430b3f0eJacob Vosmaer (GitLab)2018-01-251-0/+38
| |/ / | | | | | | This reverts merge request !16525
* | | Merge branch 'jej/gitattributes-check-at-ref' into 'master'Rémy Coutable2018-01-253-25/+99
|\ \ \ | |/ / |/| | | | | | | | Can parse root .gitattributes file for a ref See merge request gitlab-org/gitlab-ce!16418
| * | Can parse root .gitattributes file for a refjej/gitattributes-check-at-refJames Edwards-Jones2018-01-243-25/+99
| | |
* | | Merge branch ↵Rémy Coutable2018-01-251-0/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '42161-gitaly-commitservice-encoding-undefinedconversionerror-u-c124-from-utf-8-to-ascii-8bit' into 'master' Resolve "Gitaly::CommitService: Encoding::UndefinedConversionError: U+C124 from UTF-8 to ASCII-8BIT" Closes #42161 See merge request gitlab-org/gitlab-ce!16637
| * | | Make sure we're passing ASCII-8BIT to Gitaly42161-gitaly-commitservice-encoding-undefinedconversionerror-u-c124-from-utf-8-to-ascii-8bitLin Jen-Shin2018-01-231-0/+23
| | | | | | | | | | | | | | | | when counting commit count.
* | | | Add a gRPC health check to ensure Gitaly is upsh-add-gitaly-health-checkStan Hu2018-01-243-0/+123
| | | | | | | | | | | | | | | | | | | | | | | | This will enable Geo to skip shards that not operational. Relates to gitlab-org/gitlab-ee#4329
* | | | Merge branch 'search-100' into 'master'Yorick Peterse2018-01-241-0/+58
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Use limit for search count queries See merge request gitlab-org/gitlab-ce!16502
| * | | | Use limit for search count queriessearch-100Jan Provaznik2018-01-231-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Search query is especially slow if a user searches a generic string which matches many records, in such case search can take tens of seconds or time out. To speed up the search query, we search only for first 1000 records, if there is >1000 matching records we just display "1000+" instead of precise total count supposing that with such amount the exact count is not so important for the user. Because for issues even limited search was not fast enough, 2-phase approach is used for issues: first we use simpler/faster query to get all public issues, if this exceeds the limit, we just return the limit. If the amount of matching results is lower than limit, we re-run more complex search query (which includes also confidential issues). Re-running the complex query should be fast enough in such case because the amount of matching issues is lower than limit. Because exact total_count is now limited, this patch also switches to to "prev/next" pagination. Related #40540
* | | | | Merge branch '40744-idempotent-ids' into 'master'Robert Speicher2018-01-246-7/+7
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the DatabaseCleaner 'deletion' strategy instead of 'truncation' Closes #30783 See merge request gitlab-org/gitlab-ce!16516
| * | | | | Use the DatabaseCleaner 'deletion' strategy instead of 'truncation'Nick Thomas2018-01-246-7/+7
| | |_|_|/ | |/| | |
* | | | | Migrate .batch_lfs_pointers to Gitalyfeature/migrate-get-lfs-ptrs-to-gitalyAhmad Sherif2018-01-241-15/+28
|/ / / / | | | | | | | | | | | | Closes gitaly#921
* | | | Migrate repository bundling to Gitalyfeature/migrate-bundle-to-disk-to-gitalyAhmad Sherif2018-01-241-0/+28
|/ / / | | | | | | | | | Closes gitaly#929