-
Notifications
You must be signed in to change notification settings - Fork 2
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
PB-986 Cleanup obsolete SQL management scripts #490
Conversation
a44de91
to
80587cf
Compare
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.
Yay! ✂️
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.
Should we 'resque' this one somehow? E.g. transfer it into a mgmt command (executing raw sql), as existing commands to create dummy data are really slow for larger amount of objects (this sql script was created at the time in context of perf tests).
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.
Yes you're right.. the script is outdated though, it hasn't been updated since 2021. I'm gonna put it back with a big comment, so the next person who wants to do such a thing as loading random data will have to update it, but at least they have a good starting point. WDYT?
The SQL scripts aren't useful anymore. Some don't even work, as the DB structure has changed. The Database is now managed via Terraform, thus there's no need to have DB management scripts around.
The secrets file isn't used anymore. It was useful in conjunction with the SQL scripts that used to manage the DB
The script is outdated, as the models have new fields. We still want to keep the file as a starting point for future endeavors of adding random data to STAC
0b68b23
to
39e720b
Compare
The SQL scripts aren't useful anymore. Some don't even work, as the DB structure has changed.
The Database is now managed via Terraform, thus there's no need to have DB management scripts around.
Also removed the secrets.yml file, as this was necessary for the SQL scripts