fssa-batch3 / fssa-batch3/sec_b_dhanush.selvam__corejava_project_2

Update Employee

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Feature: Update Employee
#### User Story:
* User can update an existing employee account

#### Pre-requisites:
- [ ] Module 1 Feature 1
- [ ] Implement Employee DAO (update)

#### Validations:
- [ ] Form Validation
* First Name (null, empty)
* Last Name (null, empty)
* Phone Number(Match phone no pattern)
* Password (Must contain one lowercase, one uppercase, one number, one special character and length should be minimum 8 to maximum 24 characters)
* Address (null, empty)
- [ ] Business Validation
* Only existing user details can be updated

#### Messages:
* First Name cannot be nulll or empty
* Last Name cannot be null or empty
* Invalid Phone Number
* Password should not match the pattern
* Address cannot be null or empty
* Invalid Email id

#### Flow:
```mermaid
graph TD;
A[Employee Service: Update User] --> B[Form Validation]
B -- Yes --> C{Check id exist in table}
B -- No --> G[Employee Service: Invalid input]
C -- Yes --> D[Employee DAO: Update User]
D --> E[Employee Service: User Updated]
C -- No --> F[Employee Service: User does not Exists ]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Employee Service: Update User flow and inspect the Employee DAO update prerequisite; no file paths or tests are named in the issue. Implement the specified form and business validations, update only existing employee details, and verify the success and invalid-input or nonexistent-user outcomes described in the flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.