-
Notifications
You must be signed in to change notification settings - Fork 32
🐛 fix loss of logs (on project close/websocket disconnect) & add wallet permission check on wallet (on project open) 🚨 #8426
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
🐛 fix loss of logs (on project close/websocket disconnect) & add wallet permission check on wallet (on project open) 🚨 #8426
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #8426 +/- ##
==========================================
- Coverage 87.83% 84.58% -3.25%
==========================================
Files 1964 768 -1196
Lines 76327 35200 -41127
Branches 1342 175 -1167
==========================================
- Hits 67043 29775 -37268
+ Misses 8880 5368 -3512
+ Partials 404 57 -347
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
🧪 CI InsightsHere's what we observed from your CI run for 41e11f9. 🟢 All jobs passed!But CI Insights is watching 👀 |
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.
thanks
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.
Can you provide a test that reproduces this issue?
i.e.
🐛 When another user session, or another user, closes a project, we unsubscribe from the logs queue. As a consequence, the other active sessions stop receiving logs.
🐛 When a user tries to open a project they have access to, we need to ensure the project wallet permission check is performed. Until now, only one user could open a project. Since multiple users can now open a project, the permission check must also be enforced on the backend (it currently exists only on the frontend).
services/web/server/src/simcore_service_webserver/projects/_wallets_service.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/resource_manager/user_sessions.py
Show resolved
Hide resolved
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.
Please fix the missing part with user disconnection
services/web/server/src/simcore_service_webserver/resource_manager/user_sessions.py
Show resolved
Hide resolved
@sanderegg I have updated the solution with checking the actual socket connection (please double check it when you are back) |
|
25f2302
into
ITISFoundation:master



What do these changes do?
Documentation for project logs / socket io learned on a way
2. Subscribe to project logs with specific project topic
Related issue/s
How to test
Dev-ops