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
2018-06-07Make all uses of `fixture_file_upload` use relative pathsRobert Speicher
2018-04-23Move spec helpers/matchers/shared examples/contexts to their relevant folderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-03-07Add discussion APIJan Provaznik
* adds basic discussions API for issues and snippets * reorganizes notes specs (so same tests can be used for all noteable types - issues, MRs, snippets)
2018-02-01port of 594e6a0a625^..f74c90f68c6Micaël Bergeron
2018-01-31Make user/author use project.creator in most factoriesRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14Replace factory_girl_rails with factory_bot_railsRémy Coutable
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md) and ran these two commands: ``` grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|" grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|" ``` Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-07adding view and feature specsmicael.bergeron
2017-11-16Adds Rubocop rule for line break after guard clauseJacopo
Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
2017-08-03Change all `:empty_project` to `:project`Robert Speicher
2017-05-05Support comments for personal snippetsJarka Kadlecova
2017-05-02Display comments for personal snippetsJarka Kadlecova
2017-04-10Add specsDouwe Maan
2017-04-05Address review commentsDouwe Maan
2017-04-05Add specsDouwe Maan
2017-04-05Fix some specsDouwe Maan
2017-04-05Add option to start a new discussion on an MRDouwe Maan
2017-03-13Delegate a single discussion to a new issueBob Van Landuyt
Delegate a discussion in a merge request into a new issue. The discussion wil be marked as resolved and a system note will be added linking to the newly created issue.
2017-02-15Merge branch 'svg-xss-fix' into 'security' Robert Speicher
Fix for XSS vulnerability in SVG attachments See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2059
2017-01-26Merge branch 'rs-empty_project-for-associations' into 'master' Rémy Coutable
Factories with a project association use `:empty_project` by default See merge request !8770
2017-01-25Use a project factory with a repository where necessaryRobert Speicher
2017-01-25Factories with a project association use `:empty_project` by defaultRobert Speicher
2017-01-19Support notes without projectJarka Kadlecova
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-09-06Optimize discussion notes resolving and unresolvingAlejandro Rodríguez
Use `update_all` to only require one query per discussion to update the notes resolved status. Some changes had to be made to the discussion spec to accout for the fact that notes are not individually updated now
2016-07-07Add DiffNote modelDouwe Maan
2016-05-30Merge branch 'master' into awardablesZJ van de Weg
2016-05-29Improve note factoryGrzegorz Bizon
2016-05-29Improve notes factoryGrzegorz Bizon
2016-05-29Minor changes in note validation specsGrzegorz Bizon
2016-05-29Update specs to carry out changes in note factoryGrzegorz Bizon
2016-05-29Do not override foreign attributes in note factoryGrzegorz Bizon
2016-05-29Update note factory to include noteable associationGrzegorz Bizon
2016-05-18Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardablesFatih Acet
# Conflicts: # app/controllers/projects/merge_requests_controller.rb # app/models/note.rb # db/schema.rb # spec/models/note_spec.rb
2016-05-14Update specsDouwe Maan
2016-05-11Merge branch 'master' into awardablesZeger-Jan van de Weg
2016-05-09Remove the annotate gem and delete old annotationsJeroen van Baarsen
In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
2016-05-06Create table for award emojiZeger-Jan van de Weg
2016-03-04Move all factory definitions to their own fileRobert Speicher
2016-02-17Add ability to see and sort on vote count from Issues and MR listsDouglas Barbosa Alexandre
2015-12-09Update annotationsStan Hu
2015-09-06Re-annotate modelsStan Hu
2015-05-11Simplify Note model specsRobert Speicher
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-06Added comment notification events to HipChat and Slack services.Stan Hu
Supports four different event types all bundled under the "note" event type: - comments on a commit - comments on an issue - comments on a merge request - comments on a code snippet
2014-08-25Annotate modelsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-08-01Fix project and notes specsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>