icipe-official / icipe-official/vectoratlas-software-code
Allow editors to delete species information
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 8
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 11
Description
Add a new API route to delete a particular entry from the species information table. Only editors should be able to use this route. Then update the UI to show a delete button next to each entry (only if the user is an editor) and when clicked this calls the new delete route and removed the entry from the list and the database.
Acceptance criteria:
- There is a new API route for deleting entries from the species information table.
- Only users with the editor role can use this route.
- Only editors see the delete buttons for entries in the species information page.
- Clicking a delete button in the UI removes the corresponding entry from the species information table and removes it from the UI.
Contributor guide
No contributing guide indexed for this repository
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 locating the species information page and table, then inspect the existing API routes and editor-role checks. Trace how entries are loaded so the delete route and UI action follow the current patterns. Done means editors can delete an entry through the UI, non-editors cannot see or use the action, and the entry is removed from both the database and list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, authorization, database, full-stack
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100