Page MenuHomePhabricator

Fix an issue where the Herald test console doesn't work with "Content source" rules
ClosedPublic

Authored by epriestley on Apr 27 2018, 6:16 PM.
Tags
None
Referenced Files
F18850159: D19411.diff
Thu, Oct 30, 2:53 PM
F18845036: D19411.id46432.diff
Wed, Oct 29, 9:16 AM
F18509601: D19411.id.diff
Sep 5 2025, 3:29 AM
F18502811: D19411.diff
Sep 4 2025, 10:40 PM
F18219864: D19411.id46425.diff
Aug 19 2025, 12:45 PM
F18216806: D19411.id46432.diff
Aug 19 2025, 7:59 AM
F18203544: D19411.id.diff
Aug 18 2025, 12:27 PM
F18193736: D19411.diff
Aug 17 2025, 6:37 AM
Subscribers
None

Details

Summary

Ref T13130. See PHI619. Currently, the Herald "Test Console" doesn't pass a "Content Source" to the adapter, so if any rules of the given type execute a "Content source" field rule, they'll fatal.

Provide a content source:

  • If possible, use the content source from the most recent transaction.
  • Otherwise, build a default "web" content source from the current request.
Test Plan
  • Wrote a "When [content source][is][whatever]" rule for tasks.
  • Ran test console against a task.
  • Before: got a fatal trying to interact with the content source.
  • After: transcript reports sensible content source.
    • Also commented out the "xaction" logic to test the fallback behavior.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable