fssa-batch3 / fssa-batch3/sec_b_karthikeyan.robert__corejava_project_2

update user details

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Feature 2: Update User
#### User story
User can update their profile.
#### Pre-requisites:
- Implements User Service(update(int id, User user))
- Implement User DAO(update(int id, User user))
- User table

#### Validation
- [ ] Form validation
- id <=0
- user null check
- name (null or empty string)
- email (null or empty string)
- password (null or empty string)
- phone_number ( length, >= 600000001 && <= 9999999999 )
- [ ] Business validation
- Check whether id is in the table or not

#### Messages
- [ ] User cannot be null
- [ ] name cannot be null or empty
- [ ] email cannot be null or empty
- [ ] password cannot be null or empty
- [ ] Invalid Email Id
- [ ] Password doesn't match the required format
- [ ] phone_number doesn't match the required format
- [ ] User Id not found(Business validation)

#### Flow:
```mermaid
graph TD;
A["User Service: User Update "] -->
B["Form Validation"]
B -- Valid --> C0["Business Validation"]
C0 --> C["Whether the ID is in the database or not"]
B -- InValid --> C1["Invalid input"]
C -- Yes --> D["User DAO: Update User"]
D --> E["User Service: User Updated(Response)"]
C -- No --> F["Validation Exception: User not found for the given ID (Error Response)"]
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Individua i punti di ingresso di User Service e User DAO e la definizione della tabella User; inizia leggendo come sono organizzate le operazioni esistenti di validazione e persistenza. Il lavoro è completato quando il flusso di aggiornamento copre le validazioni del modulo e di business elencate, restituisce i messaggi specificati e aggiorna un utente esistente rifiutando gli input non validi e gli ID sconosciuti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
backend, database
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.