Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cascader should carry through the source key from the override #448

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

rocketraman
Copy link
Contributor

@rocketraman rocketraman commented Sep 17, 2024

Resolves #447 .

The cascader now persists the source key from the override.

In addition, we copy the meta data as well, if any exists.

@osoykan Can you test this in your local env?

osoykan and others added 3 commits September 17, 2024 15:37
The test fails when sources are cascaded e.g. the cli or environment
overrides a property source rather than when the cli or environment is
used directly.
The sourceKey from the overriding source is carried to the merged
map.
@osoykan
Copy link
Contributor

osoykan commented Sep 19, 2024

@rocketraman Thanks! Will look into it, but if the test is green, then our case is covered.

@osoykan
Copy link
Contributor

osoykan commented Sep 24, 2024

I've tested it locally and it works! @rocketraman

@sksamuel sksamuel merged commit 265d516 into sksamuel:master Sep 24, 2024
1 check passed
@sksamuel
Copy link
Owner

Nice

@osoykan
Copy link
Contributor

osoykan commented Sep 25, 2024

Any plans on releasing 2.8.1?

@sksamuel
Copy link
Owner

2.8.2 is out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cascading does not take into account source keys
3 participants