diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/MyDashboard/web/js/flags.js | 2 | ||||
-rw-r--r-- | extensions/PhabBugz/lib/Util.pm | 11 | ||||
-rw-r--r-- | extensions/PhabBugz/lib/WebService.pm | 1 |
3 files changed, 1 insertions, 13 deletions
diff --git a/extensions/MyDashboard/web/js/flags.js b/extensions/MyDashboard/web/js/flags.js index b56559ae3..425e42e57 100644 --- a/extensions/MyDashboard/web/js/flags.js +++ b/extensions/MyDashboard/web/js/flags.js @@ -180,8 +180,6 @@ $(function () { columns: [ { key: 'author_email', label: 'Requester', sortable: true, formattter: phabAuthorFormatter, allowHTML: true }, - { key: 'id', label: 'Status', sortable: true, - nodeFormatter: phabRowFormatter, allowHTML: true }, { key: 'bug_id', label: 'Bug', sortable: true, formatter: bugLinkFormatter, allowHTML: true }, { key: 'updated', label: 'Updated', sortable: true, diff --git a/extensions/PhabBugz/lib/Util.pm b/extensions/PhabBugz/lib/Util.pm index c4c9c7992..214bc3fb7 100644 --- a/extensions/PhabBugz/lib/Util.pm +++ b/extensions/PhabBugz/lib/Util.pm @@ -274,16 +274,7 @@ sub get_needs_review { ThrowCodeError('phabricator_api_error', { reason => 'Malformed Response' }) unless exists $diffs->{result}{data}; - # extract this reviewer's status from 'attachments' - my @result; - foreach my $diff (@{ $diffs->{result}{data} }) { - my $attachments = delete $diff->{attachments}; - my $reviewers = $attachments->{reviewers}{reviewers}; - my $review = first { $_->{reviewerPHID} eq $phab_user->phid } @$reviewers; - $diff->{fields}{review_status} = $review->{status}; - push @result, $diff; - } - return \@result; + return $diffs->{result}{data}; } 1; diff --git a/extensions/PhabBugz/lib/WebService.pm b/extensions/PhabBugz/lib/WebService.pm index 5ca811d58..0239ccf74 100644 --- a/extensions/PhabBugz/lib/WebService.pm +++ b/extensions/PhabBugz/lib/WebService.pm @@ -116,7 +116,6 @@ sub needs_review { foreach my $review (@$reviews) { my $review_flat = { id => $review->{id}, - status => $review->{fields}{review_status}, title => $review->{fields}{title}, url => Bugzilla->params->{phabricator_base_uri} . 'D' . $review->{id}, }; |