-
Notifications
You must be signed in to change notification settings - Fork 2
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 write access for public sessions #245
Fix write access for public sessions #245
Conversation
Independent of the granted permissions users were only allowed to clone a persistent session. Now, the write permission is checked and the select button is displayed. For read permission only the select button is not shown.
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 good and worked for me 👍
one minor thing, and I don't think that's part of the ticket, is that when a buddy opens a session with write access and adds some actions to the provenance graph the user needs to click "Edit Details" and then save without editing the details to override the session. Maybe we should add a dedicated "Override Session" button which just stores the session in the DB without a dialog? also the "Save Session" button is a bit misleading, because it is disabled, because that's what I wanted to achieve namely saving the new session
should we create a new ticket for this?
@lehnerchristian Thanks for your review. Do you mean the following behavior? I opened a public session with write access and the Save Sesssion menu item is disabled. Looking at the code the behavior seems to be intended: tdp_core/src/internal/EditProvenanceGraphMenu.ts Lines 29 to 43 in f1ba111
Save Session migrates a temporary session to a persistent session. New states (i.e., nodes and actions) of the persistent session are synchronized automatically. Hence, there is no need for the save action anymore. On the one hand, we could probably hide the save session button, but on the other hand it might confuse the user. In both cases it might be a new issue and PR. 😉 |
ok, didn't know that when the provenance graph changes it is automatically updated in the DB. thanks for the clarification 🙂 |
Closes #176
Summary
Independent of the granted permissions users were only allowed to clone a persistent session. Now, the write permission is checked and the select button is displayed. For read permission only the select button is not shown.
Test