UI - Delete icon (trash can) menu option change (DDS-447)
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 13
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
The **delete** function is only available to Editors and Admins when their datasets are able to be deleted (see [API change](https://github.com/bcgov/ckan-ui/issues/420) for definition of Delete). Dataset state = Draft.
Consumers (Public, logged in users with no role in the catalogue) and some contributors (logged in users with roles (Editor and Admin), but not for this record's Organization) can't manage this record so the delete function should never be available to them.
Delete function should be available to the Contributors (logged in users with Admin/Editor roles associated to this record's Organization).
@yuisotozaki, what is the best UI implementation for those Contributors who can manage the record :
- Always visible, but only enabled when the record is able to be deleted
- Only visible and enabled when the record is able to be deleted
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the UI implementation for the dataset delete menu and the API change described in issue 420. Confirm how dataset state and organization roles determine whether deletion is permitted, then implement the agreed visibility or enabled-state behavior for Consumers and authorized Contributors. Done means the menu matches those role and state rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authorization, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100