-
Notifications
You must be signed in to change notification settings - Fork 16
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
159 - Manage File User Permissions for the Files Tab #165
Conversation
…er can download the file
…the download permissions
…k to get editDataset permission
Changes unknown when pulling abbf383 on feature/159-manage-user-permissions-files into ** on feature/139-files-table-file-action-buttons-ui**. |
… showing the files table
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.
I'm approving this. I didn't do any particular testing apart from getting the section to load in story book.
I looked through the diff of just this PR (which merges into non-develop) at feature/139-files-table-file-action-buttons-ui...feature/159-manage-user-permissions-files
I forget if I asked this already, but I still wonder why it's called DatasetMother. I wonder if it should be DatasetParent instead.
Also, it's weird to me that there are 200 total files in Storybook and somehow within that small number there are 100K embargoed files. 😄
@MellyGray I actually had trouble loading this in Storybook. I saw two blank pages: |
@pdurbin For any class you see with the "Mother" suffix, it is a naming convention for classes used in testing that create objects that we use for tests. |
@kcondon mmm, I tried with the above steps and it's working for me. Sometimes I fix the blank page in Storybook by deleting the node_modules cache, from the dataverse-frontend/ root run:
If that doesn't work then maybe try deleting the whole node_modules folder:
Also sometimes it takes a while for storybook to load the pages, so try waiting for sometime to see if the console prints something else such as another error or [vite] connecting If none of the above works, we can try troubleshooting in a zoom call because I've never seen that error message in the console. I'd say it's something about the dependencies but no idea. |
@MellyGray I keep seeing blank pages, even after trying the tricks: Sometimes I fix the blank page in Storybook by deleting the node_modules cache, from the dataverse-frontend/ root run: rm -rf node_modules/.cache && npm i If that doesn't work then maybe try deleting the whole node_modules folder: rm -rf node_modules && npm i |
@kcondon We can try troubleshooting in a zoom call after the standup |
@MellyGray Yes, maybe try after standup, thanks! |
…s://github.com/IQSS/dataverse-frontend into feature/159-manage-user-permissions-files
…s://github.com/IQSS/dataverse-frontend into feature/159-manage-user-permissions-files
@MellyGray Works well but the changed behavior of the checkbox selecting all on a page rather than all isn't in this -still selects all files. |
…s://github.com/IQSS/dataverse-frontend into feature/159-manage-user-permissions-files
@kcondon I've merged the changes from 'develop' into this branch, so now the checkbox should work as expected here as well |
…s://github.com/IQSS/dataverse-frontend into feature/159-manage-user-permissions-files
…ions-files 159 - Manage File User Permissions for the Files Tab
What this PR does / why we need it:
This PR adds the management of the file user permissions for the the Files Tab.
Which issue(s) this PR closes:
Special notes for your reviewer:
Changes
Suggestions on how to test this:
To test this from a UI perspective, the Files Tab elements in the Storybook should continue being displayed as in the previous PRs, this is because in previous PRs the permissions were hardcoded and now they have been implemented with their own use cases. So basically the testing consists on checking that everything is being displayed in the Files Table as it was before, for example as it was working in the feature/139-files-table-file-action-buttons-ui branch
npm i
cd packages/design-system && npm run build
cd ../../
npm run storybook
Is there a release notes update needed for this change?:
No
Additional documentation: