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-01-13Address MR commentsJarka Kadlecova
2017-01-11support `/merge` slash comand for MRsJarka Kadlecova
2017-01-03Fix cross-project references copy to include the project referenceJames Lopez
Also added relevant specs and refactored to_references in a bunch of places to be more consistent.
2016-12-28use MergeRequest#closes_issues instead of rewriting code to retrieve closing ↵Gabriel Gizotti
issues on MergeRequest#issues_mentioned_but_not_closing
2016-12-16Change closes issues reference text on MergeRequest#merge_commit_message to ↵Gabriel Gizotti
match existing text generated by the system
2016-12-16Show either description or closes issues references on ↵Gabriel Gizotti
MergeRequest#merge_commit_message so closes issues references are not duplicated
2016-12-16backend completely drives creation of merge commit messageGabriel Gizotti
2016-12-16describe #closes_issues and describe # #issues_mentioned_but_not_closing on ↵Gabriel Gizotti
merge_request_spec.rb
2016-12-16only look for issues mentioned on description on ↵Gabriel Gizotti
MergeRequest#issues_mentioned_but_not_closing
2016-12-16introduce MergeRequest#issues_mentioned_but_not_closingGabriel Gizotti
2016-12-16Remove whole description from #merge_commit_message and add add closed issuesGabriel Gizotti
2016-12-15Merge branch 'jej-note-search-uses-finder' into 'security' Douwe Maan
Fix missing Note access checks in by moving Note#search to updated NoteFinder Split from !2024 to partially solve https://gitlab.com/gitlab-org/gitlab-ce/issues/23867 ## Which fixes are in this MR? :warning: - Potentially untested :bomb: - No test coverage :traffic_light: - Test coverage of some sort exists (a test failed when error raised) :vertical_traffic_light: - Test coverage of return value (a test failed when nil used) :white_check_mark: - Permissions check tested ### Note lookup without access check - [x] :white_check_mark: app/finders/notes_finder.rb:13 :download_code check - [x] :white_check_mark: app/finders/notes_finder.rb:19 `SnippetsFinder` - [x] :white_check_mark: app/models/note.rb:121 [`Issue#visible_to_user`] - [x] :white_check_mark: lib/gitlab/project_search_results.rb:113 - This is the only use of `app/models/note.rb:121` above, but importantly has no access checks at all. This means it leaks MR comments and snippets when those features are `team-only` in addition to the issue comments which would be fixed by `app/models/note.rb:121`. - It is only called from SearchController where `can?(current_user, :download_code, @project)` is checked, so commit comments are not leaked. ### Previous discussions - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#b915c5267a63628b0bafd23d37792ae73ceae272_13_13 `: download_code` check on commit - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#b915c5267a63628b0bafd23d37792ae73ceae272_19_19 `SnippetsFinder` should be used - `SnippetsFinder` should check if the snippets feature is enabled -> https://gitlab.com/gitlab-org/gitlab-ce/issues/25223 ### Acceptance criteria met? - [x] Tests added for new code - [x] TODO comments removed - [x] Squashed and removed skipped tests - [x] Changelog entry - [ ] State Gitlab versions affected and issue severity in description - [ ] Create technical debt issue for NotesFinder. - Either split into `NotesFinder::ForTarget` and `NotesFinder::Search` or consider object per notable type such as `NotesFinder::OnIssue`. For the first option could create `NotesFinder::Base` which is either inherited from or which can be included in the other two. - Avoid case statement anti-pattern in this finder with use of `NotesFinder::OnCommit` etc. Consider something on the finder for this? `Model.finder(user, project)` - Move `inc_author` to the controller, and implement `related_notes` to replace `non_diff_notes`/`mr_and_commit_notes` See merge request !2035
2016-12-06Merge branch '23589-open-issue-for-mr' into 'master' Sean McGivern
Create an issue for all unresolved discussions in an MR See merge request !7180
2016-12-06Merge branch 'glm-shorthand-reference' into 'master' Sean McGivern
GLM shorthand reference for projects from the same namespace Closes #21679 See merge request !7255
2016-12-05Feature: delegate all open discussions to IssueBob Van Landuyt
When a merge request can only be merged when all discussions are resolved. This feature allows to easily delegate those discussions to a new issue, while marking them as resolved in the merge request. The user is presented with a new issue, prepared with mentions of all unresolved discussions, including the first unresolved note of the discussion, time and link to the note. When the issue is created, the discussions in the merge request will get a system note directing the user to the newly created issue.
2016-12-05Merge branch 'fix/rename-mwbs-to-merge-when-pipeline-succeeds' into 'master' Kamil Trzciński
Rename MWBS service to Merge When Pipeline Succeeds ## What does this MR do? This MR renames Merge When Build Succeeds feature to Merge When Pipeline Succeeds, because we recently changed the behavior, see https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6675. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] All builds are passing ## What are the relevant issue numbers? Closes #23354 See merge request !7135
2016-12-03Add shorthand support to gitlab markdown referencesOswaldo Ferreira
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-30Merge branch 'master' into fix/rename-mwbs-to-merge-when-pipeline-succeedsGrzegorz Bizon
* master: (110 commits) Rewrite an HTTP link to use HTTPS Edit /spec/features/profiles/preferences_spec.rb to match changes in 084d90ac Add blue back to sub nav active Remove JSX/React eslint plugins. Fix a transient spec failure Adds hoverstates for collapsed Issue/Merge Request sidebar Moved groups above projects Add StackProf to the Gemfile, along with a utility to get a profile for a spec Update Sidekiq-cron to fix compatibility issues with Sidekiq 4.2.1 Add a CHANGELOG entry Alert user when logged in user email is not the same as the invitation Expose timestamp in build entity used by serializer Rename `MergeRequest#pipeline` to `head_pipeline` Remove unnecessary database indexes CE-specific changes gitlab-org/gitlab-ee#1137 Fixing typo & Clarifying Key name fix started_at check fix blob controller spec failure - updated not to use file-path- fix blob controller spec failure Merge branch 'jej-use-issuable-finder-instead-of-access-check' into 'security' ... Conflicts: app/controllers/projects/merge_requests_controller.rb lib/api/merge_requests.rb spec/requests/api/merge_requests_spec.rb
2016-11-29Rename `MergeRequest#pipeline` to `head_pipeline`Grzegorz Bizon
2016-11-25Merge branch 'master' into fix/rename-mwbs-to-merge-when-pipeline-succeedsGrzegorz Bizon
* master: (312 commits) Fix bad selection on dropdown menu for tags filter Fixed issue boards scrolling with a lot of lists & issues You can only assign default_branch when editing a project ... Don't convert data which already is the target type Stop supporting Google and Azure as backup strategies renames some of the specs and adds changelog entry Fixed dragging issue moving wrong issue after multiple drags of issue Fixed issue boards issue sorting when dragging issue into list Rephrase some system notes to be compatible with new system note style Add missing JIRA file that redirects to the new location Fix documentation to create the `pg_trm` extension before creating the DB Document that we always use `do...end` for `before` in RSpec Backport Note#commands_changes from EE Log mv_namespace parameters Add default_branch attr to Project API payload in docs. Fix title case to sentence case properly escape username validation error message flash Remove header ids from University docs Add missing documentation. Added test that checks the correct select box is there for the LFS ... ... Conflicts: app/services/system_note_service.rb spec/features/merge_requests/merge_when_pipeline_succeeds_spec.rb spec/services/merge_requests/merge_when_pipeline_succeeds_service_spec.rb spec/services/system_note_service_spec.rb
2016-11-23Correctly determine mergeability of MR with no discussionsDouwe Maan
2016-11-21Fix a wrong "The build for this merge request failed" messageRémy Coutable
Also allow merge request to be merged with skipped pipeline and the "only allow merge when pipeline is green" feature enabled Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-21Update some docs to reflect MWPS name changeGrzegorz Bizon
2016-11-04Complete and improve specsRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-04Add setting to only allow merge requests to be merged when all discussions ↵Rodolfo Santos
are resolved Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-10-25Merge branch 'show-commit-status-from-source-project' into 'master' Douwe Maan
Show commits from source project. Be consistent with pipeline ## What does this MR do? Show commits from source project instead of target project. ## Why was this MR needed? To be consistent. ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - Tests - [x] Added for this feature/bug ## What are the relevant issue numbers? Closes #3596 See merge request !6658
2016-10-24Remove redundant class_name and foreign_key overridesDavid Wagner
They were Rails' default and are unnecessarily overridden. Signed-off-by: David Wagner <david@marvid.fr>
2016-10-24Make sure merge request was created before deleting sourceLin Jen-Shin
2016-10-20Rename forked_source_project_missing? to source_project_missing?Nick Thomas
2016-10-20Revert "Add #closed_without_source_project?"Nick Thomas
This reverts commit 31c37c6c38258684fc92e0d91119c33872e39034. See #23341
2016-10-19Merge branch '21444-pipeliens-new-mr' into 'master' Fatih Acet
Add pipelines tab to new MR #### What does this MR do? Adds pipelines tab to new MRs #### Screenshots (if relevant) ![Screen_Shot_2016-10-10_at_10.23.27_AM](/uploads/6c3f8f2be0cf9ba7cc78f6d918307ec0/Screen_Shot_2016-10-10_at_10.23.27_AM.png) ![Screen_Shot_2016-10-11_at_8.59.45_AM](/uploads/e67577d92327eafef6f04073f3d94212/Screen_Shot_2016-10-11_at_8.59.45_AM.png) #### What are the relevant issue numbers? Closes #21444 See merge request !6238
2016-10-18Extend merge request tests for all commits methodGrzegorz Bizon
2016-10-18Merge remote-tracking branch 'upstream/master' into pipeline-emailsLin Jen-Shin
* upstream/master: (58 commits) Update endpoint to username validator change border color to variable Add todo for deprecated user routes and more information about deprecation to changelog Provide better error message to the user Apply better hierarchy to markdown headers and issue/mr titles Swapped button text manipulation outcomes for the toggle query Fixed find file keyboard navigation Update CHANGELOG for 8.12.7 Added download-button class and applied button margin Enable activerecord_sane_schema_dumper for test Updated logo from @luke Fix broken specs on MySQL after https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6896 Fix Test Env (proper error handling when gitlab-shell is not clonned) Fix randomly crashing spinach test for merge request [Great spinach fix] Replace gsub with delete Remove carriage returns from commit description as summary is on a newline and will always include carriage returns Convert due_date_select.js filetype to es6. Stop directly parsing due_date with Date.parse, prefer parsing implicitly. Improve spec for pipeline metrics worker Add Pipeline metrics worker ...
2016-10-14Just show the first merge request we found, feedback:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16963209
2016-10-14Merge remote-tracking branch 'upstream/master' into pipeline-emailsLin Jen-Shin
* upstream/master: (237 commits) Grapify boards API Add test, fix merge error Use local assigns to get the dropdown title Updated issuable dropdown titles Added safety check for formatted values Minor style improvement Fixed conflict and corrected teaspoon test Rename method in test Moved ci_status environments logic to new action ci_envrionments_status and set up frontend polling Refactor ci_status on MergeRequestController Fix indenting error in HAML Show what time ago a MR was deployed Fixed missing links Fixed missing links Refactor merge requests revisions Add link to update docs for source installations Grapify todos API Link to review apps example from docs fix grafana_configuration.md move link Do not run before_script, artifacts, cache in trigger_docs job ...
2016-10-14Introduce Pipeline#merge_requests_with_active_first,Lin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6019#note_16956802
2016-10-13Fix MR model specSean McGivern
2016-10-11refactors tests because of gitlab-test repository changestiagonbotelho
2016-10-04Merge branch 'issue_22446' into 'master' Sean McGivern
Fix bug when trying to cache closed issues from external issue trackers fixes #22446 See merge request !6619
2016-10-04Simplify Mentionable concern instance methodsPaco Guzman
We remove some arguments that are rarely used or used just to simplify setups on specs. Modified Mentionable#create_new_cross_references method we don’t need to calculate previous references to avoid the duplication because we do that at database level when creating references extracted from the current entity state. MergeRequests won’t create cross_references for commits that are included so we change a spec to use a different merge request to make references to commits to other branches
2016-10-04Fix bug when trying to cache closed issues from external issue trackersFelipe Artur
2016-10-03Add a /wip slash commandThomas Balthazar
It toggles the 'WIP' prefix in the MR title.
2016-09-27Improve how MergeCommit#merge_commit_message builds the messageRobert Speicher
Now a merge request with a blank description will no longer produce a merge commit message like this: ``` Merge branch 'foo' into 'master' Bring the wonders of foo into the world See merge request !7283 ``` What an improvement! :tada:
2016-09-22For empty merge_request_diff st_commits would be nilLin Jen-Shin
Closes #22438
2016-09-21Merge branch 'show-all-pipelines-from-all-diffs' into 'master' Rémy Coutable
Show all pipelines from all merge_request_diffs This way we could also show pipelines from commits which were discarded due to a force push. Closes #21889 See merge request !6414
2016-09-21Improve specsKamil Trzcinski
2016-09-21Add tests to verify the correctness of returned environmentsKamil Trzcinski
2016-09-20Use factory instead of using new directly. Feedback:Lin Jen-Shin
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15765156
2016-09-20Add a test for non-persisted merge requestLin Jen-Shin