Skip to content

Conversation

giancarloromeo
Copy link
Contributor

@giancarloromeo giancarloromeo commented Jul 22, 2025

What do these changes do?

This PR removes the workbench column from the projects database table, completing the migration from storing node data in the projects table to the dedicated projects_nodes table. This is a major database schema change that required extensive refactoring throughout the codebase.

Removal of the workbench column from the projects table definition and migration of all node data to projects_nodes table
Replacement of direct workbench access with queries to projects_nodes table using a subquery pattern
Updates to all test fixtures and utilities to use the new projects_nodes based approach

image

Related issue/s

How to test

Dev-ops

@giancarloromeo giancarloromeo added this to the Engage milestone Jul 22, 2025
@giancarloromeo giancarloromeo self-assigned this Jul 22, 2025
@giancarloromeo giancarloromeo added the a:webserver webserver's codebase. Assigning the area is particularly useful for bugs label Jul 22, 2025
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

❌ Patch coverage is 59.62264% with 107 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.09%. Comparing base (95dde06) to head (4b70868).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8141      +/-   ##
==========================================
- Coverage   87.78%   84.09%   -3.70%     
==========================================
  Files        1838     1940     +102     
  Lines       71369    75416    +4047     
  Branches     1311     1311              
==========================================
+ Hits        62653    63418     +765     
- Misses       8321    11603    +3282     
  Partials      395      395              
Flag Coverage Δ
integrationtests 73.38% <73.07%> (+9.35%) ⬆️
unittests 82.97% <58.86%> (-3.40%) ⬇️
Components Coverage Δ
pkg_aws_library 93.59% <ø> (ø)
pkg_celery_library 87.37% <ø> (ø)
pkg_dask_task_models_library 79.62% <ø> (ø)
pkg_models_library 93.14% <100.00%> (-0.01%) ⬇️
pkg_notifications_library 85.20% <ø> (ø)
pkg_postgres_database 87.73% <57.89%> (-0.30%) ⬇️
pkg_service_integration 70.19% <ø> (ø)
pkg_service_library 71.13% <ø> (ø)
pkg_settings_library 90.17% <ø> (ø)
pkg_simcore_sdk 84.99% <55.55%> (-0.11%) ⬇️
agent 93.53% <ø> (ø)
api_server 91.91% <ø> (ø)
autoscaling 95.77% <ø> (ø)
catalog 92.34% <100.00%> (-0.01%) ⬇️
clusters_keeper 99.13% <ø> (ø)
dask_sidecar 91.81% <ø> (-0.57%) ⬇️
datcore_adapter 97.94% <ø> (ø)
director 75.81% <ø> (-0.09%) ⬇️
director_v2 91.01% <100.00%> (+<0.01%) ⬆️
dynamic_scheduler 96.27% <ø> (ø)
dynamic_sidecar 90.46% <ø> (ø)
efs_guardian 89.62% <ø> (ø)
invitations 91.44% <ø> (ø)
payments 92.61% <ø> (∅)
resource_usage_tracker 92.02% <ø> (+0.10%) ⬆️
storage 86.54% <78.26%> (∅)
webclient ∅ <ø> (∅)
webserver 75.44% <49.43%> (-12.57%) ⬇️

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 95dde06...4b70868. 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 marked this pull request as draft August 22, 2025 12:28
@pcrespov pcrespov changed the title ♻️ Use projects_nodes table instead of projects.workbench (🗃️) WIP: ♻️ Use projects_nodes table instead of projects.workbench (🗃️) Aug 22, 2025
@pcrespov pcrespov assigned pcrespov and unassigned pcrespov Aug 22, 2025
Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

will review when ready

Copy link

sonarqubecloud bot commented Sep 4, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖-do-not-merge (optional) blocks Mergify from merging the PR a:webserver webserver's codebase. Assigning the area is particularly useful for bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants