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

Permissions: Removing a role assigned at Root, such as curator, is not immediately reflected in browse results due to slow indexing. #2697

Closed
kcondon opened this issue Oct 27, 2015 · 7 comments
Assignees

Comments

@kcondon
Copy link
Contributor

kcondon commented Oct 27, 2015

Sonia attempted to remove a curator role assignment from root, it did not remove it and service became unresponsive shortly afterwards. Not sure it was related to service issue. There is another ticket about permission performance but this is a very specific use case that should be considered for changing how the transaction is managed, eg. remove role first in one transaction, do reindex in another transaction.

@kcondon kcondon added UX & UI: Design This issue needs input on the design of the UI and from the product owner Status: Dev Type: Bug a defect labels Oct 27, 2015
@pdurbin
Copy link
Member

pdurbin commented Oct 27, 2015

Right, at #2036 (comment) we re-confirmed that it only takes a few milliseconds to remove the role assignment from the database. The expensive part is the reindexing.

@mercecrosas mercecrosas modified the milestone: In Review Nov 30, 2015
@mheppler mheppler added Feature: Permissions and removed UX & UI: Design This issue needs input on the design of the UI and from the product owner labels Jan 27, 2016
@scolapasta scolapasta modified the milestone: Not Assigned to a Release Jan 28, 2016
@kcondon kcondon changed the title Permissions: Not able to remove curator assigned at Root in IQSS instance. Permissions: Removing a role assigned at Root, such as curator, is not immediately reflected in browse results due to slow indexing. Apr 13, 2016
@kcondon kcondon self-assigned this Apr 13, 2016
@kcondon
Copy link
Contributor Author

kcondon commented Apr 13, 2016

Retest with production db

@pdurbin
Copy link
Member

pdurbin commented Apr 14, 2016

My earlier comment at #2697 (comment) is no longer accurate in the sense that the user removing the role no longer experiences the expense of reindexing (watching the spinner spin) since it was made asynchronous in #2036.

@kcondon
Copy link
Contributor Author

kcondon commented Apr 14, 2016

So does that mean this is no longer an issue then?


From: Philip Durbin notifications@github.com
Sent: Wednesday, April 13, 2016 8:31 PM
To: IQSS/dataverse
Cc: Condon, Kevin M
Subject: Re: [IQSS/dataverse] Permissions: Removing a role assigned at Root, such as curator, is not immediately reflected in browse results due to slow indexing. (#2697)

My earlier comment at #2697 (comment)https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_2697-23issuecomment-2D151539046&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=zI8NyAHRbsz8L_T9um83IcRDacHhbXT--10w0Gw5Af8&s=GIZqaV8HLwFkAApEyoSRAjhyZKWzDVwQxEKlEdXdxQ0&e= is no longer accurate in the sense that the user removing the role no longer experiences the expense of reindexing (watching the spinner spin) since it was made asynchronous in #2036https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_2036&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=zI8NyAHRbsz8L_T9um83IcRDacHhbXT--10w0Gw5Af8&s=q4lyI8o8x3Vny1lHicO5BQC-QOtmt112lEPskOI0V84&e=.

You are receiving this because you were assigned.
Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_2697-23issuecomment-2D209700813&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=TUpjWt9sVfaAC8ETCY_cDPtqJKl7s242PLg6-Wx6UpM&m=zI8NyAHRbsz8L_T9um83IcRDacHhbXT--10w0Gw5Af8&s=sZqbdv5TubDERuDPwJ18b_wd87CWtfwwtMFK0CNkP40&e=

@pdurbin
Copy link
Member

pdurbin commented Apr 14, 2016

I depends on how you interpret what this issue is about, I guess. Indexing is not immediate, it's just asynchronous now. If desired, we could turn this issue into the new #50 about indexing being too slow. But that issue was recently closed as fast enough.

@kcondon
Copy link
Contributor Author

kcondon commented Apr 15, 2016

Spoke with Phil. Before asynch indexing, Sonia would just see a spinner after removing and would seem to never return. Now returns but user would continue to see cards they no longer have access to until index is complete. This last asynch mode is how we interpreted the issue.

As for this being indexing being too slow and how it related to #50, that was about the sys admin use case of doing an overnight index all not completing in a reasonable time. That is good enough, happens in a few hours but not the same use case as this: curation of permissions.

It's clear there is not a likely short term solution to slower index times or even an ultimate solution so we need to decide if this is ok to live with.

@kcondon
Copy link
Contributor Author

kcondon commented Apr 21, 2016

Asynch change made this much better but given the current perms/ index architecture the amount of improvement would not significantly change this so we should live with it for now and revisit if it becomes a problem for users. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants