fssa-batch3 / fssa-batch3/sec_a_mohammedajmal.iqbol__corejava_project_2
User Module | Delete Feature
- Dominant language
- Java
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
# User Delete Process
### User Story
- Upon requesting to delete the user account and confirming the action, the system proceeds to remove the account from the database, provides a confirmation message, and navigates the user to an appropriate page.
- If the user's request to delete the account cannot be completed due to incomplete or erroneous information, the system displays an error message or confirmation prompt, ensuring the user understands the implications of the action and can proceed accordingly.
### Task
- [x] Implement Data Access Object (DAO) Layer.
- [x] Implement Service Layer.
- [x] Create JUnit Test Cases.
- [x] Ensure that the test cases are passing.
- [ ] Write clear and concise comments in the code to explain complex logic.
### DAO:
- DeleteUserByUserID()
### Service
- deleteUser()
### Service Test
TestDeleteFeature
- testDeleteSuccess()
- testDeleteFailure()
### Estimation
- 1 hour
# Flowchart
```mermaid
flowchart TD
A[Start]
B[Display Delete Confirmation]
C[User Confirms Deletion]
D[Delete Data]
E[Deletion Successful]
F[Cancel Deletion]
G[End]
A --> B
B --> C
C -->|Yes| D
D --> E
C -->|No| F
E --> G
F --> G
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.