Robert Speicher
f3d4767d0c
Rename notice_added_references to create_new_cross_references!
2015-07-13 21:31:16 -04:00
Robert Speicher
e4c698fd5c
Refactor Mentionable#notice_added_references
...
It now accounts for models that have changed but have already been
persisted, such as when called from an UpdateService.
Closes #1773
2015-07-13 21:31:00 -04:00
Robert Speicher and Dmitriy Zaporozhets
2120e2dd95
Replace remaining references to Note.create_cross_reference_note
2015-06-22 12:13:46 +02:00
Robert Speicher
23954b0f77
Correctly remove already-mentioned commits for cross references
...
Fixes #1778
2015-06-08 18:13:14 -04:00
Robert Speicher
3cb6a33846
More SystemNoteService cleanup
2015-05-26 16:30:07 -04:00
Robert Speicher
1a277c5025
Minor documentation updates
2015-05-26 15:48:32 -04:00
Robert Speicher
0359d41b06
Implement gfm_reference directly in Mentionable
...
Except for Note, which still overrides it.
2015-05-26 15:48:31 -04:00
Douwe Maan
77dc71d550
Fix mentioning of private groups.
2015-05-14 13:15:13 +02:00
Robert Speicher
48e6fb532a
Add a SystemNoteService class
...
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-05-11 00:01:01 -04:00
Douwe Maan
0ff778c0f4
Link cross-project cross-reference notes to correct project.
2015-04-24 12:30:36 +02:00
Douwe Maan
51ad59e0d8
Fix bug causing @whatever inside code blocks to sometimes be picked up as a user mention.
2015-04-21 14:58:18 +02:00
Douwe Maan
959ebbcade
Clean up code around commit mentions.
2015-04-15 17:57:31 +02:00
Douwe Maan
c5d7660000
Fix errors.
2015-04-02 22:36:54 +02:00
Douwe Maan
65bb0c3406
Only allow users to cross-reference and close issues they have access to.
2015-04-02 10:57:01 +02:00
Douwe Maan
e62b5a2b07
Only allow user to see participants from groups they have access to.
2015-04-02 10:57:01 +02:00
Douwe Maan
403b727138
Slightly refactor getting note notification recipients.
2015-04-02 10:57:01 +02:00
Douwe Maan
d2bd606759
Refactor Mentionable mentioned users to use ReferenceExtractor.
2015-04-02 10:57:01 +02:00
Douwe Maan
b1ef1aa59f
Slightly refactor ReferenceExtractor.
2015-04-02 10:53:38 +02:00
Douwe Maan
61e8ca8ce0
Don't leak private group existence by redirecting from namespace controller to group controller.
2015-03-24 15:55:12 +01:00
Stan Hu
7e204cf389
Added comment notification events to HipChat and Slack services.
...
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
2015-03-06 06:54:00 -08:00
Marin Jankovski
29e606deec
Add ExternalIssue base model to make issue referencing more robust for external issue trackers.
2015-02-11 09:21:57 -08:00
Douwe Maan
9910b7ff99
Allow groups to be mentioned.
...
Resolves #1673 .
2015-02-05 19:10:52 +01:00
Ciro Santilli
33c9f05c6b
Append in place for strings and arrays
2015-01-01 21:12:00 +01:00
Dmitriy Zaporozhets
fd17ba9ffc
Mentioned users are not limited by project scope any more
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-10-30 13:26:45 +02:00
Vinnie Okada
088987e2dd
Make Mentionables work for cross-project refs
...
Add a note to merge requests and issues when they're mentioned by a
merge request, issue, or commit in another project.
2014-10-03 12:30:20 -05:00
Vinnie Okada
2c46c4523f
Track projects in ReferenceExtractor
...
Store both the project and identifier of extracted references. This
prevents `ReferenceExtractor` from returning objects in the wrong
project for cross-project references.
2014-10-03 12:30:20 -05:00
Ciro Santilli
2e9f5de868
Add parenthesis to function def with arguments.
2014-10-03 09:18:46 +02:00
Marin Jankovski
4c575b72d5
Move checking of recepients to a service.
2014-06-23 15:44:49 +02:00
Marin Jankovski
185da5f976
Make sure that at mentioning all properly notifies.
2014-06-23 12:28:57 +02:00
Dmitriy Zaporozhets
181aa2b916
More efficient query for mentionable users
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-04 19:23:31 +03:00
Dmitriy Zaporozhets
6263598314
Respect group members in mentionable concern
2013-09-04 17:05:48 +03:00
ash wilson
c8a115c0e3
Link issues from comments and automatically close them
...
Any mention of Issues, MergeRequests, or Commits via GitLab-flavored markdown
references in descriptions, titles, or attached Notes creates a back-reference
Note that links to the original referencer. Furthermore, pushing commits with
commit messages that match a (configurable) regexp to a project's default
branch will close any issues mentioned by GFM in the matched closing phrase.
If accepting a merge request would close any Issues in this way, a banner is
appended to the merge request's main panel to indicate this.
2013-08-25 18:58:41 -04:00
Javier Castro
cf35d19c2e
Show participants on issues, including mentions, and notify email to all participants
2013-06-24 11:55:44 -03:00