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

Add Mapping Command #403

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

phalestrivir
Copy link
Contributor

This PR adds a new mapping command for idm mappings, resolving issue #375. Additionally, it adds an additional flag for idm exports to optionally extract mappings from sync.json into separate files.

A PR in frodo-lib was created to add and fix certain functions of the MappingOps library that this PR relies on.

One update that was made in this PR was to how files are extracted. Instead of storing file paths in the exports based on the working directory, it now stores file paths based on where the export file is located. This was done so that when performing imports from a different working directory, you may still use the -f flag to correctly read the extracted files. The only place file extraction was done prior was in script exports, but now extraction is also done when exporting sync mappings by extracting mappings from the sync.json file during separate exports. The sync.json file is still kept around in order to keep track of the original sync order of the mappings. As a result of this change, ScriptOps was altered slightly to be consistent, so any changes to that and script tests were due to this small change.

Additionally, I was having trouble updating the mocks for the config import tests, which is why they are currently failing. Whenever I updated the mocks and ran the tests, the tests would give me an error stating that there were missing mock recordings. This still happens on the version of frodo before I made these changes as well, so I wonder if it has something to do with the account I am using for testing rather than the changes I made. Despite the failing tests, I wanted to at least get the PR out so it can be reviewed since I'm not sure I will be able to get them passing with my account.

…on mappings in idm/config exports. Update file extraction. Update tests.
@vscheuber vscheuber merged commit 7e0cf9c into rockcarver:main Jul 11, 2024
8 of 9 checks passed
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.

2 participants