fssa-batch3 / fssa-batch3/sec_b_vigneshwar.vijayakumar__corejava_project_2
Update User Details
- Vorherrschende Sprache
- Java
- Sterne
- 0
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
#### User Story:
> Existing user can update their details.
#### Pre-requisites:
- [ ] User DAO (update)
- [ ] User Service (update)
#### Validations:
- [ ] Form Validation:
- Id <= 0
- User Object
- User null
- Name ( null, empty, pattern )
- Password ( null, empty, pattern )
- Phone number ( length, >= 600000001 && <= 9999999999 )
- [ ] Business Validation:
- Check whether the Id exists.
#### Messages:
- User Id cannot be less than zero.
- User object cannot be null.
- Name cannot be null or empty.
- Password cannot be null or empty.
- Password does not match the pattern.
- Phone number cannot be less than or more than 10 digits.
- Phone number does not match the pattern.
- Id doesn't exists.
#### Flow:
```mermaid
graph TD;
A(Value Passed to UserService - Id & User object) --> B(Form Validation) -- Valid --> C(Business Validation)
B --Invalid --> H(Validation Exception)
C -- Valid--> D(Value Passed to UserDAO)
D --> E(Update value from Database)
C -- Invalid --> F(Validation Exception)
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by locating the UserService and UserDAO entry points named in the prerequisites and trace the update flow from the service to the database. Cover the listed form and business validation cases, then verify that valid details are persisted and invalid inputs produce the specified messages.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java
- Bereich
- backend, database
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100