-
Notifications
You must be signed in to change notification settings - Fork 35
✨Allow multiple user sessions (user+tab) to open the same project #8123
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
✨Allow multiple user sessions (user+tab) to open the same project #8123
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8123 +/- ##
==========================================
+ Coverage 88.07% 88.08% +0.01%
==========================================
Files 1891 1889 -2
Lines 72775 72800 +25
Branches 1274 1280 +6
==========================================
+ Hits 64094 64127 +33
+ Misses 8303 8293 -10
- Partials 378 380 +2
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
7c1e2d4
to
134714b
Compare
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.
thx
Careful with the reponse models. I think you got at least one wrong
services/web/server/src/simcore_service_webserver/projects/_controller/_rest_exceptions.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_controller/projects_states_rest.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_projects_service.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_projects_service.py
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/projects/_projects_service.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.
Looks great! 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.
Rock and roll!
services/static-webserver/client/source/class/osparc/study/Utils.js
Outdated
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.
Thanks
services/web/server/src/simcore_service_webserver/projects/_projects_service.py
Show resolved
Hide resolved
1ae57ce
to
f1f8749
Compare
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 633f3c1 |
|
@mergify requeue |
☑️ This pull request is already queued |
What do these changes do?
This is a rather noisy PR as there is some renaming going on. Here are the highlights of the changes:
locked
field inside the Project model toshareState
(or share_state internally)shareState
is also emitted in the projectStateUpdated event (following Node.js variable nomenclature)ProjectLocked
is currently still used internallyWEBSERVER_REALTIME_COLLABORATION
ENV variable to thePOST "/{VTAG}/projects/{{project_id}}:open"
entrypoint (along withRTC_MAX_NUMBER_OF_USERS
ENV)ProjectTooManyUserSessionsError
is now raised when there are too many user sessions, thrown as a 409 http codeWEBSERVER_DEV_FEATURES_ENABLED
must be set to use that feature otherwise the current sharing behavior is kept (with the exception of the group IDs explained above)RTC_MAX_NUMBER_OF_USERS
is not stricly the number of users but the number of user-session or active tabs (as a reminder, each combination of a user/tab is equivalent to a user-session at the moment.Bonuses and also noise:
services/director-v2/tests/unit/with_dbs/comp_scheduler/test_manager.py
Next steps
Related issue/s
How to test
Dev-ops