Feature #2716 » auto_watch_previous_assignee.patch
| app/models/journal.rb | ||
|---|---|---|
|
!Watcher.any_watched?(Array.wrap(journalized), user)
|
||
|
journalized.set_watcher(user, true)
|
||
|
end
|
||
|
previous_assignee = journalized.previous_assignee
|
||
|
if previous_assignee.is_a?(User) && previous_assignee&.active? &&
|
||
|
previous_assignee.allowed_to?(:add_issue_watchers, project) &&
|
||
|
previous_assignee.pref.auto_watch_on?('issue_previous_assigned_to_me') &&
|
||
|
!Watcher.any_watched?(Array.wrap(journalized), previous_assignee)
|
||
|
journalized.set_watcher(previous_assignee, true)
|
||
|
end
|
||
|
end
|
||
|
def send_notification
|
||
| app/models/user_preference.rb | ||
|---|---|---|
|
TEXTAREA_FONT_OPTIONS = ['monospace', 'proportional']
|
||
|
DEFAULT_TOOLBAR_LANGUAGE_OPTIONS = %w[c cpp csharp css diff go groovy html java javascript objc perl php python r ruby sass scala shell sql swift xml yaml]
|
||
|
AUTO_WATCH_ON_OPTIONS = %w[issue_created issue_contributed_to]
|
||
|
AUTO_WATCH_ON_OPTIONS = %w[issue_created issue_contributed_to issue_previous_assigned_to_me]
|
||
|
def initialize(attributes=nil, *args)
|
||
|
super
|
||
| config/locales/en.yml | ||
|---|---|---|
|
label_auto_watch_on: Auto watch
|
||
|
label_auto_watch_on_issue_created: Issues I created
|
||
|
label_auto_watch_on_issue_contributed_to: Issues I contributed to
|
||
|
label_auto_watch_on_issue_previous_assigned_to_me: Issues previous assigned to me
|
||
|
label_preferences: Preferences
|
||
|
label_chronological_order: In chronological order
|
||
|
label_reverse_chronological_order: In reverse chronological order
|
||
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »