Page MenuHomePhabricator

Make DiffusionCommitSearch accept modern (string) constants
ClosedPublic

Authored by epriestley on Sep 10 2018, 7:11 PM.
Tags
None
Referenced Files
F17445613: D19651.id46974.diff
Tue, Jul 1, 6:36 AM
Unknown Object (File)
Sun, Jun 29, 2:21 PM
Unknown Object (File)
May 28 2025, 2:14 PM
Unknown Object (File)
May 27 2025, 7:23 AM
Unknown Object (File)
May 7 2025, 12:26 PM
Unknown Object (File)
May 5 2025, 3:10 PM
Unknown Object (File)
Apr 30 2025, 11:21 AM
Unknown Object (File)
Apr 26 2025, 1:25 PM
Subscribers
None

Details

Summary

Depends on D19650. Ref T13197. Allow SearchCheckboxesField to have a "deprecated" map of older aliases, then convert them to modern values.

On the API method page, show all the values.

This technically resolves the issue in PHI841, although I still plan to migrate behind this.

Test Plan

Screen Shot 2018-09-10 at 12.10.21 PM.png (575×569 px, 68 KB)

  • Queried audits, fiddled with ?status=1,audited, etc.

Diff Detail

Repository
rP Phabricator
Branch
audit8
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20781
Build 28258: Run Core Tests
Build 28257: arc lint + arc unit

Event Timeline

epriestley marked an inline comment as done.
epriestley added inline comments.
src/applications/audit/constants/PhabricatorAuditCommitStatusConstants.php
96–126

No more callers for this stuff.

amckinley added inline comments.
src/applications/search/engine/PhabricatorSearchEngineAPIMethod.php
233–237

Should we add a little icon in this column to match the appearance of frozen conduit methods? (This is is kind of an actual consistency issue).

Or alternately, add 💚vs ❌on every row? (This is just bike-shedding).

This revision is now accepted and ready to land.Sep 10 2018, 9:09 PM
  • Add a little /!\ icon for deprecated, like Conduit methods get a level above.

Yeah, that's reasonable:

Screen Shot 2018-09-10 at 2.37.57 PM.png (529×579 px, 67 KB)

Although let me fiddle with this a little bit since it looks a touch awkward now.

  • Since the description is clear about "deprecated" anyway, just put the icon there instead of in a weird column?

This seems a little better, I think?

Screen Shot 2018-09-10 at 2.40.27 PM.png (550×528 px, 60 KB)

This seems a little better, I think?

Looks good to me.

This revision was automatically updated to reflect the committed changes.