summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42GitLab Bot2021-11-181-11/+11
|
* Add latest changes from gitlab-org/gitlab@14-4-stable-eev14.4.0-rc42GitLab Bot2021-10-201-0/+28
|
* Add latest changes from gitlab-org/gitlab@14-3-stable-eev14.3.0-rc42GitLab Bot2021-09-201-11/+49
|
* Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42GitLab Bot2021-08-191-0/+20
|
* Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42GitLab Bot2021-07-201-0/+4
|
* Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42GitLab Bot2021-06-161-0/+12
|
* Add latest changes from gitlab-org/gitlab@13-12-stable-eev13.12.0-rc42GitLab Bot2021-05-191-0/+10
|
* Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43GitLab Bot2021-04-201-44/+61
|
* Add latest changes from gitlab-org/gitlab@13-10-stable-eev13.10.0-rc40GitLab Bot2021-03-161-0/+19
|
* Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42GitLab Bot2021-02-181-16/+22
|
* Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42GitLab Bot2020-12-171-2/+2
|
* Add latest changes from gitlab-org/gitlab@13-4-stable-eeGitLab Bot2020-09-191-23/+77
|
* Add latest changes from gitlab-org/gitlab@13-3-stable-eeGitLab Bot2020-08-201-4/+28
|
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@13-1-stable-eeGitLab Bot2020-06-181-6/+46
|
* Add latest changes from gitlab-org/gitlab@13-0-stable-eeGitLab Bot2020-05-201-0/+40
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-171-9/+90
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-241-33/+42
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-301-6/+20
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-231-4/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-281-18/+44
|
* Merge branch 'security-filter-related-branches-from-activity-feed' into 'master'GitLab Release Tools Bot2019-11-261-0/+64
|\ | | | | | | | | Related Branches Visible to Guests in Issue Activity See merge request gitlab/gitlabhq!3537
| * Restrict branches visible to guests in Issue feedKerri Miller2019-11-201-0/+64
| | | | | | | | | | Notes related to branch creation should not be shown in an issue's activity feed when the user doesn't have access to :download_code.
* | Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-211-0/+13
|/
* Merge branch 'security-2920-fix-notes-with-label-cross-reference' into 'master'GitLab Release Tools Bot2019-10-291-0/+57
|\ | | | | | | | | Project path reveals labels from Private project if the issue is moved to public project See merge request gitlab/gitlabhq!3419
| * Add specs to cover label and milestone notesEugenia Grieff2019-10-241-0/+57
| |
* | Change Note#to_ability_name to 'note'Dylan Griffith2019-10-231-7/+13
|/ | | | | | This is to be more consistent as there is already a :read_note policy in NotePolicy. To keep other behaviour the same we've introduced a Note#noteable_ability_name that is used anywhere this was expected.
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-181-0/+10
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-171-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-161-0/+51
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-111-0/+31
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-1/+7
|
* Limit the size of issuable description and commentsAlexandru Croitor2019-08-221-0/+1
| | | | | | | | | | | | | Limiting the size of issuable description and comments to 1_000_000, which is close to ~1MB of ASCII characters, which represents 99.9% of all descriptions and comments we have in DB at the moment. This should help prevent DoS attacks when comments contain refference strings. Also this change updates regexp matching the namespaces paths by limiting the namespaces paths to Namespace::NUMBER_OF_ANCESTORS_ALLOWED, as we allow 20 levels deep groups. see https://gitlab.com/gitlab-org/gitlab-ce/issues/61974#note_191274234
* Fix first-time contributor notes not renderingsh-fix-special-role-error-500Stan Hu2019-07-311-0/+16
| | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/31117 enabled the HashInefficientHash Rubocop rule that was fooled by the special implementation of `SpecialRole`. We fix this by introducing a `value?` method and adding unit tests. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65383
* Banzai - avoid redis if attr is in DB cachebanzai-avoid-redis-if-db-cacheMario de la Ossa2019-07-101-0/+2
| | | | | | | When cache_collection_render runs we end up reading and writing things to redis even if we already have the rendered field cached in the DB. This commit avoids using redis at all whenever we have the field already rendered in the DB cache.
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-011-0/+2
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Hide "Edited" when note is transformed or resolvedHeinrich Lee Yu2019-03-141-0/+18
| | | | Makes `Note#edited?` return `false` when the note body was not edited
* Use parent instead of projectJarka Košanová2019-01-081-0/+15
| | | | Add support for group entities to quick actions
* Merge branch 'security-guest-comments' into 'master'Cindy Pallares2018-11-281-1/+1
| | | | | [master]Fixed ability to comment on and edit/delete comments on locked or confidential issues See merge request gitlab/gitlabhq!2612
* Resolve "Filter discussion (tab) by comments or activity in issues and merge ↵Oswaldo Ferreira2018-10-231-0/+24
| | | | requests"
* Filter system notes with public and private cross referencesBrett Walker2018-10-021-20/+47
|
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-3/+3
|
* Changes tab VUE refactoringFelipe Artur2018-06-211-0/+10
|
* Fix N+1 queries when loading participants for a commit noteStan Hu2018-04-181-0/+17
| | | | | | | | | We saw about 10,000 SQL queries for some commits in the NewNoteWorker, which stalled the Sidekiq queue for other new notes. The notification service took up to 8 minutes to process the commits. Avoiding this N+1 query brings the time down significantly. Closes #45526
* Merge branch 'jej/mattermost-notification-confidentiality-10-6' into ↵Douwe Maan2018-04-051-0/+15
| | | | | | | | | | 'security-10-6' [10.6] Prevent notes on confidential issues from being sent to chat See merge request gitlab/gitlabhq!2366 # Conflicts: # app/helpers/services_helper.rb
* Add foreign keys to todos table.Andreas Brandl2018-02-051-1/+1
| | | | Fixes #32282.
* use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa2018-02-021-2/+0
| | | | including/extending it
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-1/+1
|
* Make discussion mail References all notes in the discussiontc-correct-email-in-reply-toToon Claes2017-12-131-11/+8
| | | | | | | | | When a note is part of a discussion, the email sent out will be `In-Reply-To` the previous note in that discussion. It also `References` all the previous notes in that discussion, and the original issue. Closes gitlab-org/gitlab-ce#36054.
* Make mail notifications of discussion notes In-Reply-To of each otherToon Claes2017-12-131-0/+25
| | | | | | | When a note is part of a discussion, the email sent out should be `In-Reply-To` the previous note in that discussion. Closes gitlab-org/gitlab-ce#36054