Skip to content

Preparations of some tables to migrate #7477

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

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Apr 3, 2025

What do these changes do?

Preparations for the database migration to another system.

  • destination database has already data

  • some of the data in the source and destination is the same. e.g. the same user, defined by its email is in both, then the user_id from the source has to be mapped to the user_id of the destination and all the references need to be kept

  • final user should not do anything

  • is there any other resource (like users) that can be repeated? I guess products, ... check which are missing

  • basic ideas (by @sanderegg )

    • audit all the tables to check which ones are problematic
    • from a first overview: UserID and GroupID and WalletID cannot be changed to UUID because they are already in the interface (publicAPI and/or webAPI and/or legacy services)
    • then some integer IDs might just be transformed
    • WalletID is a "non-problem" as there are no wallets in osparc.io
  • thoughts

    • so i believe we need to identify what concepts could be repeated in the destination database and how to define "equal" in that sense e.g. two users are equal when the have the same email
    • well the idea here would be ideally to upsert osparc.io DB into sim4life.io

Related issue/s

How to test

Dev-ops

None

@pcrespov pcrespov changed the title doc something Preparations of some tables to migrate Apr 3, 2025
@pcrespov pcrespov self-assigned this Apr 3, 2025
@pcrespov pcrespov added a:database associated to postgres service and postgres-database package t:maintenance Some planned maintenance work labels Apr 3, 2025
@pcrespov pcrespov added this to the The Awakening milestone Apr 3, 2025
Copy link

codecov bot commented Apr 3, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 89.44%. Comparing base (4cf8ef1) to head (cad45da).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7477      +/-   ##
==========================================
+ Coverage   87.75%   89.44%   +1.69%     
==========================================
  Files        1784     1515     -269     
  Lines       68856    59753    -9103     
  Branches     1133      531     -602     
==========================================
- Hits        60422    53447    -6975     
+ Misses       8122     6163    -1959     
+ Partials      312      143     -169     
Flag Coverage Δ
integrationtests 64.97% <ø> (-0.07%) ⬇️
unittests 88.56% <60.00%> (+1.61%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library 92.79% <ø> (ø)
pkg_notifications_library 85.26% <ø> (ø)
pkg_postgres_database 88.27% <60.00%> (-0.14%) ⬇️
pkg_service_integration ∅ <ø> (∅)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 85.66% <ø> (-0.06%) ⬇️
agent 96.46% <ø> (ø)
api_server 92.74% <ø> (ø)
autoscaling 96.08% <ø> (ø)
catalog 92.64% <ø> (ø)
clusters_keeper 99.25% <ø> (ø)
dask_sidecar 91.30% <ø> (ø)
datcore_adapter 98.12% <ø> (ø)
director 76.89% <ø> (+0.09%) ⬆️
director_v2 91.13% <ø> (-0.08%) ⬇️
dynamic_scheduler 97.40% <ø> (ø)
dynamic_sidecar 90.15% <ø> (ø)
efs_guardian 89.79% <ø> (ø)
invitations 93.28% <ø> (ø)
payments 92.66% <ø> (ø)
resource_usage_tracker 89.12% <ø> (-0.11%) ⬇️
storage 87.56% <ø> (+0.07%) ⬆️
webclient ∅ <ø> (∅)
webserver 86.03% <ø> (-0.01%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4cf8ef1...cad45da. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pcrespov pcrespov modified the milestones: The Awakening, Pauwel Kwak Apr 8, 2025
@pcrespov pcrespov force-pushed the is1867/migration-strategy branch from cd1baf9 to cad45da Compare May 1, 2025 20:07
Copy link

sonarqubecloud bot commented May 1, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:database associated to postgres service and postgres-database package t:maintenance Some planned maintenance work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant