-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Issue #2976] Run analytics migrations like the API does them #2978
Conversation
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.
Looks good.
@@ -18,7 +18,7 @@ | |||
VERBOSE = False | |||
|
|||
|
|||
def initialize_database() -> None: | |||
def db_migrate() -> None: |
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.
nit: please change this to migrate_database
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.
84ec4d7 ✅
analytics/src/analytics/cli.py
Outdated
def initialize_database() -> None: | ||
@etl_app.command(name="db_migrate") | ||
@ecs_background_task("db_migrate") | ||
def db_migrate() -> None: |
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.
nit: please change this to migrate_database
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.
84ec4d7 ✅
Summary
Fixes #2976
Time to review: 5 mins
Changes proposed
init-etldb
cronjob since we are now running that same logic on mergeinfra/analytics/app-config/outputs.tf
activates this)Testing
https://github.com/HHS/simpler-grants-gov/actions/runs/11960219381/job/33346703132#step:5:256