Closed vemv closed 7 months ago
@bbatsov PR ready, the master
builds are red due to Clojure 1.12
(investigating this weekend)
The fix was actually easy - done.
These days I try to avoid the whitelist terminology for various reasons, so let's name this something else - e.g. var-meta-keys
or something along those lines. (basically something reflecting better we are selecting only a subset of the var metadata - meaningful keys, useful keys, etc) Let's also add an alias to the old var matching whatever name we pick here.
Good catch! Will refactor
Ready
I meant using something more specific than a generic name like allowlist
, but anyways - that's not a big deal. The conversation around blacklist
vs allowlist
also made me realize how bad such names are in general, as they don't carry much meaning. In our case we want only a certain properties because we don't care about the others and they might have content that we can't parse. That's not really an allowlist, but something more specific IMO, but I guess I didn't manage to convey this clearly.
Ah, I see, sorry about that. Could have been selected-keys
(following select-keys
).
Although there's some value in using a term that is well-understood, even if it doesn't always exactly map to what it means.
It allows consumers to specify var metadata beyond Orchard's fixed whitelist.
Cheers - V