1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-07 13:21:02 +01:00
phorge-phorge/src/applications/differential/xaction
epriestley 19572f53fd Don't consider accepting on behalf of valid-but-accepted reviewers to be a validation error
Summary:
Fixes T12757. Here's a simple repro for this:

  - Add a package you own as a reviewer to a revision you're reviewing.
  - Open two windows, select "Accept", don't submit the form.
  - Submit the form in window A.
  - Submit the fomr in window B.

Previously, window B would show an error, because we considered accepting on behalf of the package invalid, as the package had already accepted.

Instead, let repeat-accepts through without complaint.

Some product stuff:

  - We could roadblock users with a more narrow validation error message here instead, like "Package X has already been accepted.", but I think this would be more annoying than helpful.
  - If your accept has no effect (i.e., everything you're accepting for has already accepted) we currently just let it through. I think this is fine -- and a bit tricky to tailor -- but the ideal/consistent beavior is to do a "no effect" warning like "All the reviewers you're accepting for have already accepted.". This is sufficiently finnicky/rare (and probably not terribly useful/desiable in this specific case)that I'm just punting.

Test Plan: Did the flow above, got an "Accept" instead of a validation error.

Reviewers: chad, lvital

Reviewed By: chad, lvital

Subscribers: lvital

Maniphest Tasks: T12757

Differential Revision: https://secure.phabricator.com/D18019
2017-05-25 14:30:19 -07:00
..
DifferentialRevisionAbandonTransaction.php Restore "[Action]" mail subject lines to Differential/Diffusion 2017-01-12 11:44:24 -08:00
DifferentialRevisionAcceptTransaction.php Don't consider accepting on behalf of valid-but-accepted reviewers to be a validation error 2017-05-25 14:30:19 -07:00
DifferentialRevisionActionTransaction.php When reviewing, always show "Accept" checkboxes for packages/projects, even if there's only one checkbox 2017-04-10 17:28:02 -07:00
DifferentialRevisionCloseTransaction.php Restore "[Action]" mail subject lines to Differential/Diffusion 2017-01-12 11:44:24 -08:00
DifferentialRevisionCommandeerTransaction.php Fix typo in DifferentialRevisionCommandeerTransaction 2017-01-30 12:23:07 -08:00
DifferentialRevisionPlanChangesTransaction.php Restore "[Action]" mail subject lines to Differential/Diffusion 2017-01-12 11:44:24 -08:00
DifferentialRevisionReclaimTransaction.php Restore "[Action]" mail subject lines to Differential/Diffusion 2017-01-12 11:44:24 -08:00
DifferentialRevisionRejectTransaction.php Allow users to re-accept or re-reject a revision if they have authority over package/project reviewers not yet in the target state 2017-01-18 13:16:01 -08:00
DifferentialRevisionReopenTransaction.php Restore "[Action]" mail subject lines to Differential/Diffusion 2017-01-12 11:44:24 -08:00
DifferentialRevisionRepositoryTransaction.php Add Summary and Repository EditEngine fields + Modular Transactions to Differential 2016-12-13 18:18:32 -08:00
DifferentialRevisionRequestReviewTransaction.php Restore "[Action]" mail subject lines to Differential/Diffusion 2017-01-12 11:44:24 -08:00
DifferentialRevisionResignTransaction.php Allow users to resign if they have authority over any reviewer 2017-03-24 13:14:47 -07:00
DifferentialRevisionReviewersTransaction.php Rename "getReviewerStatus()" to "getReviewers()" 2017-03-20 17:11:40 -07:00
DifferentialRevisionReviewTransaction.php Don't consider accepting on behalf of valid-but-accepted reviewers to be a validation error 2017-05-25 14:30:19 -07:00
DifferentialRevisionSummaryTransaction.php Fix two issues with embedding other fields inside "Summary" or "Test Plan" in Differential with the web UI 2017-01-25 13:07:30 -08:00
DifferentialRevisionTestPlanTransaction.php Drive CLI-based revision edits through "differential.revision.edit" API + EditEngine 2016-12-16 10:08:49 -08:00
DifferentialRevisionTitleTransaction.php Drive CLI-based revision edits through "differential.revision.edit" API + EditEngine 2016-12-16 10:08:49 -08:00
DifferentialRevisionTransactionType.php Allow users to resign if they have authority over any reviewer 2017-03-24 13:14:47 -07:00
DifferentialRevisionVoidTransaction.php Don't downgrade accepts on update (fix "sticky accept") 2017-04-03 09:55:22 -07:00