Skip to content

Conversation

@matusdrobuliak66
Copy link
Collaborator

@matusdrobuliak66 matusdrobuliak66 commented Jun 12, 2025

What do these changes do?

  • ♻️ remove listing user services call from listing project

The frontend is already handling service access rights. I think listing projects should be based purely on access rights to the project resources. This will significantly improve the initial listing, because retrieving all user services takes some time (although it's cached for one minute), but it's not necessary when listing projects.

  • ♻️ part of removing the legacy _execute_without_permission_check --> the project_to_produce A None check is also unnecessary, as this is already handled in the SQL query—we don’t list projects that don't belong to a product.

Related issue/s

How to test

Dev-ops

@matusdrobuliak66 matusdrobuliak66 self-assigned this Jun 12, 2025
@matusdrobuliak66 matusdrobuliak66 marked this pull request as ready for review June 12, 2025 08:44
@codecov
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.97%. Comparing base (c7b7878) to head (59bc6b7).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7881      +/-   ##
==========================================
- Coverage   85.41%   84.97%   -0.44%     
==========================================
  Files        1375      688     -687     
  Lines       54796    32594   -22202     
  Branches      652      176     -476     
==========================================
- Hits        46804    27697   -19107     
+ Misses       7798     4839    -2959     
+ Partials      194       58     -136     
Flag Coverage Δ
integrationtests 64.29% <100.00%> (+13.25%) ⬆️
unittests 86.79% <100.00%> (+2.44%) ⬆️
Components Coverage Δ
api ∅ <ø> (∅)
pkg_aws_library ∅ <ø> (∅)
pkg_dask_task_models_library ∅ <ø> (∅)
pkg_models_library ∅ <ø> (∅)
pkg_notifications_library ∅ <ø> (∅)
pkg_postgres_database ∅ <ø> (∅)
pkg_service_integration ∅ <ø> (∅)
pkg_service_library ∅ <ø> (∅)
pkg_settings_library ∅ <ø> (∅)
pkg_simcore_sdk 77.10% <ø> (∅)
agent ∅ <ø> (∅)
api_server ∅ <ø> (∅)
autoscaling ∅ <ø> (∅)
catalog ∅ <ø> (∅)
clusters_keeper ∅ <ø> (∅)
dask_sidecar ∅ <ø> (∅)
datcore_adapter ∅ <ø> (∅)
director ∅ <ø> (∅)
director_v2 77.55% <ø> (-13.49%) ⬇️
dynamic_scheduler ∅ <ø> (∅)
dynamic_sidecar 88.33% <ø> (-1.77%) ⬇️
efs_guardian ∅ <ø> (∅)
invitations ∅ <ø> (∅)
payments ∅ <ø> (∅)
resource_usage_tracker ∅ <ø> (∅)
storage ∅ <ø> (∅)
webclient ∅ <ø> (∅)
webserver 87.65% <100.00%> (+5.79%) ⬆️

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 c7b7878...59bc6b7. 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.

@odeimaiz
Copy link
Member

please review also /services/web/server/src/simcore_service_webserver/projects/_controller/projects_rest.py:get_project

@pcrespov pcrespov added this to the Engage milestone Jun 12, 2025
@pcrespov pcrespov added the a:webserver webserver's codebase. Assigning the area is particularly useful for bugs label Jun 12, 2025
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

I understand this will be clearly faster, but how is then that feature handled?

@matusdrobuliak66 matusdrobuliak66 enabled auto-merge (squash) June 12, 2025 12:51
@sonarqubecloud
Copy link

@matusdrobuliak66 matusdrobuliak66 merged commit b04091c into ITISFoundation:master Jun 12, 2025
93 of 95 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Project listing should not need to list all user services

5 participants