-
Notifications
You must be signed in to change notification settings - Fork 27
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
✨Personalized resources: remove projects to projects nodes table 🗃️ #4384
✨Personalized resources: remove projects to projects nodes table 🗃️ #4384
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4384 +/- ##
========================================
- Coverage 87.7% 87.2% -0.5%
========================================
Files 567 843 +276
Lines 28104 37186 +9082
Branches 554 461 -93
========================================
+ Hits 24669 32460 +7791
- Misses 3303 4611 +1308
+ Partials 132 115 -17
Flags with carried forward coverage won't be shown. Click here to find out more.
|
packages/postgres-database/src/simcore_postgres_database/models/projects_nodes.py
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Code Climate has analyzed commit 4460cda and detected 0 issues on this pull request. View more on Code Climate. |
What do these changes do?
This PR essentially simplifies the database. The original design was keeping a separate table for the mapping between projects and nodes.
It appears that node_uuid are not unique. A few tests, and also the meta-programming rely on the fact that node_uuid are copied to keep a trace. Therefore the node_uuid cannot be used as a primary key in the DB. Further analysis show that there is currently no need to share a node.
The uniqueness of a node is defined by both its project_uuid and node_uuid. This is the current constraint that is also found in the comp_tasks table.
this partially reverts #4362
Bonus:
postgres-database is fully SqlAchemy 2.0 warning free
Related issue/s
How to test
DevOps Checklist