fssa-batch3 / fssa-batch3/sec_a_mohammedajmal.iqbol__corejava_project_2

Course Module | Update Feature

Open
#7 1 comment 0 reactions 1 assignee Claimed by @Ajmal112 View on GitHub
course-module enhancement
Dominant language
Java
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# Course Update Process

### User Flow:

- When a user provides a valid courseID and updates the course details, the system successfully applies the changes and responds with a message confirming the successful update.
- When a user provides an invalid courseID and attempts to update details, the system responds with an "Invalid" message, indicating that the course was not successfully updated.

### Task

- [x] Implement Data Access Object (DAO) Layer.
- [x] Implement Service Layer.
- [x] Create JUnit Test Cases.
- [x] Ensure that the test cases are passing.
- [ ] Write clear and concise comments in the code to explain complex logic.

### DAO
- updateCourse()

### Service
- editCourse()

### Service Test
TestUpdateCourseFeature
- testUpdateCourseSuccess()
- testUpdateCourseFailure()

### Estimation
- 1 hour

# Flowchart
```mermaid
flowchart TD
A[Start]
B[User Requests to Update Course]
C[Validate CourseID]
D{Validation Successful?}
E[Retrieve Course for Update]
F[Display Course Update Form]
G[User Provides Updated Details]
H[Validate Updated Input]
I{Validation Successful?}
J[Update Course Data]
K[Course Update Successful]
L[Display Validation Error]
M[Display Update Error]
N[End]

A --> B
B --> C
C --> D
D -- Yes --> E
E --> F
F --> G
G --> H
H --> I
I -- Yes --> J
J --> K
I -- No --> L
L --> F
D -- No --> M
M --> N
K --> N

```

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.