Page MenuHomePhabricator

ui: add a "config_default" method

Authored by marmoute on Wed, Jan 13, 11:05 PM.



This allow code to access the expected value for a config. This is useful in the
context of dynamic default value, and short term it will be useful to write
dynamically "correct" code.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.Wed, Jan 13, 11:05 PM
Alphare accepted this revision.Fri, Jan 15, 5:51 AM
Alphare added a subscriber: Alphare.

Interesting that it doesn't exist already!

baymax updated this revision to Diff 24891.Fri, Jan 15, 6:59 AM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.