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

Update running of dev environment with production data #865

Open
3 tasks
ikusteu opened this issue Oct 24, 2023 · 0 comments
Open
3 tasks

Update running of dev environment with production data #865

ikusteu opened this issue Oct 24, 2023 · 0 comments
Assignees

Comments

@ikusteu
Copy link
Collaborator

ikusteu commented Oct 24, 2023

In #857 I've made it possible to run dev build of client app with production data for eisbuk or igorice by running rushx start:eisbuk / rushx start:igorice respectively, but I would like to make some updates so that the DX is as frictionless as possible.

  1. The script should be updated to add [email protected] to admins: I see that production has been changed so that [email protected] no longer an admin (which makes sense for production), so when we run the app locally with production data, it would make sense to add [email protected] to organization's admins field (we do it manually otherwise)

  2. The rushx start:<organization> flow should look something like this (using igorice as example):

  • start the emulators
  • run rushx start:igorice
  • the script should check if we already have the backed up data from igorice:
    • if there's no data locally, it should pull data from the production db
    • if local data already exists it should fill the emulators with the data
    • if local data is stale (we want the latest data) we should be able to manually update the local backup (see point 3)
  1. Rush repo commands should be updated so that backup and seeding (to emulators) of production data are two separate scripts (there should also be a different ticket to polish those commands)

Tasks:

  • Update the start:<organization> script to add [email protected] to organization's admins
  • Update the start script to utilise local data (if exists)
  • Break up rush seed-firestore:<organization> into two (backup and seed) scripts
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

No branches or pull requests

1 participant