-
Notifications
You must be signed in to change notification settings - Fork 24
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
Allow deleting datasets on disk #4696
Conversation
frontend/javascripts/dashboard/dataset/import_delete_component.js
Outdated
Show resolved
Hide resolved
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.
@fm3 Thanks a lot for also doing the frontend part 🚀 -> I did not check the backend part :)
I found only a few minor things to improve and while trying out my suggestions I just pushed them. I hope this is fine 🙈:
- We generally spell "dataset" in lowercase without capitalizing the s. Could you please correct this to have a consistent spelling?
And I noticed one additional thing:
When a dataset is deleted, it is still listed on the dashboard, which shouldn't be the case. Reloading wk does only solve this issue after some time. Maybe the backend is still deleting the dataset or the dataset is still cached or something like that but it is only removed from the dataset list after some time. :/
@fm3 could you please check whether this is due to the backend?
frontend/javascripts/dashboard/dataset/import_delete_component.js
Outdated
Show resolved
Hide resolved
frontend/javascripts/dashboard/dataset/import_delete_component.js
Outdated
Show resolved
Hide resolved
frontend/javascripts/dashboard/dataset/import_delete_component.js
Outdated
Show resolved
Hide resolved
Thanks a lot for looking at this and even implementing the suggestions! 🎉 |
@fm3 Yes, it should be possible to trigger a refresh before redirecting and there should also be a way to show the newest set of datasets, because that's what happens when the "Refresh" button is clicked by the user. I'll have a look at the code :) |
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.
Tested and works :)
Backend Code LGTM
@fm3 The dataset list should show updated results after deleting a dataset now :) Regarding the admin-only ToDo - Who should actually have access to the Import/Edit view at all? At a quick glance I didn't see any restrictions (apart from that the user needs access to the dataset). |
dataset managers should see the links pointing there for all datasets; team managers should see them for the datasets their teams have access to, admins should see them for all datasets. I think this is already the case. |
ToDos for me:
|
works perfectly 👌 |
@daniel-wer Could you please check my latest frontend changes? After this, the PR should be ready to go 🚢 |
I just had a look at the description.
@fm3 is updating wk-connect still a thing to do? I'll have a look at the docs |
Frontend changes look good, thanks for taking this over 👍 |
I added it to wk-connect’s issue tracker at scalableminds/webknossos-connect#22 |
Adds new datastore route
DELETE /datasets/:organizationName/:dataSetName/deleteOnDisk
(use with care)Adds a tab to dataset edit view, where this route can be triggered
URL of deployed dev instance (used for testing):
Steps to test:
DELETE /datasets/:organizationName/:dataSetName/deleteOnDisk
(with admin token)Open Questions:
Issues: