fssa-batch3 / fssa-batch3/sec_a_saran.selvaraj__corejava_project_2
User Module | Delete User Feature
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## User Account Deletion
**User Story:**
**As a user** of the application, I want the ability to delete my account when needed, ensuring a straightforward and user-friendly process.
**Acceptance Criteria:**
### Scenario 1: Initiate Account Deletion
- **Given** I am logged into the application.
- **When** I choose to delete my account.
- **Then** the account deletion process begins.
### Scenario 2: Check Account Existence
- **Given** I have initiated the account deletion process.
- **When** the system checks if my account exists.
- **Then** I receive a notification:
- If my account does not exist, I'm informed that the account was not found, and the process ends.
- If my account exists, the process continues.
### Scenario 3: Check Account Status
- **Given** my account exists.
- **When** the system checks if it is active.
- **Then** I receive a notification:
- If my account is inactive, I'm informed about its status, and the process ends.
- If my account is active, I'm prompted to confirm the deletion.
### Scenario 4: Confirm Deletion
- **Given** I have confirmed the deletion.
- **When** the system proceeds to delete my account.
- **Then** the deletion process begins.
### Scenario 5: Deletion Outcome
- **Given** the system has attempted to delete my account.
- **When** the outcome is determined.
- **Then** I receive a notification:
- If the deletion is successful, I'm informed that my account has been deleted.
- If there are issues during deletion, I receive a notification about the failure along with details.
### Scenario 6: End of Process
- **Given** the deletion process has concluded.
- **When** all notifications have been delivered.
- **Then** the process ends, and I am appropriately informed at each step.
**End**
### Flow Chart:
```mermaid
graph TD;
subgraph Start
A[Initiate Account Deletion]
end;
A -->|Account Exists?| B[Check Account Existence]
B -->|Account Does Not Exist| C[Notify User: Account Not Found]
B -->|Account Exists| D[Check Account Status]
D -->|Account Inactive| E[Notify User: Account Inactive]
D -->|Account Active| F[Ask for Confirmation]
F -->|Confirmed| G[Delete Account]
G -->|Deletion Successful| H[Notify User: Deletion Successful]
G -->|Deletion Failed| I[Notify User: Deletion Failed]
C -->|End| J[End]
E -->|End| J[End]
H -->|End| J[End]
I -->|End| J[End]
J -->|User Informed| K[User Informed]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.