Page MenuHomePhabricator

Move 'set' config option type to new structure
ClosedPublic

Authored by epriestley on Jun 26 2017, 5:27 PM.
Tags
None
Referenced Files
F15564840: D18160.id43689.diff
Wed, Apr 30, 4:29 PM
F15563848: D18160.id43696.diff
Wed, Apr 30, 10:13 AM
F15562893: D18160.id43695.diff
Wed, Apr 30, 4:54 AM
F15561705: D18160.diff
Tue, Apr 29, 9:43 PM
F15551735: D18160.id43688.diff
Sun, Apr 27, 6:13 PM
F15524229: D18160.diff
Mon, Apr 21, 6:43 AM
F15515169: D18160.id43689.diff
Fri, Apr 18, 8:17 AM
F15454195: D18160.id43688.diff
Mar 29 2025, 4:54 PM
Subscribers
None

Details

Summary

Ref T12845. This move 'set' options (a set of values).

Test Plan

Set, deleted and mangled 'set' options from CLI and web UI.

Diff Detail

Repository
rP Phabricator
Branch
config6
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 17587
Build 23607: Run Core Tests
Build 23606: arc lint + arc unit

Event Timeline

Just remove unused variable and this is g2g.

src/applications/config/type/PhabricatorSetConfigType.php
39

Technically, there's no such thing as a JSON set?

80

Unused variable.

82

This took a minute to grok, but this is because our set type is really just a regular JSON list that gets converted into a PHP array that maps all keys to true, right?

This revision is now accepted and ready to land.Jun 26 2017, 6:43 PM
  • No-op? Not sure how far this got before my internet cut out.

Er, which variable?

src/applications/config/type/PhabricatorSetConfigType.php
39

I'll wordsmith this, it's a little copy/pastey.

82

$v is used here.

89

$k is used here.

src/applications/config/type/PhabricatorSetConfigType.php
82

Oh whoops, I tagged the wrong line. It's one up, $expect_key.

Ohh, of course. Yeah, this one ended up a little copy-pastey in general.

  • Wordsmith.
  • Remove unused variable.
  • Remove slightly more code.
This revision was automatically updated to reflect the committed changes.