fssa-batch3 / fssa-batch3/sec_b_karthikeyan.robert__corejava_project_2

update request details

Open
#9 0 comments 0 reactions 1 assignee Claimed by @karthi354 View on GitHub
enhancement
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Feature 5: Update Request details
#### User story
User can update their Request detail.
#### Pre-requisites:
- Requests Table
- [ ] Request DAO (Update)
- [ ] Request Service (Update)
#### Validation
- [ ] Form Validation

- Name: Required, cannot be empty.
- Description: Required,more than 100 letters, cannot be empty.
- Category ID: Required, must be a positive integer.
- Amount: Required, must be a positive integer.

- [ ] Business validation
- Check whether id is in the Request table or not
- Check whether Category id is true or not
- Check whether User id matches the Request Id or not

#### Messages

- Name cannot be empty.
- Description cannot be empty.
- Description must be more than 100 characters.
- Category ID must be a positive integer.
- Amount must be a positive integer.


#### Flow:
```mermaid
graph TD;

A["User Service: Update Request List"] --> B["Form Validation"]
B --> |Valid| C0["Business Validation"]
C0 --> |Valid| C["Check Unique Email"]
B --> |Invalid| C1["Validation Exception: Invalid Input"]
C --> |Yes| D["User DAO: Update Request List"]
D --> |Success| E["Response: Request List Updated"]
C --> |No| F["User Service: Email Already Exists (Error Response)"]

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.