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
F18142885: D19645.id46956.diff
Thu, Aug 14, 2:22 PM
F18109012: D19645.id46951.diff
Mon, Aug 11, 11:12 AM
F18084927: D19645.id.diff
Tue, Aug 5, 6:52 PM
F18056035: D19645.diff
Mon, Aug 4, 8:05 AM
F17924526: D19645.id46956.diff
Wed, Jul 30, 10:05 AM
F17868542: D19645.diff
Mon, Jul 28, 7:54 AM
Unknown Object (File)
Jun 2 2025, 9:12 PM
Unknown Object (File)
May 30 2025, 7:15 AM
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
Branch
harbor1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 20759
Build 28226: Run Core Tests
Build 28225: arc lint + arc unit

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.