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

Export differential module new and improved. #583

Merged
merged 16 commits into from
Apr 28, 2023

Conversation

sean-m-sullivan
Copy link
Collaborator

@sean-m-sullivan sean-m-sullivan commented Apr 24, 2023

What does this PR do?

This PR Steals the awx.awx.export module, and parts of the lookup difference module and shoves them together.

It is built to be compatible with either the awx.awx or ansible.controller module.

It only works for the fields that work with the awx cli export, but instead of reducing fields, and comparing direct lists, it does a search and pop on wanted fields and keeps all the fields in place.

It's built to be robust and easy to add to. Though roles may be tricky still.

How should this be tested?

Automated tests included in PR

Is there a relevant Issue open for this?

redhat-cop/aap_configuration_extended#31
In addition when
ansible/awx#13868
Is acted on/improved, we can easily add fields.
Also teams on #468

Is dependent on tooling update to pass sanity tests:
redhat-cop/ansible_collections_tooling#22

Copy link
Contributor

@ivarmu ivarmu left a comment

Choose a reason for hiding this comment

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

LGTM. Initial testings works really well. Waiting on ansible/awx#13868 to let roles to be more easily compared and treated!

Copy link
Collaborator

@djdanielsson djdanielsson left a comment

Choose a reason for hiding this comment

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

it would be nice if it didn't require the code to be in export format but it's a great start! hopefully we can get the export tool to clean up out it works

@sean-m-sullivan sean-m-sullivan enabled auto-merge (squash) April 28, 2023 19:24
@sean-m-sullivan sean-m-sullivan merged commit 5344f34 into redhat-cop:devel Apr 28, 2023
@sean-m-sullivan sean-m-sullivan deleted the export_diff branch April 29, 2023 12:12
przemkalit pushed a commit to przemkalit/aap_configuration that referenced this pull request Nov 22, 2024
* update org export

* update org export

* rebase

* add export diff

* add export differential module

---------

Co-authored-by: David Danielsson <djdanielsson@users.noreply.github.com>
przemkalit pushed a commit to przemkalit/aap_configuration that referenced this pull request Nov 22, 2024
* update org export

* update org export

* rebase

* add export diff

* add export differential module

---------

Co-authored-by: David Danielsson <djdanielsson@users.noreply.github.com>
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.

3 participants