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-08-04essentialShinya Maeda
2017-07-28Merge issuable "reopened" state into "opened"Yorick Peterse
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.
2017-07-19Clear issuable counter caches on updateSean McGivern
When an issuable's state changes, or one is created, we should clear the cache counts for a user's assigned issuables, and also the project-wide caches for this user type.
2017-07-12Backport MR create service changes from EESean McGivern
In EE, the `filter_params` method needs the MR to already have its `target_project` assigned.
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-07-05Create and use project path helpers that only need a project, no namespaceDouwe Maan
2017-07-04Prevent accidental deletion of protected MR source branch by repeating ↵Douwe Maan
checks before actual deletion
2017-06-29Split up MergeRequestsControllerDouwe Maan
2017-06-21Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon
2017-06-15Rename "Slash commands" to "Quick actions"Eric Eastwood
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27070 Deprecate "chat commands" in favor of "slash commands" We looked for things like: - `slash commmand` - `slash_command` - `slash-command` - `SlashCommand`
2017-06-02Merge branch ↵Rémy Coutable
'32983-merge-conflict-resolution-removed-the-newline-in-the-end-of-file' into 'master' Resolve "Merge conflict resolution removed the newline in the end of file" Closes #32983 See merge request !11817
2017-06-01Fix race condition between pipeline creation and MR diff_head_sha updateDouwe Maan
2017-06-01Keep trailing newline when picking conflict sectionsSean McGivern
If our side of the conflict file has a trailing newline, and we are picking sections, not editing the whole content, then add a trailing newline back.
2017-05-30Merge branch 'issue_32225_2' into 'master'Kamil Trzciński
Set head pipeline when creating merge requests See merge request !11669
2017-05-29Set head pipeline when creating merge requestsFelipe Artur
2017-05-26Fix counters cache invalidation for Issues and Merge RequestsValery Sizov
2017-05-24Add system note with link to diff comparison when MR discussion becomes outdatedDouwe Maan
2017-05-18Stop MR conflict code from blowing up when branches are missingDouwe Maan
2017-05-12Fix conflict resolution from corrupted upstreamSean McGivern
I don't know why this happens exactly, but given an upstream and fork repository from a customer, both of which required GC, resolving conflicts would corrupt the fork so badly that it couldn't be cloned. This isn't a perfect fix for that case, because the MR may still need to be merged manually, but it does ensure that the repository is at least usable. My best guess is that when we generate the index for the conflict resolution (which we previously did in the target project), we obtain a reference to an OID that doesn't exist in the source, even though we already fetch the refs from the target into the source. Explicitly setting the source project as the place to get the merge index from seems to prevent repository corruption in this way.
2017-05-04Backport of multiple_assignees_feature [ci skip]Valery Sizov
2017-05-04Allow to create new branch and empty WIP merge request from issue pageAlfredo Sumaran
2017-04-27Fix 404 when upstream has disabled merge requestsmhasbini
2017-04-06Merge branch '30291-reopen-mr' into 'master'Sean McGivern
Search for opened MRs - include reopened MRs Closes #30291 See merge request !10407
2017-04-06Search for opened MRs - include reopened MRsJarka Kadlecova
2017-04-06Merge branch '29364-private-projects-mr-fix'Sean McGivern
Don’t show source project name when user does not have access See merge request !2081
2017-03-29Create todos only for new mentionsJarka Kadlecova
2017-03-17Allow creating merge request even if target branch is not specified in query ↵Adam Niedzielski
params Closes #28890
2017-03-17Add ability to disable Merge Request URL on pushAlex Sanford
2017-03-17Use Enumerable#index_by where possibleDouwe Maan
2017-03-01Merge branch 'fix/mwbs-to-mwps' into 'master' Douwe Maan
Rename MWBS to MWPS Closes #24707 See merge request !9335
2017-03-01Enable and autocorrect the CustomErrorClass copSean McGivern
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-28Use exceptions for MergeService error handlingSean McGivern
If any method called by `MergeService#execute` raises a `MergeError`, that error's message will be logged, the model will be updated, and the merge will fail.
2017-02-24Only create unmergeable todos onceSean McGivern
Previously, we created an unmergeable todo when a merge request: 1. Had merge when pipeline succeeds set. 2. Became unmergeable. However, when merge when pipeline succeeds fails due to unmergeability, the flag isn't actually removed. And a merge request can become unmergeable multiple times, as every time the target branch is updated we need to re-check the mergeable status. This means that if the todo was marked done, and the MR was checked again, a new todo would be created for the same event. Instead of checking this, we should create the todo from the service responsible for merging when the pipeline succeeds. That way the todo is guaranteed to only be created when we care about it.
2017-02-21Create compare object with default branch when target branch is missingFelipe Artur
2017-02-17Merge branch 'fix-merge-service-with-no-source' into 'master' Rémy Coutable
Fix merge service error with no source See merge request !9348
2017-02-17Fix merge service error with no sourceSean McGivern
This shouldn't be possible in CE, but is needed so that the code is the same in CE and EE.
2017-02-17Merge branch 'master' into fix/gb/pipeline-retry-builds-startedGrzegorz Bizon
* master: (313 commits) Allow slashes in slash command arguments Add API endpoint to get all milestone merge requests remove trailing comma Restore pagination to admin abuse reports replace deprecated NoErrorsPlugin with NoEmitOnErrorsPlugin only compress assets in production Reduce number of pipelines created to test pagination add CHANGELOG.md entry for !8761 prevent diff unfolding link from appearing for deleted files fix build failures only show diff unfolding link if there are more lines to show fix typo in node section Only yield valid references in ReferenceFilter.references_in Cache js selectors; fix css move "Install node modules" step before "Migrate DB" within update process Renders pagination again for pipelines table update migration docs for 8.17 to include minimum node version Add CHANGELOG file Fix positioning of top scroll button Remove comments in migration ...
2017-02-16Show merge errors in merge request widgetSean McGivern
There were two problems here: 1. On the JS side, the reference to $widgetBody didn't refer to the right DOM element any more. This might be because it was replaced by the `getMergeStatus` method. Even if it wasn't, ensuring we have the right element means that the content gets updated. 2. On the Ruby side, the `log_merge_error` method didn't update the `merge_error` column of the merge request. Change that to update if requested, and update in the most common cases by default. Additionally, this would sometimes return an error hash, but it doesn't look like this was ever used (the return value of `MergeService#execute` appears to be unused everywhere).
2017-02-15Make it possible to resolve all todos for pipelineGrzegorz Bizon
2017-02-13Mark as WIP based on MR commits onlyJarka Kadlecova
2017-02-03Backport changes from EE squashSean McGivern
Backport changes from the EE-only squash implementation, which would otherwise conflict when merge CE into EE. <https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1024>
2017-02-02Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
fix-git-hooks-when-creating-file * upstream/master: (190 commits) Remove unnecessary returns / unset variables from the CoffeeScript -> JS conversion. update spec Change the reply shortcut to focus the field even without a selection. use destroy_all Remove settings cog from within admin scroll tabs; keep links centered add changelog remove old project members from project add spec replicating validation error Fix small typo on new branch button spec Improve styling of the new issue message Don't capitalize environment name in show page Abillity to promote project labels to group labels Edited the column header for the environments list from created to updated and added created to environments detail page colum header titles Update and pin the `jwt` gem to ~> 1.5.6 refactor merge request build service Update index.md Clarify that Auto Deploy requires a public project. 19164 Add settings dropdown to mobile screens cop for gem fetched from a git source Add CHANGELOG entry ...
2017-01-31refactor merge request build serviceRydkin Maxim
add changelog entry replace local variables `merge_request` with instance ones modify `MergeRequests::BuildService` to fix failed tests extract `assign_target_project` method remove unnecessary instance variables remove exclamation marks and rewrite conditionals to improve readability extract `params_does_not_contain_branches?` method, rename `unprepared_merge_request` method to `uncreatable_merge_request` replace instance variables `merge_request` and `error_messages` with getters and setters; divide `set_title_and_description` method on two separate ones refactor `execute` method return `set_title_and_description` method rename `branches_selected?` method to `branches_present?` to make it more different from `branches_specified?` fixes after discussion renamed method branches_valid? fix space return assigning methods into `execute` method simplify `find_target_branch` and `find_source_project` methods fix spec `merge request issuable record that supports slash commands in its description and notes`
2017-01-26Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin
fix-git-hooks-when-creating-file * upstream/master: (1122 commits) Update CHANGELOG.md for 8.16.2 Display project ID in project settings (!8572) fixed points from comments to improve code quality Update CHANGELOG.md for 8.14.8 Statisfy eslint Add CHANGELOG entry Fix access to the wiki code via HTTP when repository feature disabled Display fullscreen button on small screens (!5302) Prevent removing fields from dropdowns on input elements fix for all themes Return struct instead of multiple values Fix race conditions for AuthorizedProjectsWorker Add User#nested_groups and User#nested_projects methods Fix spec failure due to timestamp ordering issue in mySQL Fixed error with filter keyboard tests `can?` already includes the `feature_available?` check Test there is no Merge Request button when MRs are disabled Ensure the correct Merge Request button is found Add 409 conflict tests Add CHANGELOG ...
2017-01-23Backport EE changes on approvals reset for closed MRsOswaldo Ferreira
2017-01-19Mark MR as WIP when pushing WIP commitsjurre
2017-01-11support `/merge` slash comand for MRsJarka Kadlecova
2017-01-04Merge branch 'master' into fix-git-hooks-when-creating-fileLin Jen-Shin
* master: (1031 commits) Add changelog entry for renaming API param [ci skip] Add missing milestone parameter Refactor issues filter in API Fix project hooks params Gitlab::LDAP::Person uses LDAP attributes configuration Don't delete files from spec/fixtures Copy, don't move uploaded avatar files Minor improvements to changelog docs Rename logo, apply for Slack too Fix Gemfile.lock for the octokit update Fix cross-project references copy to include the project reference Add logo in public files Use stable icon for Mattermost integration rewrite the item.respond_to?(:x?) && item.x? to item.try(:x?) API: extern_uid is a string Increases pipeline graph drowdown width in order to prevent strange position on chrome on ubuntu Removed bottom padding from merge manually from CLI because of repositioning award emoji's Make haml_lint happy Improve spec Add feature tests for Cycle Analytics ...