bcgov / bcgov/ckan-ui

UI - Delete icon (trash can) menu option change (DDS-447)

Open
#421 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.