Skip to content

[stable29] fix(config): Add missing handling for envCache in getKeys() - #48100

Merged
icewind1991 merged 3 commits into
stable29from
backport/46140/stable29
Sep 16, 2024
Merged

[stable29] fix(config): Add missing handling for envCache in getKeys()#48100
icewind1991 merged 3 commits into
stable29from
backport/46140/stable29

Conversation

@backportbot

Copy link
Copy Markdown

Backport of PR #46140

NC_ env variable overrides were not appearing in
the output of `occ config:list system` nor `occ
config:system:get xxx`. This was creating nearly
impossible to diagnose configuration/ behavior
disprepancies.
- Refactored readData() so that we aren't saving
the entire environment in the envCache anymore
(only those prefixed "NC_") and so that we save
NC_ provided config values under their real
key.
- Refactored getValue() to accommodate readData()
refactor
- Fixed getKeys() to properly return
envCache keys too
Environment provided config variables now appear
in `occ config:list system` as expected.
Environment provided config variables now appear
when queried via `occ config:system:get KEY`
envCache is now free of non-NC stuff.
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
@icewind1991
icewind1991 merged commit 0a20c69 into stable29Sep 16, 2024
@icewind1991
icewind1991 deleted the backport/46140/stable29 branch September 16, 2024 16:54
@AltahrimAltahrim mentioned this pull request Oct 1, 2024
1 task
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@icewind1991@joshtrichards