fssa-batch3 / fssa-batch3/sec_a_logesh.venkatesan__corejava_project_2

Post Module | Update Post

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement Post Module
Dominant language
Java
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# Updating Post Information Process

## User Story

As a user, I want the capability to update information about posts on the platform. This involves modifying details such as post content, categories, and availability statuses. When I identify a post that requires an update, I should be able to make the necessary changes and save them. If the post I'm looking for isn't found, the system should display a message indicating that the post is not available for updating.

## Task

1. Implement Data Access Object (DAO) Layer.
2. Implement Service Layer.
3. Create JUnit Test Cases.
4. Ensure that the test cases are passing.
5. Write clear and concise comments in the code to explain complex logic.

## DAO

- `updatePost()`: Allows updating of post information on the platform.

## Service

- `updatePostService()`: Manages the post information updating process using the Service Layer.

## JUnit Tests

- `testValidUpdatePost()`: Tests the successful update of post information.
- `testInvalidUpdatePost()`: Tests the scenario when the requested post isn't found for updating.

## Estimation

Estimated time for completion: 3 hours

## Flowchart

```mermaid
graph TD
Start --> UserInitiatesPostUpdate
UserInitiatesPostUpdate --> SearchPostToUpdate
SearchPostToUpdate -->|Post Found| DisplayPostDetailsToUpdate
SearchPostToUpdate -->|Post Not Found| NotifyPostNotFound
DisplayPostDetailsToUpdate --> UserMakesChanges
UserMakesChanges -->|Changes Made| SaveUpdatedPost
UserMakesChanges -->|No Changes| NotifyNoChanges
SaveUpdatedPost -->|Success| NotifyUpdateSuccess
SaveUpdatedPost -->|Failure| NotifyUpdateFailure
NotifyPostNotFound --> EndNotFound
NotifyNoChanges --> EndNoChanges
NotifyUpdateSuccess --> EndSuccess
NotifyUpdateFailure --> EndFailure

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.