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

Promotion tool #458

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

mmercer884
Copy link

This feature added by this PR is to get a cloud tenant ready for promotion with as little intrusion as possible through imports and exports by automating the comparison process and effecting the changes.

The tool works based on two directories that will be located near where the Frodo command is run. The first directory is called master and contains the tenant's master configuration. The second is the export dir, which contains the tenant's current export. Once both of those are set up, this tool can be run.

How it works:
It will take the master dir and the export dir, compare them, find the differences in the files, and run imports or deletes depending on the object type. It uses the functionality that is already tested in the different modules so it's mainly a cli interface change. This tool does not actually promote a tenant yet but that will be a later feature to add in.

Secondary added functionality for testing:
since this tool runs mainly based on configuration and not based on the flags added functionality was introduced to allow for changing the name of the mock recorded. the file path stays the same but it allowed for naming the final folder where the mock was stored so that multiple mocks could be stored for the same command.

@mmercer884 mmercer884 marked this pull request as ready for review December 2, 2024 21:32
src/ops/PromoteOps.ts Show resolved Hide resolved
src/ops/PromoteOps.ts Show resolved Hide resolved
src/ops/PromoteOps.ts Show resolved Hide resolved
src/ops/PromoteOps.ts Show resolved Hide resolved
src/ops/ConfigOps.ts Show resolved Hide resolved
src/ops/PromoteOps.ts Outdated Show resolved Hide resolved
src/ops/PromoteOps.ts Outdated Show resolved Hide resolved
src/ops/PromoteOps.ts Outdated Show resolved Hide resolved
src/ops/PromoteOps.ts Outdated Show resolved Hide resolved
src/ops/PromoteOps.ts Show resolved Hide resolved
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