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

PB-986 Cleanup obsolete SQL management scripts #490

Merged
merged 4 commits into from
Jan 14, 2025

Conversation

schtibe
Copy link
Contributor

@schtibe schtibe commented Jan 6, 2025

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

@schtibe schtibe requested a review from boecklic January 6, 2025 16:00
@schtibe schtibe requested a review from benschs January 6, 2025 16:00
@schtibe schtibe force-pushed the feat-pb-986-remove-obsolete-sql-scripts branch 2 times, most recently from a44de91 to 80587cf Compare January 6, 2025 16:01
Copy link
Contributor

@boecklic boecklic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay! ✂️

Copy link
Contributor

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).

Copy link
Contributor Author

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
@schtibe schtibe force-pushed the feat-pb-986-remove-obsolete-sql-scripts branch from 0b68b23 to 39e720b Compare January 9, 2025 08:29
@schtibe schtibe requested a review from boecklic January 14, 2025 13:10
@schtibe schtibe merged commit 2375da9 into develop Jan 14, 2025
3 checks passed
@schtibe schtibe deleted the feat-pb-986-remove-obsolete-sql-scripts branch January 14, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants