-
Notifications
You must be signed in to change notification settings - Fork 30
♻️ preparation for osparc migration (merging deployments) (🗃️) #7700
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
base: master
Are you sure you want to change the base?
♻️ preparation for osparc migration (merging deployments) (🗃️) #7700
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7700 +/- ##
==========================================
+ Coverage 87.51% 88.00% +0.49%
==========================================
Files 1816 1545 -271
Lines 70506 61165 -9341
Branches 1144 538 -606
==========================================
- Hits 61701 53830 -7871
+ Misses 8493 7192 -1301
+ Partials 312 143 -169
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
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.
did you try with the DBs already?
thanks!
@@ -56,4 +68,5 @@ | |||
doc="SHA256 checksum of the file content", | |||
index=True, | |||
), | |||
### |
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.
maybe not needed
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.
the ###
comment or the change of the model? :D
ERROR = "ERROR" | ||
|
||
|
||
zzz_resource_tracker_service_runs__osparc_io_archive_202508 = sa.Table( |
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.
Q: I missed the point of this table, why are we adding it?
I dont fully get what happens in this PR (what is |
|
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.
thx. Please double check mycomments. Specially theone of user_id
), | ||
nullable=False, | ||
doc="The user id with which the run entry is associated", | ||
), | ||
sa.Column("user_id", sa.String(), index=True), |
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.
why we have two columns with user_id here?
@@ -41,13 +43,25 @@ class InitPromptAckFlowState(str, enum.Enum): | |||
sa.Column( | |||
"user_id", | |||
sa.BigInteger, | |||
sa.ForeignKey( |
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.
Q: so that means that we stop using the "decoupled columns" for the payments-related tables, right?
@@ -0,0 +1,228 @@ | |||
"""resource_tracker_service_runs table""" |
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.
Can you explain what this table is and why it was created here?
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.
can perhaps also delete user_to_projects
table?
Double check whether there are other tables that are not used....
TIP: Just check for references to the table variable with Vscode
What do these changes do?
zzz_resource_tracker_service_runs__osparc_io_archive_202508
where we will archive osparc service runs data.zzz
prefix is so it is in the end of all tables.PLAN for index increment:
NOTE!
resource_tracker_service_runs
user ID needs to be manually incremented (foreign key can not be introduced, because all anonymous users are always deleted)For migration:
For archiving the runs table:
Related issue/s
How to test
Dev-ops