-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Extend make up
to automatically initialise the database
#7161
Conversation
It does this by (very quickly) checking if the organization table is present, running `make create_database` if not.
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.
LGTM!
Awesome, thanks @gaecoli. 😄 |
on a similar line of thought, maybe we should also add for example
no one joined my discussion topic #7005 so i ask here 😁 |
Oh, I didn't notice your discussion about it. So, you're pretty much suggesting automatic database upgrades? I'd be in favour of that, and have previously stated (maybe in Discord?) that's something I want to get happening. Did the Mozilla approach of having it run as part of the server/worker/scheduler entrypoint cause any issues that should be looked into? |
yeah, automatic database upgrades 👍
i have been on the mozilla fork for a while and when i switched back here i immediately added the |
Cool. Want to throw together a suitable PR or cherry pick Mozilla's one across? 😄 |
PR coming right up!💻 |
PR is up. not sure what's going on with cypress 😿 |
Looking over #7166 it looks fine to me apart from possibly needing a blank line removed (and that's if I'm being picky). I'm not (yet) understanding why #7167 is needed as well though. That's introducing a sleep, but shouldn't that not be needed for #7166? It kind of seems like #7166 should be enough by itself, though I could just need more coffee... 😄 |
@justinclift are you referring to this line?
if this i did some experiments on my own fork. looks like adding redash/.github/workflows/ci.yml Lines 50 to 51 in 38dc31a
i guess it was added there for a similar reason |
What type of PR is this?
Description
This PR updates
make up
to automatically initialise the database if that hasn't already been done.It does this by (very quickly) checking if the organization table is present, then running
make create_database
if not.This is a re-application of #6855, that was caught up in the large revert a while back.
How is this tested?
This shouldn't affect anything with the running code, and seems to work fine (!) in my local development environment.
Related Tickets & Documents
#6855