Page MenuHomePhabricator

Add test plan to differential.revision.search
ClosedPublic

Authored by amckinley on Jul 20 2018, 3:48 AM.
Tags
None
Referenced Files
F18808941: D19518.id.diff
Sun, Oct 19, 9:52 AM
F18764525: D19518.id.diff
Tue, Oct 7, 6:31 AM
F18754832: D19518.diff
Sun, Oct 5, 1:40 AM
F18509691: D19518.id.diff
Sep 5 2025, 3:33 AM
F18502975: D19518.diff
Sep 4 2025, 10:47 PM
F18384484: D19518.id46673.diff
Aug 29 2025, 12:14 AM
F18380936: D19518.diff
Aug 28 2025, 6:36 PM
F18087020: D19518.id46673.diff
Aug 6 2025, 1:50 AM
Subscribers

Details

Summary

Ref T13151. Ref PHI622.

Test Plan

Loaded a revision in the Conduit UI; observed presence of testPlan field.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I think this is a good practical fix to PHI622, particularly considering that summary is already present.

Two hypothetical future concerns that I think aren't actually worth dealing with today:

  • In theory, this field should enable/disable itself if you enable/disable the "Test Plan" custom field, and the "Test Plan" custom field should provide the value to Conduit without needing any code here. I looked at this briefly but couldn't find a straightforward pathway, I believe. The Differential custom field code has generally been improving through adjacent changes over time so I'm reasonably confident we'll get somewhere sensible eventually.
  • Elsewhere, at least some remarkup-valued fields are futureproofed by returning a dictionary value like {"raw": "zebra"} instead of just a string ("zebra"). One example is the ManiphestTask description field on maniphest.search. This dictionary could support options like "render all remarkup to text/html in the return value", "support storing non-Remarkup values [e.g. commit messages written in Markdown]", and so on. It's not clear to me that this will ever actually be valuable, but we'd be in a bit of trouble today if we decided we do want to accommodate it. But, here, we already have to work with 'summary' so I think we're not in a materially worse position by not adopting this vague possible futureproofing.
This revision is now accepted and ready to land.Jul 20 2018, 3:35 PM
This revision was automatically updated to reflect the committed changes.