Page MenuHomePhabricator

Make "bin/config set --database ..." resurrect deleted values
ClosedPublic

Authored by epriestley on Mar 16 2017, 6:59 PM.
Tags
None
Referenced Files
F18822588: D17506.id.diff
Thu, Oct 23, 7:36 AM
F18817927: D17506.diff
Tue, Oct 21, 7:32 PM
F18733506: D17506.id.diff
Sep 30 2025, 10:36 PM
F18653141: D17506.id42099.diff
Sep 21 2025, 11:20 AM
F18566113: D17506.id.diff
Sep 9 2025, 2:19 PM
F18500729: D17506.diff
Sep 4 2025, 9:17 PM
F18168632: D17506.id42101.diff
Aug 15 2025, 4:18 PM
F18141277: D17506.id.diff
Aug 14 2025, 7:19 AM
Subscribers
None

Details

Summary

Fixes T12409. Config entries may be marked as "deleted", and bin/config set --database doesn't un-delete them, so the edit doesn't do anything.

The "most correct" fix here is to swap to transactions so we run the same code, but just fix this narrowly for now since it's one line of code.

Test Plan
  • Set maniphest.default-priority to 123.
  • Deleted maniphest.default-priority from the web UI by deleting all the text in the box.
  • Before patch: bin/config set --database maniphest.default-priority 789 had no effect.
  • After patch: bin/config set --database maniphest.default-priority 789 worked.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable