-
- Downloads
Merge branch 'rs-issue-1773' into 'master'
Fix mentions not being created upon issue/merge request update New cross-references weren't being added when they were made in an issue or merge request update. This happened because the relevant `UpdateService`s were making the `notice_added_references` call after the model had already been updated and saved, so the `changes` attribute was empty and no cross-references were made at all. This fixes the bug and adds a bit of testing and a bit of refactoring. Closes #1773 See merge request !974
No related branches found
No related tags found
Showing
- app/models/concerns/mentionable.rb 28 additions, 14 deletionsapp/models/concerns/mentionable.rb
- app/models/note.rb 1 addition, 1 deletionapp/models/note.rb
- app/services/issues/update_service.rb 1 addition, 1 deletionapp/services/issues/update_service.rb
- app/services/merge_requests/update_service.rb 1 addition, 1 deletionapp/services/merge_requests/update_service.rb
- spec/models/concerns/mentionable_spec.rb 49 additions, 0 deletionsspec/models/concerns/mentionable_spec.rb
- spec/support/mentionable_shared_examples.rb 1 addition, 1 deletionspec/support/mentionable_shared_examples.rb
Please register or sign in to comment