Skip to content
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

Improve roles #740

Closed
KaterynaBasik opened this issue May 27, 2024 · 24 comments · Fixed by #877
Closed

Improve roles #740

KaterynaBasik opened this issue May 27, 2024 · 24 comments · Fixed by #877
Assignees
Labels
feat New feature or request front-end Frontend code, functionality, or client-side interactions question Further information is requested

Comments

@KaterynaBasik
Copy link
Contributor

KaterynaBasik commented May 27, 2024

Currently there are following roles in Flyt

  • Owner (Default role for the one who creates the process initially, can share write access to others)
  • Admin (can share write access to others)
  • Contributor

User input 1 (by Fredrik Liknes, feedback ID 235 ):
As a contributor I would like to be able to share write access to a VSM without requesting the owner to add new contributors.

@nesadrian nesadrian added the needs requirements Missing or partly missing needed requirements label Jun 27, 2024
@nesadrian
Copy link
Contributor

We have previously discussed if we should remove owner altogether and only have admin and contributor roles since owner and admin has the same privileges anyways. The idea of everyone having the same role has also been brought up before. This would solve #247 and since Flyt is limited to Equinor users anyways, removing these accesses might not be a big concern.

@askbulle
Copy link

askbulle commented Dec 4, 2024

All three roles should be combined into role "Collaborator" and that role should be able to both write and share write access.

@AnjaliPandit20 AnjaliPandit20 added question Further information is requested and removed needs requirements Missing or partly missing needed requirements labels Dec 4, 2024
@askbulle
Copy link

askbulle commented Dec 4, 2024

If Quick fix priority should be high. If not, re-assess prio

@srvEq
Copy link
Contributor

srvEq commented Jan 24, 2025

Hi @askbulle
As discussed three roles(Owner, Admin, Contributor) will combine into "Collaborator" role will have the both write and share write access.

Does "Collaborator" role also have the privilege to delete the Process?

@askbulle
Copy link

Yes, Collaborator should have all access that Owner and Admin has.

Can we have a look at the message ? It seems that when some text is bolded more people actually see it.

Image

@srvEq srvEq added feat New feature or request front-end Frontend code, functionality, or client-side interactions labels Jan 24, 2025
@askbulle
Copy link

Suggested text:

Are you sure you want to delete this process? By doing so you will delete ALL VERSIONS as they will not be recoverable.

@srvEq srvEq linked a pull request Jan 28, 2025 that will close this issue
4 tasks
@srvEq
Copy link
Contributor

srvEq commented Jan 29, 2025

Changes deployed in Test env.
@AnjaliPandit20 @SIJAIEQUINOR @rvaidya3007

@srvEq
Copy link
Contributor

srvEq commented Jan 29, 2025

Ready to test the below changes in Test env.

  • All three roles [owner, admin, contributor] combined into one role that is "Contributor" where Contributor has write, share the write access and delete the process.
  • Updated confirmation message of delete process with "Are you sure you want to delete this process? By doing so you will delete ALL VERSIONS as they will not be recoverable."
  • Removed Owner section from the dropdown of the process, attached reference below for the same
Image

@luan-droid @SIVN1 @ThomasBracho1987
CC: @sarsi0801

@SIVN1
Copy link

SIVN1 commented Jan 30, 2025

@srvEq @sarsi0801 Verified in Test environment. We have found below three issues.

Issue 1. "Delete process" is not enabled for old processes. So, we are not able to delete the old processes

Image

Issue 2. New Functionality scenario : After created a process, I didn't add any one as a contributor for that process. But I removed my name from contributor list, then who will delete that process?

New Functionality screenshot:

Image

In the old functionality scenario- If I created any process, I added as an Owner, So I can't remove myself from the list. Here I can delete my process at any time

Old Functionality screenshot:

Image

Issue 3: This Contributor changes are applicable only for new processes. Regarding this I had a discussion with Sri, She has mentioned that they will clean up the data base.
Our opinion on deleting the data in DB:

If we delete the data from DB, User might loss all the process they have created before. So, is there any possibility to create duplicate for old processes and make this contributor changes applicable for old processes as well ?

CC: @AnjaliPandit20 @rvaidya3007 @ThomasBracho1987 @luan-droid @SIJAIEQUINOR

@srvEq
Copy link
Contributor

srvEq commented Jan 31, 2025

Issue1, Issue3 both happens because of existing data where it has roles as admin, owner, contributor. It will work fine once existing data is handled.

My suggestion is to do the data cleanse which refers to change all the existing roles in DB to contributor, so there won't be any data loss.

The above issues has to be addressed from Backend.
@sarsi0801 Can you please review the above issue.

Issue 2
Thanks for the finding, When only one user has access to a process then we can disable/restrict the user from providing the option to remove.Does this sound good ?

@SIVN1 @luan-droid @ThomasBracho1987 @jsundarn

@sarsi0801
Copy link

@srvEq @SIVN1 I will change the existing roles in DB to contributor for few old process then i will test above issue, if it works fien then i will update roles to contributor for all old process. This will resolve Issue 1 and 3.

@SIVN1
Copy link

SIVN1 commented Jan 31, 2025

@srvEq We can go with the solution which you have provided for Issue 2. Thank you

CC: @AnjaliPandit20 @luan-droid @ThomasBracho1987 @jsundarn @rvaidya3007

@sarsi0801
Copy link

@srvEq
I have updated the role for all old process to contributor.
You can test the Issue1 and Issue3.

@luan-droid
Copy link

luan-droid commented Jan 31, 2025

Issue 1: I can now delete my old processes, it works fine.

Image

Issue 3: I can see now that the role is changed from "Owner" to "Contributor". It works fine.

Image

@srvEq @sarsi0801 @SIVN1 @ThomasBracho1987

@srvEq
Copy link
Contributor

srvEq commented Feb 3, 2025

Issue 2 is fixed and deployed in test env.
@SIVN1 @luan-droid @ThomasBracho1987

@SIVN1
Copy link

SIVN1 commented Feb 4, 2025

@srvEq @sarsi0801 Verified issue 2 and adding same name again issue in Test. It works fine

Image Image

CC: @AnjaliPandit20 @ThomasBracho1987 @luan-droid @SIJAIEQUINOR @rvaidya3007

@srvEq srvEq closed this as completed in #877 Feb 4, 2025
@srvEq
Copy link
Contributor

srvEq commented Feb 5, 2025

Changes deployed in QA. @sarsi0801 is looking into DB changes.

@sarsi0801
Copy link

DB changes are done in QA environment.

@srvEq
Copy link
Contributor

srvEq commented Feb 6, 2025

Ready to test the changes in QA environment.
@SIVN1 @luan-droid @ThomasBracho1987

@luan-droid
Copy link

It works fine, but the pop up window for renaming looks weird

Image

@luan-droid luan-droid reopened this Feb 6, 2025
@srvEq
Copy link
Contributor

srvEq commented Feb 6, 2025

The above issue will be tracked in #884. Hence closing this.
@luan-droid @SIVN1 @ThomasBracho1987
CC: @AnjaliPandit20 @SIJAIEQUINOR @rvaidya3007

@srvEq srvEq closed this as completed Feb 6, 2025
@srvEq
Copy link
Contributor

srvEq commented Feb 14, 2025

@sarsi0801 FE changes deployed in Test and QA

@srvEq
Copy link
Contributor

srvEq commented Feb 19, 2025

Changes are ready to test in both Test and QA env.
@SIVN1 @luan-droid @ThomasBracho1987

@luan-droid
Copy link

Tested in QA and Test, works fine.

  • All three roles should be combined into role "Collaborator" and that role should be able to both write and share write access

Image

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request front-end Frontend code, functionality, or client-side interactions question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants