Page MenuHomePhabricator

Allow underscores to appear in Harbormaster variable names
ClosedPublic

Authored by epriestley on Sep 7 2018, 3:07 PM.
Tags
None
Referenced Files
F18790737: D19645.id46951.diff
Wed, Oct 15, 5:53 PM
F18643937: D19645.diff
Fri, Sep 19, 3:43 AM
F18599430: D19645.diff
Sep 13 2025, 7:24 AM
F18568342: D19645.id46956.diff
Sep 10 2025, 12:02 AM
F18568340: D19645.id46951.diff
Sep 10 2025, 12:02 AM
F18545257: D19645.diff
Sep 8 2025, 1:40 AM
F18509808: D19645.id.diff
Sep 5 2025, 3:37 AM
F18503275: D19645.diff
Sep 4 2025, 10:57 PM
Subscribers
Restricted Owners Package

Details

Summary

See PHI859. Ref T13195. The regexp for replacing variables currently does not include underscores.

Include underscores.

I also made a note in T13088: we should (almost certainly?) throw immediately if you try to pass a bogus variable name as a custom parameter, but this is a slightly larger change.

Test Plan
  • Made an "http request" build plan with ?x=${initiator.phid}&y={$some_variable}.
  • Added some_variable as a parameter to the parameter collection.
  • Before patch: initiator.phid was replaced, but some_variable was not.
  • After patch: both variables are replaced.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a subscriber: Restricted Owners Package.Sep 7 2018, 3:07 PM
This revision is now accepted and ready to land.Sep 7 2018, 3:56 PM
This revision was automatically updated to reflect the committed changes.