-
Notifications
You must be signed in to change notification settings - Fork 32
✨ [Frontend] RTC: Node Lock State #8243
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
Merged
odeimaiz
merged 53 commits into
ITISFoundation:master
from
odeimaiz:feature/node-in-use
Aug 22, 2025
Merged
Changes from 47 commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
0355429
minor
odeimaiz 17a50b1
refactor
odeimaiz 703d65f
NodeLockState
odeimaiz 35422bb
Merge branch 'master' into feature/node-in-use
odeimaiz 19e3cb3
Merge branch 'feature/node-in-use' of github.com:odeimaiz/osparc-simc…
odeimaiz 9bf76df
stateReceived
odeimaiz 28edb40
minor
odeimaiz a42bfd1
minor
odeimaiz 3262514
user lock_state
odeimaiz 8af549f
minor
odeimaiz c8cb648
undo
odeimaiz 2b20a83
back to getLockState
odeimaiz 822db1c
minor
odeimaiz 6bb8797
fix
odeimaiz b0398e9
better
odeimaiz 91be8a6
minor
odeimaiz 22d3c76
getLockState
odeimaiz 2d84645
lock sometimes
odeimaiz 960124f
refactor
odeimaiz d76ff50
"loading-title"
odeimaiz dc5d66c
"messages-container"
odeimaiz dcb14f5
refactored
odeimaiz 20864e2
Merge branch 'master' into feature/node-in-use
odeimaiz 9588dd1
Merge branch 'feature/node-in-use' of github.com:odeimaiz/osparc-simc…
odeimaiz 6a8d8fe
refactor
odeimaiz 1009d66
fix
odeimaiz a3057de
avatar-group in NodeUI
odeimaiz 9334c85
undo
odeimaiz 68b26d3
Avatar on Node
odeimaiz 3145c8d
Locked page
odeimaiz 254bd56
rename
odeimaiz ad317dc
NodeLockedPage
odeimaiz 9d227a4
rename
odeimaiz 7e4059d
handleIframeStateChange
odeimaiz 5ea6dba
more refactoring
odeimaiz e610670
getLockedPage
odeimaiz 90a9eb6
show locked page
odeimaiz 316b068
isLockedBySomeoneElse
odeimaiz deabd7e
minor
odeimaiz a53bbe3
fix
odeimaiz d21852f
hideMyself property
odeimaiz e949310
evalShowToolbar
odeimaiz 8992190
fix
odeimaiz fd59f60
remove logs
odeimaiz 5616461
comment
odeimaiz 28b4786
__addActionsLayout
odeimaiz 007015a
Merge branch 'master' into feature/node-in-use
odeimaiz 83e5e8c
Update services/static-webserver/client/source/class/osparc/data/mode…
odeimaiz 5d085e0
Update services/static-webserver/client/source/class/osparc/data/mode…
odeimaiz 1ed0152
breaks missing
odeimaiz 3cf3a29
Merge branch 'feature/node-in-use' of github.com:odeimaiz/osparc-simc…
odeimaiz cb82d38
minor
odeimaiz 2d7be81
last fix
odeimaiz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
services/static-webserver/client/source/class/osparc/data/model/NodeLockState.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| /* ************************************************************************ | ||
| osparc - the simcore frontend | ||
| https://osparc.io | ||
| Copyright: | ||
| 2025 IT'IS Foundation, https://itis.swiss | ||
| License: | ||
| MIT: https://opensource.org/licenses/MIT | ||
| Authors: | ||
| * Odei Maiz (odeimaiz) | ||
| ************************************************************************ */ | ||
|
|
||
| qx.Class.define("osparc.data.model.NodeLockState", { | ||
| extend: qx.core.Object, | ||
|
|
||
| construct: function() { | ||
| this.base(arguments); | ||
|
|
||
| this.initCurrentUserGroupIds(); | ||
| this.initLocked(); | ||
| this.initStatus(); | ||
| }, | ||
|
|
||
| properties: { | ||
| currentUserGroupIds: { | ||
| check: "Array", | ||
| init: [], | ||
| nullable: false, | ||
| event: "changeCurrentUserGroupIds", | ||
| }, | ||
|
|
||
| locked: { | ||
| check: "Boolean", | ||
| init: false, | ||
| nullable: false, | ||
| event: "changeLocked", | ||
| }, | ||
|
|
||
| status: { | ||
| // check: ["NOT_STARTED", "STARTED", "OPENED"], | ||
| check: "String", | ||
| init: false, | ||
| nullable: false, | ||
| event: "changeStatus", | ||
| } | ||
| }, | ||
|
|
||
| members: { | ||
| stateReceived: function(state) { | ||
| if (state) { | ||
| this.set({ | ||
| currentUserGroupIds: "current_user_groupids" in state ? state["current_user_groupids"] : [], | ||
| locked: "locked" in state ? state["locked"] : false, | ||
| status: "status" in state ? state["status"] : "NOT_STARTED", | ||
| }); | ||
| } | ||
| }, | ||
|
|
||
| isLockedBySomeoneElse: function() { | ||
| if (this.isLocked()) { | ||
| const currentUserGroupIds = this.getCurrentUserGroupIds(); | ||
| const myGroupId = osparc.auth.Data.getInstance().getGroupId(); | ||
| return !currentUserGroupIds.includes(myGroupId); | ||
| } | ||
| return false; | ||
| } | ||
| } | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.