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 'soft' setting to importOnBootstrap to prevent overwriting of existing changes in DB #74

Closed
BabyDino opened this issue Oct 17, 2022 · 3 comments · Fixed by #78
Closed
Assignees
Labels
enhancement New feature or request

Comments

@BabyDino
Copy link

Originally posted by @BabyDino in #68 (comment)

When we roll out an API we would love to use the importOnBootstrap setting, but we want to prevent existing changed data of being reimported.

One example:

  • We have a table with e-mail templates. In our dev, we export staging/production ready email templates.
  • We'd like to use importOnBootstrap on staging/production, which would be ideal for a first run.
  • Now we change an imported template in staging or production
  • On the next run, importOnBootstrap overrides the customized template with the dev template.

So basically, if the state is Different for a template, we would like to have that entry skipped by importOnBootstrap. We only like to import the state Only in sync dir with importOnBootstrap.

@boazpoolman
Copy link
Member

Thanks for creating the seperate issue 🙂

@boazpoolman boazpoolman added the enhancement New feature or request label Oct 17, 2022
@boazpoolman boazpoolman linked a pull request Nov 28, 2022 that will close this issue
@boazpoolman
Copy link
Member

Hi @BabyDino,

I've put up a PR implementing my take on solving the problem you posted.
I've written some instructions in the PR description on how to test the new feature.
Could you test this out in your env and see if it works correctly. :)

@BabyDino
Copy link
Author

BabyDino commented Dec 1, 2022

Thank you for the PR, we will take a look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants