Closed Bug 1205018 Opened 9 years ago Closed 8 years ago

People besides review requesters should be able autoland

Categories

(MozReview Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dminor, Assigned: dminor)

References

Details

Attachments

(2 files)

At the moment one of our conditions for enabling the 'try' button on the Automation menu is currentIsMutableByUser [1] which seems to prevent reviewers from autolanding to try.

It would be nice if reviewers could send changesets to try if the review requester has not done so themselves.

[1] https://dxr.mozilla.org/hgcustom_version-control-tools/source/pylib/mozreview/mozreview/static/mozreview/js/try.js#89
We also have this restriction on autolanding to inbound. I believe the main concern is that we are not tracking the user who triggered request for auditing purposes. That should be easy to fix.
Assignee: nobody → dminor
Status: NEW → ASSIGNED
Summary: Reviewers should be able autoland to try → People besides review requesters should be able autoland
If we fix the user recorded in the push log then we will have the appropriate auditing to remove this restriction.
Depends on: 1210038
This removes the check for whether or not the review is mutable by the
current user, which allows people other than the review requester to
autoland provided they have sufficient privileges.

Review commit: https://reviewboard.mozilla.org/r/30189/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/30189/
Attachment #8705776 - Flags: review?(mdoglio)
Attachment #8705775 - Flags: review?(mdoglio) → review+
Comment on attachment 8705775 [details]
MozReview Request: testing: make it possible to specify repo name in create_basic_repo r?mdoglio

https://reviewboard.mozilla.org/r/30187/#review26999
Comment on attachment 8705776 [details]
MozReview Request: mozreview: people besides review requesters should be able autoland (bug 1205018) r?mdoglio

https://reviewboard.mozilla.org/r/30189/#review27001

::: pylib/mozreview/mozreview/tests/test-autoland-try.py:56
(Diff revision 1)
>          # 2. The review must be mutable by the current user

The second condition here should be removed
Attachment #8705776 - Flags: review?(mdoglio) → review+
https://reviewboard.mozilla.org/r/30189/#review27035

::: pylib/mozreview/mozreview/static/mozreview/js/autoland.js
(Diff revision 1)
> -  } else if (!MozReview.currentIsMutableByUser) {

I was under the impression we were going to add UI to show who triggered something (in MozReview, to the results stuff under the commit table?) before making this change?

::: pylib/mozreview/mozreview/static/mozreview/js/autoland.js
(Diff revision 1)
> -    try_trigger.attr('title', 'Only the author may trigger a try build at this time');

We need to consider how the results table intereacts with others triggering things on your request. If someone triggers a try build on my review request it will bump my try push from the page (and I might not even realize it right now because we don't show who made the push).
Comment on attachment 8705775 [details]
MozReview Request: testing: make it possible to specify repo name in create_basic_repo r?mdoglio

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/30187/diff/1-2/
Comment on attachment 8705776 [details]
MozReview Request: mozreview: people besides review requesters should be able autoland (bug 1205018) r?mdoglio

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/30189/diff/1-2/
https://reviewboard.mozilla.org/r/30189/#review27035

> I was under the impression we were going to add UI to show who triggered something (in MozReview, to the results stuff under the commit table?) before making this change?

I'm planning to fix this as part of Bug 1238166.

> We need to consider how the results table intereacts with others triggering things on your request. If someone triggers a try build on my review request it will bump my try push from the page (and I might not even realize it right now because we don't show who made the push).

It will still show up as a change description on the parent review - not ideal, I know. Bug 1238166 will fix showing who made the push. Now that the pushlog records the requester, the original try results will still be accessible through email or searching on treeherder. I've filed Bug 1238600 as a follow on to this to improve the UI.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Developer Services → MozReview
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: