Page MenuHomePhabricator

T7646: Fix buildplan ac on Herald.
ClosedPublic

Authored by Pawka on Mar 23 2015, 10:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 2:08 AM
Unknown Object (File)
Thu, Apr 11, 12:46 AM
Unknown Object (File)
Sun, Mar 24, 12:25 AM
Unknown Object (File)
Feb 8 2024, 5:08 PM
Unknown Object (File)
Jan 3 2024, 7:17 PM
Unknown Object (File)
Dec 30 2023, 5:57 PM
Unknown Object (File)
Dec 30 2023, 2:34 AM
Unknown Object (File)
Dec 29 2023, 10:35 AM
Subscribers

Details

Summary

Fixes T7646.

Test Plan

Repeat steps described in T7646 and expect disabled build plans not displayed.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Pawka retitled this revision from to T7646: Fix buildplan ac on Herald..
Pawka updated this object.
Pawka edited the test plan for this revision. (Show Details)
Pawka added a reviewer: epriestley.
epriestley edited edge metadata.

Instead, we should call setClosed($description)on TypeaheadResult, passing a string like pht('Disabled'). See PhabricatorProjectDatasource for an example.

This will still allow these plans to be selected, but only if they are the only match for the input, and they will show the user that the plan is disabled.

Previously, when we just removed disabled plans from these typehaeads, we ran into a few issues:

  • Users would know something existed but not understand why they couldn't select it, because they'd forget or not consider that the thing was closed/disabled/archived.
  • Users would, for various reasons, occasionally want to select disabled values, and be unable to.

Flagging these results seems to have resolved both issues: the disabled/closed stuff stays out of the way normally, but if you're trying to get to it you still can.

This revision now requires changes to proceed.Mar 23 2015, 12:03 PM

Previously, when we just removed disabled plans

Er, sorry, I mean when we previously removed disabled objects. Specifically, disabled users and archived projects were removed from some typeaheads before we implemented the setClosed() behavior, which caused the issues described above.

Pawka edited edge metadata.

Updated behaviour.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Mar 23 2015, 1:19 PM
Closed by commit rPb4d0de6b96d2: T7646: Fix buildplan ac on Herald. (authored by Povilas Balzaravicius Pawka <povilas@uber.com>, committed by epriestley). · Explain WhyMar 23 2015, 1:20 PM
This revision was automatically updated to reflect the committed changes.