-
Notifications
You must be signed in to change notification settings - Fork 54
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
Delete Datastore Table Button #197
Delete Datastore Table Button #197
Conversation
- Added view to delete datastore table. - Added button to delete a resource's datastore table.
- Added csrf field to delete button form.
- Removed the word `table` from user visible things.
- Used `get_action` from toolkit instead of ckanapi dependency.
@ThrawnCA for this PR, I also reverted the |
Looks good from here. |
Ideally there should be a sanity check to ensure that the package ID is correct for the resource ID. |
- Confirm that the resource id belongs to the package id.
- Condition delete button behind `datastore_active`. - Fix context variable in view.
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.
Testing on dev.data.qld.gov.au indicates that the positioning of the Delete button doesn't mesh well with the Upload to Datastore button.
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.
After the confirm-action JavaScript runs, the button submits a datastore refresh instead of deletion.
Our fork will fix this with qld-gov-au#74
# Conflicts: # ckanext/xloader/views.py ### RESOLVED.
- Fix layout of delete button with upload button. - Changed delete button icon.
@ThrawnCA button alignment should be good now |
- Move sets into their respective blocks.
feat(views): added view and button to delete ds table;
Adds a button to the Xloader data page to delete a Resource's datastore table.