summaryrefslogtreecommitdiff
path: root/spec/services
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge branch '18193-developers-can-merge' into 'master' "Robert Speicher2016-07-132-13/+4
| | | | | This reverts commit 9ca633eb4c62231e4ddff5466c723cf8e2bdb25d, reversing changes made to fb229bbf7970ba908962b837b270adf56f14098f.
* Implement last round of review comments from !4892.18193-developers-can-mergeTimothy Andrew2016-07-131-1/+2
| | | | | | | | 1. Fix typos, minor styling errors. 2. Use single quotes rather than double quotes in `user_access_spec`. 3. Test formatting.
* Enforce "developers can merge" during `pre-receive`.Timothy Andrew2016-07-131-2/+1
| | | | | | | | | | | | | | 1. When a merge request is being merged, save the merge commit SHA in the `in_progress_merge_commit_sha` database column. 2. The `pre-receive` hook looks for any locked (in progress) merge request with `in_progress_merge_commit_sha` matching the `newrev` it is passed. 3. If it finds a matching MR, the merge is legitimate. 4. Update `git_access_spec` to test the behaviour we added here. Also refactored this spec a bit to make it easier to add more contexts / conditions.
* Added "developers can merge" setting to protected branchesMathias Vestergaard2016-07-131-2/+11
| | | | | - Cherry-picked from `mvestergaard:branch-protection-dev-merge` - https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4220
* Avoid `describe`-ing symbols in specsrs-describe-symbolsRobert Speicher2016-07-1217-27/+27
|
* Reset project pushes_since_gc when we enqueue the git gc callPaco Guzman2016-07-121-9/+33
|
* Expire the branch cache after `git gc` runsStan Hu2016-07-121-2/+2
| | | | | | | Due to a stale NFS cache, it's possible that a branch lookup fails while `git gc` is running and causes missing branches in merge requests. Possible workaround for #15392
* Allow SentNotification#position to be set as string or hashDouwe Maan2016-07-111-0/+24
|
* Add comment with diff to DiffPositionUpdateService specnew-diff-notesDouwe Maan2016-07-071-0/+104
|
* Add tests for DiffPositionUpdateServiceDouwe Maan2016-07-061-0/+71
|
* Rename MergeRequest methods that return commits or shas to be more clear and ↵Douwe Maan2016-07-061-1/+1
| | | | consistent
* Handle custom Git hook result in GitLab UIValery Sizov2016-07-041-0/+10
|
* Better message for git hooks and file locksValery Sizov2016-07-042-7/+7
|
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-015-15/+0
|
* Merge branch 'fix-external-issue-rendering' into 'master' Robert Speicher2016-06-301-0/+2
|\ | | | | | | | | | | | | | | | | Handle external issues in IssueReferenceFilter Rendering issue references such as `#1` was broken for projects using an external issues tracker. See gitlab-org/gitlab-ce#19036 See merge request !4988
| * Fix broken spec in git_push_service_spec by stubbing an external issue trackerfix-external-issue-renderingStan Hu2016-06-301-0/+2
| |
* | Expire branch/tag git data when needed.18709-branch-tag-collection-cachingPaco Guzman2016-06-302-0/+61
| | | | | | | | | | | | | | | | | | | | When pushing commits to existing branches we don’t need to flush branch git data (branch names / counts) When flushes the cache when pushing commits skip to flush branch and tag git data (names / counts) because those operations are managed explicitly in each case Repopulated expired cache as soon as possible
* | Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-293-11/+11
|/
* Merge branch 'fix-18997' into 'master' Robert Speicher2016-06-271-0/+59
|\ | | | | | | | | | | | | Fix visibility of snippets when searching Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/18997 See merge request !1972
| * Fix visibility of private project snippets for members when searchingDouglas Barbosa Alexandre2016-06-221-8/+30
| |
| * Fix internal snippets can be searched by anyoneDouglas Barbosa Alexandre2016-06-221-0/+37
| |
* | Add support for "skip ci" tooSimon Welsh2016-06-251-1/+32
| |
* | Allow "ci skip" to be in any caseSimon Welsh2016-06-251-0/+15
|/
* Raise a new Gitlab::Access::AccessDeniedError when permission is not enough ↵Rémy Coutable2016-06-181-2/+22
| | | | | | | | to destroy a member This is a try for a new approach to put the access checks at the service level. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't send the "access declined" email on access request withdrawalRémy Coutable2016-06-181-0/+8
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* New Members::DestroyServiceRémy Coutable2016-06-181-0/+43
| | | | | | | This is to ensure we don't send unwanted notifications when deleting a project. In other words, stop abusing AR callbacks and use services. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'issue_12758' into 'master' Douwe Maan2016-06-171-7/+110
|\ | | | | | | | | | | | | | | | | | | | | Implement custom notification level options ![Screen_Shot_2016-06-17_at_15.31.43](/uploads/3fc47d2f461b3e8b67bb8acaa304cf99/Screen_Shot_2016-06-17_at_15.31.43.png) ![Screenshot_from_2016-06-15_10-52-27](/uploads/88dbdd21d97e80ee772fe08fa0c9b393/Screenshot_from_2016-06-15_10-52-27.png) part of #12758 See merge request !4389
| * Merge master into issue_12758issue_12758Felipe Artur2016-06-175-5/+91
| |\
| * | Allow users to set custom notifications in projects they don't own and ↵Felipe Artur2016-06-171-3/+0
| | | | | | | | | | | | several fixes to code
| * | Re-use notifications dropdown/modal for user profileFelipe Artur2016-06-171-14/+76
| |\ \
| | * | Re-use notifications dropdown on user profileFelipe Artur2016-06-161-14/+74
| | | |
| | * | Improve notification settings event keys and add some specsFelipe Artur2016-06-131-6/+50
| | | |
| * | | Implement custom notification level optionsFelipe Artur2016-06-151-6/+50
| | | |
* | | | Cache todo counters (pending/done)18034-cache-todo-counterPaco Guzman2016-06-171-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - As todos are created/updated inside the TodoService we repopulate the cache just there for both pending/done todos - Todos as mark as done from the TodosController we update cache there too - All the added methods are kept in the User class for cohesion
* | | | Fix error when editing an issuable with a task listfix-toggling-task-should-not-generate-todoDouglas Barbosa Alexandre2016-06-171-18/+34
| |_|/ |/| |
* | | Merge branch 'remove_jiraissue' into 'master' Robert Speicher2016-06-171-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove JiraIssue model and replace references with ExternalIssue This MR Removes unused JiraIssue class and replaces references with ExternalIssue Closes #18203 See merge request !4659
| * | | Remove JiraIssue model and replace references with ExternalIssueIlan Shamir2016-06-161-1/+1
| | | |
* | | | Merge branch 'banzai-issue-filter-queries' into 'master' Douwe Maan2016-06-161-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce SQL query counts in IssueReferenceFilter ## What does this MR do? This MR adds a preparation phase for reference filters that allows them to prepare/create data structures used while iterating over HTML nodes. In this particular case the preparation phase is used for issue references to greatly cut down the amount of queries executed to get projects/issues for Markdown references. ## Are there points in the code the reviewer needs to double check? No. ## Why was this MR needed? Rendering Markdown containing issue references would run at most two queries for every issue reference: one to get the project and one to get the issue from said project. When rendering Markdown with lots of issue references this would result in _a lot_ of queries being executed. ## What are the relevant issue numbers? #18042 See merge request !4410
| * | | | Reduce queries in IssueReferenceFilterbanzai-issue-filter-queriesYorick Peterse2016-06-161-1/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the number of queries executed in IssueReferenceFilter by retrieving the various projects/issues that may be referenced in batches _before_ iterating over all the HTML nodes. A chunk of the logic resides in AbstractReferenceFilter so it can be re-used by other filters in the future.
* | | | Merge branch 'fix/status-of-pipeline-without-builds' into 'master' Rémy Coutable2016-06-162-3/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve pipeline status in case that pipeline has no jobs ## What does this MR do? This MR resolves problem with pipeline status when there are no build in pipeline. This can happen when builds were skipped - for example - by using `only`/`except` keyword in `.gitlab-ci.yml`. ## What are the relevant issue numbers? Closes #17977 See merge request !4403
| * \ \ \ Merge branch 'master' into fix/status-of-pipeline-without-buildsfix/status-of-pipeline-without-buildsGrzegorz Bizon2016-06-152-0/+135
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (198 commits) Set inverse_of for Project/Services relation Fix admin hooks spec Prevent default disabled buttons and links. Add index on `requested_at` to the `members` table Rearrange order of tabs Fix admin active tab tests Show created_at in table column Nest li elements directly under ul Move builds tab to admin overview Add monitoring link with subtabs Add sub links to overview Add counter for abuse reports Remove admin layout-nav counters Move admin nav to horizontal layout nav Eager load project relations in IssueParser Use validate and required for environment and project Award Emoji can't be awarded on system notes backend Get rid of Gitlab::ShellEnv Update CHANGELOG. Fix project star tooltip on the fly. ... Conflicts: app/services/ci/create_builds_service.rb
| * | | | Remove reduntant method for building pipeline buildsGrzegorz Bizon2016-06-151-0/+1
| | | | |
| * | | | Improve code clarity in pipeline create serviceGrzegorz Bizon2016-06-141-2/+2
| | | | |
| * | | | Merge branch 'master' into fix/status-of-pipeline-without-buildsGrzegorz Bizon2016-06-1416-218/+764
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (538 commits) Fix broken URI joining for `teamcity_url` with suffixes Factorize duplicated code into a method in BambooService and update specs Fix broken URI joining for `bamboo_url` with suffixes Honor credentials on calling Bamboo CI trigger Update CHANGELOG Use Issue.visible_to_user in Notes.search to avoid query duplication Project members with guest role can't access confidential issues Allow users to create confidential issues in private projects Update CHANGELOG Remove deprecated issues_tracker and issues_tracker_id from project Schema doesn’t reflect the changes of the last 3 migrations Apply reviewer notes: update CHANGELOG, adjust code formatting Move issue rendering tests into separate contexts Move change description to proper release and fix typo Add more information into RSS fead for issues Revert CHANGELOG Also rename "find" in the specs Change to new Notes styleguide Add guide on changing a document's location Change logs.md location in README ... Conflicts: app/services/ci/create_builds_service.rb app/services/ci/create_pipeline_service.rb app/services/create_commit_builds_service.rb spec/models/ci/commit_spec.rb spec/services/ci/create_builds_service_spec.rb spec/services/create_commit_builds_service_spec.rb
| * | | | Update CreateCommitBuildsService to pass testsKamil Trzcinski2016-06-031-4/+4
| | | | |
| * | | | Do not create pipeline objects when no buildsGrzegorz Bizon2016-06-031-1/+5
| | | | |
| * | | | Update ci commit pipeline specs according to changesGrzegorz Bizon2016-06-031-1/+1
| | | | |
| * | | | Add minor improvements in create builds serviceGrzegorz Bizon2016-06-031-1/+1
| | | | |
| * | | | Add specs covering case when there are no buildsGrzegorz Bizon2016-06-031-0/+18
| | | | |
| * | | | Refactor ci commit pipeline to prevent implicit savesGrzegorz Bizon2016-06-031-1/+1
| | | | |