-
Notifications
You must be signed in to change notification settings - Fork 32
♻️ remove listing user services call from listing project #7881
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
♻️ remove listing user services call from listing project #7881
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
please review also |
sanderegg
left a comment
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.
I understand this will be clearly faster, but how is then that feature handled?
services/web/server/src/simcore_service_webserver/projects/_controller/projects_rest.py
Show resolved
Hide resolved
|
b04091c
into
ITISFoundation:master



What do these changes do?
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.
_execute_without_permission_check--> theproject_to_produceA 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