Skip to content

[CHORE] CLI Command to replicate now_applications in local, dev or test#3834

Open
matbusby-fw wants to merge 8 commits intodevelopfrom
chore-cli-command
Open

[CHORE] CLI Command to replicate now_applications in local, dev or test#3834
matbusby-fw wants to merge 8 commits intodevelopfrom
chore-cli-command

Conversation

@matbusby-fw
Copy link
Collaborator

Objective

This introduces a command that can be run locally to copy the pertinent data from a production NoW onto either the local, dev or test environment.

It uses the Openshift CLI to connect to the production environment and run a read query to get the necessary data and then allows the user to select a target environment against which to apply that data patch.

  • The user will be prompted to provide an Openshift login token (unless they are already logged in)
  • Then they are prompted to enter the NoW number that they wish to copy from prod
  • Then they are prompted to choose a target environment to place the data (defaults to local)
  • Then they are prompted to enter a mine guid from the target environment to which the now_application will be added
  • It will then insert the data into the chosen environment and mine.
  • This copies most relevant data from the original now_application, but leaves out personal details and protected data. This includes copying the now_application_guid which can be used to test data fix migrations on now_application records across environments
  • This can be run multiple times, and the script will remove the previous record and re-insert
image image

Why are you making this change? Provide a short explanation and/or screenshots

},
"scripts": {
"postinstall": "husky install"
"postinstall": "husky install",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was trying out a different IDE and thought I'd throw in these for convenience

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed for 'bcgov-sonarcloud_mds_core-api'

Failed conditions
4.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@matbusby-fw matbusby-fw marked this pull request as ready for review February 20, 2026 20:36
@matbusby-fw matbusby-fw added the 👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback. label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👍 Ready for review Pull request has been double checked by the author and is ready for comments and feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant