Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-07Don't mark empty MRs as merged on push to the target branchSean McGivern
When we push to an MR's target branch, we check if the MR's HEAD commit is contained in the push. This lets us mark MRs as merged if they were merged manually. However, we also added a feature where you can create an empty MR from an issue. If that MR is created around the time of a merge to the default branch, we would process the push after creating the MR, and consider it to be a manual merge. To fix that, we exclude empty MRs from this process. If they are empty, they were empty before the push we're processing, so we shouldn't touch them!
2017-07-06Add table for merge request commitsSean McGivern
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.
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-05-24Add system note with link to diff comparison when MR discussion becomes outdatedDouwe Maan
2017-03-01Update occurrences of MWBS to MWPSJames Lopez
Rename column in the database Rename fields related to import/export feature Rename API endpoints Rename documentation links Rename the rest of occurrences in the code Replace the images that contain the words "build succeeds" and docs referencing to them Make sure pipeline is green and nothing is missing. updated doc images renamed only_allow_merge_if_build_succeeds in projects and fixed references more updates fix some spec failures fix rubocop offences fix v3 api spec fix MR specs fixed issues with partials fix MR spec fix alignment add missing v3 to v4 doc wip - refactor v3 endpoints fix specs fix a few typos fix project specs copy entities fully to V3 fix entity error more fixes fix failing specs fixed missing entities in V3 API remove comment updated code based on feedback typo fix spec
2017-02-13Mark as WIP based on MR commits onlyJarka Kadlecova
2017-01-23Backport EE changes on approvals reset for closed MRsOswaldo Ferreira
2017-01-19Mark MR as WIP when pushing WIP commitsjurre
2016-12-09Do not reload diff for merge request made from fork when target branch in ↵Adam Niedzielski
fork is updated The target branch of a merge request has to be a branch in the project for which the merge request is submitted. When a branch changes in a fork, it does not make sense to reload diffs of merge requests in the upstream project that use the same branch name as the target branch. Please note that it does make sense to reload diffs when the source branch changes.
2016-12-01Replace references to MergeRequestDiff#commits with st_commitsAdam Niedzielski
when we care only about the number of commits We do not have to instantiate all objects in this case.
2016-11-21Revert "Do not create a MergeRequestDiff record when source branch is deleted"Adam Niedzielski
This reverts commit f913170e2f76ef44800f0272cb7fb40b9d6709ee.
2016-11-16Do not create a MergeRequestDiff record when source branch is deletedAdam Niedzielski
In order to have a valid MergeRequestDiff record when need head_commit_sha. When a source branch is deleted head_commit_sha is nil. This causes an exception in merge request "Changes" tab.
2016-09-20Add a spec for merge request metric caching while refreshing a merge request ↵Timothy Andrew
from a forked project.
2016-09-15Improve performance of the cycle analytics page.Timothy Andrew
1. These changes bring down page load time for 100 issues from more than a minute to about 1.5 seconds. 2. This entire commit is composed of these types of performance enhancements: - Cache relevant data in `IssueMetrics` wherever possible. - Cache relevant data in `MergeRequestMetrics` wherever possible. - Preload metrics 3. Given these improvements, we now only need to make 4 SQL calls: - Load all issues - Load all merge requests - Load all metrics for the issues - Load all metrics for the merge requests 4. A list of all the data points that are now being pre-calculated: a. The first time an issue is mentioned in a commit - In `GitPushService`, find all issues mentioned by the given commit using `ReferenceExtractor`. Set the `first_mentioned_in_commit_at` flag for each of them. - There seems to be a (pre-existing) bug here - files (and therefore commits) created using the Web CI don't have cross-references created, and issues are not closed even when the commit title is "Fixes #xx". b. The first time a merge request is deployed to production When a `Deployment` is created, find all merge requests that were merged in before the deployment, and set the `first_deployed_to_production_at` flag for each of them. c. The start / end time for a merge request pipeline Hook into the `Pipeline` state machine. When the `status` moves to `running`, find the merge requests whose tip commit matches the pipeline, and record the `latest_build_started_at` time for each of them. When the `status` moves to `success`, record the `latest_build_finished_at` time. d. The merge requests that close an issue - This was a big cause of the performance problems we were having with Cycle Analytics. We need to use `ReferenceExtractor` to make this calculation, which is slow when we have to run it on a large number of merge requests. - When a merge request is created, updated, or refreshed, find the issues it closes, and create an instance of `MergeRequestsClosingIssues`, which acts as a join model between merge requests and issues. - If a `MergeRequestsClosingIssues` instance links a merge request and an issue, that issue closes that merge request. 5. The `Queries` module was changed into a class, so we can cache the results of `issues` and `merge_requests_closing_issues` across various cycle analytics stages. 6. The code added in this commit is untested. Tests will be added in the next commit.
2016-08-01webhooks: include old revision in MR update eventsBen Boeckel
2016-07-18Revert "Revert "Merge branch '18193-developers-can-merge' into 'master' ""Rémy Coutable
This reverts commit 530f5158e297f3cde27f3566cfe13bad74ba3b50. See !4892. Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-13Revert "Merge branch '18193-developers-can-merge' into 'master' "Robert Speicher
This reverts commit 9ca633eb4c62231e4ddff5466c723cf8e2bdb25d, reversing changes made to fb229bbf7970ba908962b837b270adf56f14098f.
2016-07-13Move all "checks" under `GitLab::Checks`.Timothy Andrew
- https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4892#note_12892160 - This is more consistent.
2016-07-08Enable Style/IdenticalConditionalBranches Rubocop copGrzegorz Bizon
2016-07-07Automatically update diff note positions when MR is pushed toDouwe Maan
2016-07-07Rename MergeRequest methods that return commits or shas to be more clear and ↵Douwe Maan
consistent
2016-05-17Create a todo on failing MR buildSean McGivern
When a build fails for a commit, create a todo for the author of the merge request that commit is the HEAD of. If the commit isn't the HEAD commit of any MR, don't do anything. If there already is a todo for that user and MR, don't do anything. Current limitations: - This isn't configurable by project. - The author of a merge request might not be the person who pushed the breaking commit.
2015-12-15Fixed Rubocop offensesGabriel Mazetto
2015-11-18Merge branch 'master' into merge-if-greenZeger-Jan van de Weg
2015-11-18API support, incorporated feedbackZeger-Jan van de Weg
2015-11-06Fix bug where manually merged branches in a MR would end up with an empty diffStan Hu
Closes #3314
2015-11-02Merge when build succeedsZeger-Jan van de Weg
2015-10-21Clean up MR refresh service somewhat.Douwe Maan
2015-10-21Make sure MR refresh service correctly determines newly added commits.Douwe Maan
2015-10-16Add spec for refresh service adding notes to restored branchesStan Hu
2015-10-16Rubocop fixStan Hu
2015-10-16Add system notes for restored branchesStan Hu
2015-10-16Memoize merge request source branchesStan Hu
2015-10-16Improve SystemNote interface for branch add/restore caseStan Hu
2015-10-16Preserve target branchStan Hu
2015-10-16Add a system note and update relevant merge requests when a branch is ↵Stan Hu
deleted or re-added If a branch is deleted with an open merge request, amended offline, and then pushed again, GitLab doesn't bother to update the merge request even though the last commit ID and/or code may have changed. This MR ensures that each push will update any relevant merge requests and adds a system note if this happens as well. Closes #2926
2015-08-11Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets
This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
2015-08-11Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets
This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-16Fix refresh serviceDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-07-16Huge refactoring for accepting merge requestsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-05-13Call merge request web hook for each commitsArthur Gautier
Call merge request web hook every times a new commit hits the source branch Signed-off-by: Arthur Gautier <baloo@gandi.net>
2015-05-11Update SystemNoteService method naming conventionsRobert Speicher
Now the verb comes first, and there is no restriction on singular/plural.
2015-05-11Add a SystemNoteService classRobert Speicher
There's a lot of code in the Note model that only deals with creating system notes, so we're going to split that into its own class.
2015-03-23Don't mark merge request as updated when merge status relative to target ↵Douwe Maan
branch changes.
2015-03-18Fix condensed range in MR push comment.Douwe Maan
2015-03-10Use Gitlab::Git helper methods and constants as much as possible.Douwe Maan
2015-03-06Condense commits already in target branch when updating merge request source ↵Douwe Maan
branch.
2015-02-24Merge pull request #8180 from Bugagazavr/mr_updateDmitriy Zaporozhets
Trigger merge request hook when source updated
2015-01-07Refactor merge request merge serviceDmitriy Zaporozhets
* Add system note when user merges MR in same way as it closes it * Remove duplicating code
2014-12-09Trigger merge request hook when source updatedKirill Zaitsev