Skip to content

Feature filter remove_keys #8443

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

Merged

Conversation

vbotka
Copy link
Contributor

@vbotka vbotka commented May 31, 2024

SUMMARY

ansible.utils.remove_keys does not work properly. Fixing is not efficient.
Feature request #8442

ISSUE TYPE
  • New Module/Plugin Pull Request
COMPONENT NAME

community.general.remove_keys

ADDITIONAL INFORMATION

See: community.general.keep_keys #8438 #8456

@vbotka vbotka changed the title Add filter keep_keys Add filter remove_keys May 31, 2024
@ansibullbot
Copy link
Collaborator

@vbotka this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@ansibullbot ansibullbot added merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels May 31, 2024
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-9 Automatically create a backport for the stable-9 branch labels May 31, 2024
@vbotka vbotka force-pushed the feature-filter-remove_keys branch from 6d5e4c1 to 304e355 Compare May 31, 2024 09:13
@ansibullbot ansibullbot added integration tests/integration plugins plugin (any type) tests tests and removed merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html labels May 31, 2024
This was referenced Jun 1, 2024
@vbotka vbotka changed the title Add filter remove_keys Feature filter remove_keys Jun 1, 2024
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar comments as in #8439, and the extra one below :)

@ansibullbot
Copy link
Collaborator

The test botmeta failed with 1 error:

.github/BOTMETA.yml:0:0: No (active or inactive) maintainer mentioned for plugins/plugin_utils/keys_filter.py

click here for bot help

@ansibullbot ansibullbot added ci_verified Push fixes to PR branch to re-run CI needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Jun 2, 2024
@vbotka vbotka mentioned this pull request Jun 3, 2024
1 task
@felixfontein felixfontein linked an issue Jun 3, 2024 that may be closed by this pull request
1 task
@ansibullbot ansibullbot removed the ci_verified Push fixes to PR branch to re-run CI label Jun 3, 2024
@ansibullbot

This comment was marked as outdated.

@ansibullbot ansibullbot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Jun 3, 2024
@vbotka vbotka force-pushed the feature-filter-remove_keys branch from 1fff6c1 to a094263 Compare June 4, 2024 10:30
@vbotka
Copy link
Contributor Author

vbotka commented Jun 4, 2024

IMO, this PR is ready too. Would it be possible to review it? The below diff shows the changes are trivial

shell> diff keep_keys.py remove_keys.py

Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found two docs changes, otherwise it looks good!

vbotka and others added 2 commits June 6, 2024 09:28
@vbotka
Copy link
Contributor Author

vbotka commented Jun 6, 2024

Done. Thank you!

@felixfontein felixfontein merged commit 06f13e7 into ansible-collections:main Jun 6, 2024
132 checks passed
Copy link

patchback bot commented Jun 6, 2024

Backport to stable-9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-9/06f13e79b1bfac4cb33cce300856618582f238ef/pr-8443

Backported as #8473

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jun 6, 2024
patchback bot pushed a commit that referenced this pull request Jun 6, 2024
* Add filter remove_keys.

* Add filter remove_keys integration test, fragment, and maintainer.

* Update with plugins/plugin_utils/keys_filter.py

* Update according PR #8456

* Update maintainers.

* Fix typo in return doc.

* Remove local keys_filter.py. Then rebase.

* Add local keys_filter.py

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 06f13e7)
@felixfontein
Copy link
Collaborator

@vbotka thanks for your contribution!

@vbotka
Copy link
Contributor Author

vbotka commented Jun 7, 2024

Thank you!

felixfontein pushed a commit that referenced this pull request Jun 7, 2024
)

Feature filter remove_keys (#8443)

* Add filter remove_keys.

* Add filter remove_keys integration test, fragment, and maintainer.

* Update with plugins/plugin_utils/keys_filter.py

* Update according PR #8456

* Update maintainers.

* Fix typo in return doc.

* Remove local keys_filter.py. Then rebase.

* Add local keys_filter.py

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit 06f13e7)

Co-authored-by: Vladimir Botka <[email protected]>
@vbotka vbotka deleted the feature-filter-remove_keys branch June 12, 2024 19:13
Massl123 pushed a commit to Massl123/community.general that referenced this pull request Feb 7, 2025
* Add filter remove_keys.

* Add filter remove_keys integration test, fragment, and maintainer.

* Update with plugins/plugin_utils/keys_filter.py

* Update according PR ansible-collections#8456

* Update maintainers.

* Fix typo in return doc.

* Remove local keys_filter.py. Then rebase.

* Add local keys_filter.py

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
austinlucaslake pushed a commit to austinlucaslake/community.general that referenced this pull request Mar 14, 2025
* Add filter remove_keys.

* Add filter remove_keys integration test, fragment, and maintainer.

* Update with plugins/plugin_utils/keys_filter.py

* Update according PR ansible-collections#8456

* Update maintainers.

* Fix typo in return doc.

* Remove local keys_filter.py. Then rebase.

* Add local keys_filter.py

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

* Update plugins/filter/remove_keys.py

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-9 Automatically create a backport for the stable-9 branch has_issue integration tests/integration plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add filter remove_keys
3 participants