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

File Permissions: Grant File Access popup should display number of restricted files #2716

Closed
sbarbosadataverse opened this issue Nov 2, 2015 · 15 comments
Assignees
Labels
Feature: Permissions UX & UI: Design This issue needs input on the design of the UI and from the product owner

Comments

@sbarbosadataverse
Copy link

sbarbosadataverse commented Nov 2, 2015

When adding a user to restricted files, the dialogue box doesn't display the number of "restricted" files the user is about to be assigned. This is only seen under the "terms" tab. Since not everyone gets blanket permission to files, and sometimes you have long list of files, the dialogue box should display:

how many restricted files you start with
how many restricted files you have selected to assign permission to...

Once assigned, the screen does diplay how many files the user has been assigned but this should also happen at above level.

@sbarbosadataverse sbarbosadataverse added this to the 4.3 milestone Nov 2, 2015
@mercecrosas mercecrosas modified the milestones: 4.3, In Review Nov 30, 2015
@scolapasta scolapasta removed their assignment Jan 27, 2016
@mheppler mheppler added UX & UI: Design This issue needs input on the design of the UI and from the product owner Feature: Permissions labels Jan 28, 2016
@mheppler mheppler changed the title Permission-Files: The permissions-files page should display the number of restricted files that also shows up under the terms File Permissions: Grant File Access popup should display number of restricted files Jan 28, 2016
@scolapasta scolapasta modified the milestone: Not Assigned to a Release Jan 28, 2016
@mheppler
Copy link
Contributor

As suggested in #2896, this feature request could potentially be useful in other places in the permissions workflow, such as, on the File Permissions page to show a total number of users that have access to files for a dataset. Currently, an admin is required to count the rows of the userGroupsAccess table to determine this number.

@mheppler
Copy link
Contributor

mheppler commented Feb 9, 2016

I am taking this issue, as I have found a potential solution to the dynamic counter associated with a selection dataTable.

@mheppler mheppler self-assigned this Feb 9, 2016
mheppler added a commit that referenced this issue Feb 9, 2016
…e for dynamic "selected" counter in the access action popups. [ref #2716]
@mheppler
Copy link
Contributor

mheppler commented Feb 9, 2016

Added counter to dataTables in the File Permissions pg, plus prototype for dynamic "selected" counter in the access action popups.

@mheppler
Copy link
Contributor

mheppler commented Feb 9, 2016

Here is a break down of all the counters, as detailed in the FRD, that are being added to the various permissions page.

Dataverse/Dataset Permissions

  • Users/Groups role assigned table

File Permissions

  • Users/Groups access requests table
  • Users/Groups file access requested popup (w/ dynamic "Selecting # of... " count)
  • Users/Groups access granted table
  • Users/Groups file access granted popup (w/ dynamic "Selecting # of... " count)
  • Users/Groups grant access popup (w/ dynamic "Selecting # of... " count)
  • Files restricted table
  • Files users/groups access assigned popup (w/ dynamic "Selecting # of... " count)
  • Files grant access popup (w/ dynamic "Selecting # of... " count)

Also, regarding the Users/Groups counts in the Restricted Files table, if a restricted file has "0 Users/Groups", it has been changed to be text, and not a link to the File Access popup, where there were no actions to perform with no users/groups.

screen shot 2016-02-08 at 10 57 12 pm

![screen shot 2016-02-09 at 11 45 07 am](https://cloud.githubusercontent.com/assets/687227/12923157/9d1cf2b6-cf22-11e5-8913-d0faf6684cb9.png)

@sbarbosadataverse
Copy link
Author

Will a "date and time" stamp be part of what you are doing? or a separate
ticket?

Thanks

On Tue, Feb 9, 2016 at 11:45 AM, Michael Heppler notifications@github.com
wrote:

Here is a break down of all the counters that are being added to the
various permissions page.

Dataverse/Dataset Permissions

  • Users/Groups role assigned table

File Permissions

  • Users/Groups access requests table
  • Users/Groups file access requested popup (w/ dynamic "Selecting #
    of... " count)
  • Users/Groups access granted table
  • Users/Groups file access granted popup (w/ dynamic "Selecting #
    of... " count)
  • Users/Groups grant access popup (w/ dynamic "Selecting # of... "
    count)
  • Files restricted table
  • Files users/groups access assigned popup (w/ dynamic "Selecting #
    of... " count)
  • Files grant access popup (w/ dynamic "Selecting # of... " count)

[image: screen shot 2016-02-08 at 10 57 12 pm]
https://urldefense.proofpoint.com/v2/url?u=https-3A__cloud.githubusercontent.com_assets_687227_12923125_7ebde7e4-2Dcf22-2D11e5-2D819c-2D21767dc9313a.png&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=WHtGN2aBMcTtspcHK-7sEfYqQU3PsTqb8JihqtpHANw&s=9_60Ll3gUf_ZCyVBR2DOo1-RQcLVlRvxHbrlGg7tAkA&e=
[image: screen shot 2016-02-09 at 11 45 07 am]
https://urldefense.proofpoint.com/v2/url?u=https-3A__cloud.githubusercontent.com_assets_687227_12923157_9d1cf2b6-2Dcf22-2D11e5-2D8913-2Dd0faf6684cb9.png&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=WHtGN2aBMcTtspcHK-7sEfYqQU3PsTqb8JihqtpHANw&s=ZQFM2mtQc_BuKGy7T9srL0LPumFHK8DW26NzgvjrfVc&e=


Reply to this email directly or view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_2716-23issuecomment-2D181950750&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=WHtGN2aBMcTtspcHK-7sEfYqQU3PsTqb8JihqtpHANw&s=MLmyIzMkIUjwDQAOJnOP4XYHRRlT-uCfqkHjIFOzTzw&e=
.

Sonia Barbosa
Manager of Data Curation, IQSS Dataverse Network
Manager of the Murray Research Archive, IQSS
Data Science
Harvard University

Dataverse 4.0 is now available for use!
http://dataverse.harvard.edu

All test dataverses should be created in 4.0 Demo!
http://dataverse-demo.iq.harvard.edu/

Join our Dataverse Community!
https://groups.google.com/forum/#!forum/dataverse-community

@mheppler
Copy link
Contributor

mheppler commented Feb 9, 2016

@sbarbosadataverse - the issue you reference is outlined in #2855 and will be developed separately from this specific issue. It is my intent to prioritize as many permissions-related issues as possible and get them into development as quickly as possible. This issues is high on that list.

@sbarbosadataverse
Copy link
Author

Great. Thanks. Otherwise what you sent looks great!

On Tue, Feb 9, 2016 at 12:02 PM, Michael Heppler notifications@github.com
wrote:

@sbarbosadataverse
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_sbarbosadataverse&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=779lkQTrFK9ZktrFlcNfIWCb2QvnapHdxD10gVAWj4o&s=iErFm-pNIWdjqSG9DYZqeQjLWfYdKNa2EwI3mZwr-sM&e=


Reply to this email directly or view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_2716-23issuecomment-2D181958048&d=CwMCaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=779lkQTrFK9ZktrFlcNfIWCb2QvnapHdxD10gVAWj4o&s=7n66wlk1UvAsWtQspNDvgGgtg6pRX6-jDnN1wd7MXpU&e=
.

Sonia Barbosa
Manager of Data Curation, IQSS Dataverse Network
Manager of the Murray Research Archive, IQSS
Data Science
Harvard University

Dataverse 4.0 is now available for use!
http://dataverse.harvard.edu

All test dataverses should be created in 4.0 Demo!
http://dataverse-demo.iq.harvard.edu/

Join our Dataverse Community!
https://groups.google.com/forum/#!forum/dataverse-community

mheppler added a commit that referenced this issue Feb 19, 2016
…missions pg. Fixed render issue with Requests counter on Restricted Files Permissions pg. Improved various labels and help text across these same pgs. [ref #2657 #2659 #2716]
@mheppler mheppler removed their assignment Feb 19, 2016
@djbrooke djbrooke assigned kcondon and unassigned scolapasta Sep 14, 2016
@kcondon
Copy link
Contributor

kcondon commented Sep 15, 2016

Ok, generally works well. Found 2 issues that are relatively minor or rare and could be ignored or opened in separate ticket if not have time:

  1. Granting perms on dataverse or dataset page does not update user count on success, need to refresh page, otherwise works.
  2. If decide to grant access to all files to a user that already has access to some throws both a success msg and 2 exceptions, though it works and user has correct access.
    Passing back to Mike to see what he wants to do with it.

@kcondon kcondon assigned mheppler and unassigned kcondon Sep 15, 2016
@djbrooke djbrooke assigned djbrooke and unassigned mheppler Sep 16, 2016
@mheppler
Copy link
Contributor

Thank you, @kcondon. Do you have a test environment for this branch still or should I just take a look locally to reproduce? Once I've had a look, I'll review with @sekmiller to get his input.

@kcondon
Copy link
Contributor

kcondon commented Sep 19, 2016

@mheppler I've switched out the build already so please test locally and let me know if you cannot reproduce it.

@djbrooke djbrooke assigned mheppler and unassigned djbrooke Sep 19, 2016
@mheppler
Copy link
Contributor

mheppler commented Sep 19, 2016

My notes...

Granting perms on dataverse or dataset page does not update user count on success, need to refresh page, otherwise works.

I was not able to replicate this. I went to the dataset pg, and using both the Grant Access and the Assign Access buttons, was able to see the counts updated properly with the success msg displayed.

Apologies, I was able to replicate this, after I got on the correct pg (Dataset Permissions not Restricted Files Permissions). It appears that this project has done some clean up already on this pg, and I suggest we aim to also resolve this.

If decide to grant access to all files to a user that already has access to some throws both a success msg and 2 exceptions, though it works and user has correct access.

This is pretty ugly. Ideally we find a better solution than multiple mixed messages, and hopefully something more specific than "The role was not able to be assigned". Also, these msgs don't follow our usual format. The Date/Time timestamps and Server names are kind of an eyesore. Even the success msg isn't accurate, listing only one file, with no mention of the two other files that access was granted to.

screen shot 2016-09-19 at 1 57 03 pm

@sbarbosadataverse
Copy link
Author

If you need me to test let me know

On Sep 19, 2016 2:02 PM, "Michael Heppler" notifications@github.com wrote:

My notes...

  1. Granting perms on dataverse or dataset page does not update user
    count on success, need to refresh page, otherwise works.

I was not able to replicate this. I went to the dataset pg, and using both
the Grant Access and the Assign Access buttons, was able to see the counts
updated properly with the success msg displayed.

  1. If decide to grant access to all files to a user that already has
    access to some throws both a success msg and 2 exceptions, though it works
    and user has correct access.

This is pretty ugly. Ideally we find a better solution than multiple mixed
messages, and hopefully something more specific than "The role was not able
to be assigned". Also, these msgs don't follow our usual format. The
Date/Time timestamps and Server names are kind of an eyesore.

[image: screen shot 2016-09-19 at 1 57 03 pm]
https://urldefense.proofpoint.com/v2/url?u=https-3A__cloud.githubusercontent.com_assets_687227_18643097_91ce3fb0-2D7e71-2D11e6-2D8ce6-2Ddeaa108cebf1.png&d=CwMFaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=mZuD6eKEB05rRthJPWagkScY_vP4fyzMKhvqJkXDxiA&s=PoWxw4jcL7sKA-WdhIbzO7VqjqWQ8MpXfh4TmdWBTrU&e=


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_IQSS_dataverse_issues_2716-23issuecomment-2D248071195&d=CwMFaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=mZuD6eKEB05rRthJPWagkScY_vP4fyzMKhvqJkXDxiA&s=0pLzM7TSLspVx-pimCbfV7k7vBsKUQ7XmqSkeiBhXAc&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AH79KnmYo6mvFTqp6cj-5FI-5FQ-2DZtankruIks5qrs4LgaJpZM4GaWVL&d=CwMFaQ&c=WO-RGvefibhHBZq3fL85hQ&r=8R6PzVqt1PEocauQgZMGXsGz29-nb19M7eqlo1d8EVs&m=mZuD6eKEB05rRthJPWagkScY_vP4fyzMKhvqJkXDxiA&s=m1JvnZ2ZOQFY5BSzgqyvLYZ9cnSxV86fn_a0ODl2W3g&e=
.

@sekmiller
Copy link
Contributor

Made the error message more user friendly when there's a Command Exception. The user will still get multiple messages if they try to assign roles that already exist multiple times. Also, nothing done WRT consolidating success and error messages.

Out of scope for now.

@kcondon
Copy link
Contributor

kcondon commented Sep 20, 2016

OK, more user friendly, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Permissions UX & UI: Design This issue needs input on the design of the UI and from the product owner
Projects
None yet
Development

No branches or pull requests

7 participants