summaryrefslogtreecommitdiff
path: root/spec/lib
Commit message (Collapse)AuthorAgeFilesLines
* Migrate MR commits and diffs to new tablesmerge-request-commits-background-migrationSean McGivern2017-08-031-0/+188
| | | | | | | | | | | | Previously, we stored these as serialised fields - `st_{commits,diffs}` - on the `merge_request_diffs` table. These now have their own tables - `merge_request_diff_{commits,diffs}` - with a column for each attribute of the serialised data. Add a background migration to go through the existing MR diffs and migrate them to the new format. Ignore any contents that cannot be displayed. Assuming that we have 5 million rows to migrate, and each batch of 2,500 rows can be completed in 5 minutes, this will take about 7 days to migrate everything.
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-02105-213/+213
|
* Merge branch 'handle-reserved-words-for-oauth-usernames' into 'master'Rémy Coutable2017-08-021-0/+30
|\ | | | | | | | | Uniquify reserved word usernames on OAuth user creation See merge request !13244
| * Uniquify reserved word usernames on OAuth user creationRobin Bobbitt2017-08-021-0/+30
| |
* | Merge branch 'rs-empty_project-cleanup' into 'master'Rémy Coutable2017-08-0223-56/+56
|\ \ | | | | | | | | | | | | Ensure all project factories use `:repository` trait or `:empty_project` See merge request !13238
| * | Ensure all project factories use `:repository` trait or `:empty_project`rs-empty_project-cleanupRobert Speicher2017-08-0123-56/+56
| | |
* | | Merge branch 'pawel/add_more_variables_to_additional_metrics-35267' into ↵Douwe Maan2017-08-022-15/+6
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 'master' Add kube_namespace and standardize common variables for additional metrics queries See merge request !13169
| * | Tests for query context variablesPawel Chojnacki2017-07-311-1/+1
| | |
| * | Context handling and tests cleanup + simple test kube_namespace context testPawel Chojnacki2017-07-312-15/+6
| | |
* | | Merge branch 'blob-limit-test' into 'master'Sean McGivern2017-08-011-2/+8
|\ \ \ | | | | | | | | | | | | | | | | Fix bug in blob test See merge request !13224
| * | | Fix bug in blob testJacob Vosmaer2017-08-011-2/+8
| | | |
* | | | Merge branch '28283-legacy-storage-format' into 'master'Sean McGivern2017-08-0123-67/+91
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | [CE] Added Legacy Storage format See merge request !13149
| * | | | Rename more path_with_namespace -> full_path or disk_pathGabriel Mazetto2017-08-013-8/+8
| | | | |
| * | | | Rename path_with_namespace -> disk_path when dealing with the filesystemGabriel Mazetto2017-08-012-2/+2
| | | | |
| * | | | Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-0118-57/+81
| | | | |
* | | | | Merge branch 'gitaly-commit-languages' into 'master'Sean McGivern2017-08-011-0/+39
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | Add option to use Gitaly CommitLanguages RPC See merge request !13084
| * | | | Add option to use CommitLanguages RPCJacob Vosmaer2017-08-011-0/+39
| | | | |
* | | | | Merge branch 'remove-content-commit' into 'master'Douwe Maan2017-08-011-8/+0
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | Remove unused Gitlab::Diff code See merge request !13195
| * | | | Remove unused (?) codeJacob Vosmaer2017-07-311-8/+0
| | |/ / | |/| |
* | | | Merge branch 'mk-fix-wiki-backup' into 'master'Douwe Maan2017-07-311-0/+54
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix improperly skipped backups of wikis Closes #28854 See merge request !13096
| * | | | Fix Rubocop offensemk-fix-wiki-backupMichael Kozono2017-07-281-4/+4
| | | | |
| * | | | Protect backups from stale cache for repo existsMichael Kozono2017-07-281-0/+54
| | |/ / | |/| |
* | | | Merge branch 'fix/gb/fix-chatops-deploy-multiple-actions-matching' into 'master'Kamil Trzciński2017-07-313-31/+47
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Improve deploy environment chatops slash command Closes #34748 See merge request !13150
| * | | Improve wording related to deploy chatops commandfix/gb/fix-chatops-deploy-multiple-actions-matchingGrzegorz Bizon2017-07-283-5/+5
| | | |
| * | | Improve deploy environment chatops slash commandGrzegorz Bizon2017-07-282-30/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We now match deployment actions better. If there is more than one deployment action matched, we check if there is an action which name equals to environment name, instead of raising an error about too many actions defined.
* | | | Fixes #29385: Add /shrug and /tableflip commandsAlex Ives2017-07-283-1/+94
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | - Updated DSL to support substitution definitions - Added substitution definition, inherits from command definition - Added tabelflip and shrug substitutions to interpret service - Added support for substitution definitions to the extractor for preview mode. - Added substitution handling in the interpret service Signed-off-by: Alex Ives <alex@ives.mn>
* | | Merge branch 'merge-issuable-reopened-into-opened-state' into 'master'Sean McGivern2017-07-281-9/+1
|\ \ \ | |_|/ |/| | | | | | | | Merge issuable "reopened" state into "opened" See merge request !12972
| * | Merge issuable "reopened" state into "opened"merge-issuable-reopened-into-opened-stateYorick Peterse2017-07-281-9/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having two states that essentially mean the same thing is very much like having a boolean "true" and boolean "mostly-true": it's rather silly. This commit merges the "reopened" state into the "opened" state while taking care of system notes still showing messages along the lines of "Alice reopened this issue". A big benefit from having only two states (opened and closed) is that indexing and querying becomes simpler and more performant. For example, to get all the opened queries we no longer have to query both states: SELECT * FROM issues WHERE project_id = 2 AND state IN ('opened', 'reopened'); Instead we can query a single state directly, which can be much faster: SELECT * FROM issues WHERE project_id = 2 AND state = 'opened'; Further, only having two states makes indexing easier as we will only ever filter (and thus scan an index) using a single value. Partial indexes could help but aren't supported on MySQL, complicating the development process and not being helpful for MySQL.
* | initShinya Maeda2017-07-281-0/+3
|/
* Incorporate RefsService.FindAllBranches Gitaly RPCgitaly-all-branchesAlejandro Rodríguez2017-07-272-2/+18
|
* Improve Gitlab::Git::Repository specs for #branchesAlejandro Rodríguez2017-07-271-14/+39
|
* Remove unused Gitlab::Git operationsAlejandro Rodríguez2017-07-271-138/+0
|
* Migrate Repository#tags to Gitalyfeature/migrate-repository-tags-to-gitalyAhmad Sherif2017-07-271-14/+24
| | | | Closes gitaly#411
* Merge branch 'feature/gpg-signed-commits' into 'master'Dmitriy Zaporozhets2017-07-273-0/+383
|\ | | | | | | | | | | | | GPG signed commits Closes #20268 See merge request !9546
| * optimize query, only select relevant db columnsAlexis Reigel2017-07-271-11/+53
| |
| * store gpg user name and email on the signatureAlexis Reigel2017-07-272-6/+14
| |
| * extract common methodAlexis Reigel2017-07-271-8/+21
| |
| * also update gpg_signatures when gpg_key is nullAlexis Reigel2017-07-271-15/+55
| |
| * simplify fetching of commitAlexis Reigel2017-07-271-1/+1
| |
| * remove the :gpg rspec tagAlexis Reigel2017-07-271-2/+8
| | | | | | | | | | since everything (except the CurrentKeyChain method) operates on a tempoary keychain anyway we don't need this anymore.
| * extract variableAlexis Reigel2017-07-271-6/+7
| |
| * need to wrap the raw commit in a commit modelAlexis Reigel2017-07-271-2/+7
| |
| * update invalid gpg signatures when email changesAlexis Reigel2017-07-271-25/+61
| |
| * update invalid gpg signatures when key is createdAlexis Reigel2017-07-271-0/+50
| |
| * memoize verified_signature callAlexis Reigel2017-07-271-6/+6
| |
| * store gpg_key_primary_keyid for unknown gpg keysAlexis Reigel2017-07-271-1/+1
| | | | | | | | | | we need to store the keyid to be able to update the signature later in case the missing key is added later.
| * move signature cache read to Gpg::CommitAlexis Reigel2017-07-271-12/+49
| | | | | | | | | | | | | | | | as we write the cache in the gpg commit class already the read should also happen there. This also removes all logic from the main commit class, which just proxies the call to the Gpg::Commit now.
| * gpg signature is only valid when key is verifiedAlexis Reigel2017-07-271-2/+26
| |
| * bail if the commit has no signatureAlexis Reigel2017-07-271-0/+6
| |
| * cache the gpg commit signatureAlexis Reigel2017-07-271-0/+53
| | | | | | | | | | we store the result of the gpg commit verification in the db because the gpg verification is an expensive operation.