Skip to content
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

developer delete items #12

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

SebassNoob
Copy link
Collaborator

This PR implements the DELETE endpoint for /category /document_type and /subject as well as the UI for deletion.

@SebassNoob SebassNoob added the enhancement New feature or request label Jun 14, 2023
@SebassNoob
Copy link
Collaborator Author

This PR is a work in progress -- DELETE endpoints have not been tested.

@@ -14,6 +14,7 @@ import {
TableRow,
} from "@mui/material";
import EditIcon from "@mui/icons-material/Edit";
import DeleteIcon from '@mui/icons-material/Delete';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have an AdminDeleteIcon component, reuse that instead

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for late reply, but id like to raise a bit of a nitpick. in AdminDeleteIcon a required prop is noteId but what we're deleting/editing is an instance of DataTypeKey = "categories" | "subjects" | "types";. Regardless I can repurpose the existing component, but the prop names are a bit misleading tbh

@sonarcloud
Copy link

sonarcloud bot commented Oct 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants