fssa-batch3 / fssa-batch3/sec_a_susikumar.pitchaimuthu__corejava_project_2
Invite Module | Delete invite
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
User Story
As a user, you should have the ability to delete your invitation using a valid invite ID and user ID. The first step is to check whether the invite ID is present in the database. If it is, the system will verify whether the user ID assigned matches the given user ID. If the invite ID is not valid, an error message stating "Invalid invite ID" will be displayed. Likewise, if the user ID is not valid, an error message saying "Invalid user ID" will be shown. Only if both the invite ID and user ID are valid will the invitation be deleted from the database.
### DAO:
- [x] deleteInvite()
### Service:
- [x] deleteInvite()
### Service Tests:
- [x] testDeleteInviteSucess()
## Flow
```mermaid
graph TD;
Start(Start) --> Input(Input: Invite ID, User ID);
Input --> CheckInviteID{Check if Invite ID exists};
CheckInviteID -->|Yes| CheckUserID{Is Invite assigned to User ID?};
CheckInviteID -->|No| ErrorInviteID[Display Invalid Invite ID Error];
CheckUserID -->|Yes| DeleteInvite{Delete Invitation from Database};
CheckUserID -->|No| ErrorUserID[Display Invalid User ID Error];
DeleteInvite --> Success[Display Invitation Deleted Successfully Message];
ErrorInviteID --> End(End);
ErrorUserID --> End;
Success --> End;
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.