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
Preseed all the databases #8468
Preseed all the databases #8468
Conversation
) | ||
confirm_or_exit( | ||
"ARE YOU SURE? If you do this, there is no way to recover the user data on this device." | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We had previously made the explicit choice not to make it that easy to deprovision without warnings, given how destructive it is.
If a one-liner is really needed, we've suggested yes yes|kolibri manage deprovision
in the past. I guess that doesn't work on Windows, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see it's for the purposes of call_command
, though -- I wonder about using a nonstandard name like --accept-data-loss
or something to make it a bit harder to do accidentally.
I'm probably being paranoid. Except if there's anything we've learned from what users do.....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I only added it because of the python invocation, happy to make it something ridiculous!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throw some unicode for a few different languages in there and we should be good, then!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found a couple of problems with the current code.
Also, I haven't found any where where
make preseeddb
is called, so I wonder what's the idea of this when used with the different installers (Debian, pex, Windows, etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks fine, made some tests and it all worked without any problem
Summary
References
Follow up from #8442 and #8351
Reviewer guidance
Does everything run fine? Do new databases get copied in and migrations avoided?
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)