-
Notifications
You must be signed in to change notification settings - Fork 83
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
keep_keys: fix keeping all lists, even wrong ones #379
base: main
Are you sure you want to change the base?
keep_keys: fix keeping all lists, even wrong ones #379
Conversation
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 48s |
64d24a7
to
09432ea
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 7m 36s |
Any progress on this fix? The previous change just blew up our play, as we heavily rely on keep_keys to work as expected. Seeing how breaking code was merged within a few days and the fix lying around over a month is not very promising :/ |
@gaelgatelement @MPStudyly We are currently evaluating this. Initially, we had to make a tough decision to implement this change, as there are cases where a greedy approach to retaining keys is necessary. We are now planning to introduce an additional attribute, which will serve as a toggle to enable a non-greedy approach. This should serve all the usecases that are out there. If @gaelgatelement is open to making these adjustments in this PR, we’d greatly appreciate it; otherwise, it may take us some time to release those changes from our end. |
@gaelgatelement @roverflow any update on this? We're still stuck on v5.1.0 of this collection due to this change in behavior :/ |
Unfortunately I'm now lacking the time to implement the non-greedy version. Surely it's about keeping both |
Sad to hear :(
Exactly, we rely on the old behavior to filter data from a structure "dictated" by a role we are relying on. This was conveniently doable with the previous behavior of keep_keys, but isn't anymore as of now. |
SUMMARY
keep_keys
since #370 was keeping all lists items, even if there's no match in the key of the list.ISSUE TYPE
COMPONENT NAME
keep_keys