diff options
author | dklawren <dklawren@users.noreply.github.com> | 2017-09-12 19:05:32 +0200 |
---|---|---|
committer | David Walsh <davidwalsh83@gmail.com> | 2017-09-12 19:05:32 +0200 |
commit | 90757225b25c4eab4b4f4b9296c63746c710721d (patch) | |
tree | 1f7d4961e21aa2592f62d66fc86a5a603ea740f0 /extensions/PhabBugz | |
parent | 43d5609877e8690fe5bba5243d4642014fb2ba06 (diff) | |
download | bugzilla-90757225b25c4eab4b4f4b9296c63746c710721d.tar.gz bugzilla-90757225b25c4eab4b4f4b9296c63746c710721d.tar.xz |
Bug 1396957 - Synchronize CC list on security bugs over to revisions as subscribers (#230)
* Bug 1396957 - Synchronize CC list on security bugs over to revisions as subscribers
* - Updated to only make subscriber changes if no groups have changed.
- This cuts down on the amount of custom policy changes in the revision
activity.
* Bug 1396957 - Synchronize CC list on security bugs over to revisions as subscribers
* - Updated to only make subscriber changes if no groups have changed.
- This cuts down on the amount of custom policy changes in the revision
activity.
* Bug 1396042 - Implement logging for the BMO push connector
* Bug 1397747 - Move _get_all_group_names to Bugzilla::Config::Common::_get_all_group_names, and remove copy-pasted code
Diffstat (limited to 'extensions/PhabBugz')
-rw-r--r-- | extensions/PhabBugz/lib/Util.pm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/extensions/PhabBugz/lib/Util.pm b/extensions/PhabBugz/lib/Util.pm index becd5bb29..9e2cac149 100644 --- a/extensions/PhabBugz/lib/Util.pm +++ b/extensions/PhabBugz/lib/Util.pm @@ -38,6 +38,7 @@ our @EXPORT = qw( make_revision_public request set_project_members + set_revision_subscribers ); sub get_revisions_by_ids { @@ -202,7 +203,7 @@ sub edit_revision_policy { if (@$subscribers) { push(@{ $data->{transactions} }, { - type => 'subscribers.add', + type => 'subscribers.set', value => $subscribers }); } @@ -210,6 +211,22 @@ sub edit_revision_policy { return request('differential.revision.edit', $data); } +sub set_revision_subscribers { + my ($revision_phid, $subscribers) = @_; + + my $data = { + transactions => [ + { + type => 'subscribers.set', + value => $subscribers + } + ], + objectIdentifier => $revision_phid + }; + + return request('differential.revision.edit', $data); +} + sub add_comment_to_revision { my ($revision_phid, $comment) = @_; |