fssa-batch3 / fssa-batch3/sec_a_susikumar.pitchaimuthu__corejava_project_2
Invite Module | Update Invite
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
User Story
As a user, you should be able to modify or edit your details using the valid invite ID, user ID, and invite details. First, the system will check whether the invite ID is present and if the invite is assigned to the user ID. If these details are correct, it will proceed to check the update details such as the date, time, type, and explanation. If any of the information is not valid, an error message will be displayed according to the specific field. However, if all the information is valid, it will be stored in the database.
### DAO:
- [x] updateInvite()
### Service:
- [x] updateInvite()
### Service Tests:
- [x] testUpdateInviteSuccess()
## Flow
```mermaid
graph TD;
Start(Start) --> Input(Input: Invite ID, User ID, Invite Details);
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| UpdateCheck{Proceed to Update Details Check};
CheckUserID -->|No| ErrorUserID[Display Invalid User ID Error];
UpdateCheck -->|Check Validity| CheckDetails{Check if Date, Time, Type, and Explanation are valid};
CheckDetails -->|Invalid| ErrorDetails[Display corresponding error message for each invalid field];
CheckDetails -->|Valid| UpdateDatabase[Update Database with new details];
UpdateDatabase --> Success[Display Invite Details Successfully Updated Message];
ErrorInviteID --> End(End);
ErrorUserID --> End;
ErrorDetails --> End;
Success --> End;
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.