Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[USH-220] Add Create Post Command #4533

Closed
kubabialy opened this issue Mar 8, 2023 · 0 comments
Closed

[USH-220] Add Create Post Command #4533

kubabialy opened this issue Mar 8, 2023 · 0 comments
Assignees
Labels
5 points Created by SyncLinear.com linear

Comments

@kubabialy
Copy link
Contributor

kubabialy commented Mar 8, 2023

Revise the create method for the Post Laravel model to follow CQRS pattern

Description: The create method in the Post Laravel model needs to be revised to follow the CQRS pattern. The logic other than related with HTTP will be moved to the CommandHandler. The aim is to separate the read and write concerns to enhance the codebase's scalability and maintainability.
Tasks:

  • Revise the create method to use the CQRS pattern
  • Move all the logic other than related with HTTP to the CommandHandler
  • Write unit tests to validate the functionality

Acceptance Criteria: The create method should create a new Post instance in the database. The method should utilize the CQRS pattern, and unit tests should pass.

USH-220

@kubabialy kubabialy self-assigned this Mar 9, 2023
@tuxpiper tuxpiper changed the title Add Create Post Command [USH-220] Add Create Post Command Mar 10, 2023
@tuxpiper tuxpiper added the 5 points Created by SyncLinear.com label Mar 14, 2023
@tuxpiper tuxpiper added this to the v.16 milestone Apr 9, 2023
@tuxpiper tuxpiper removed this from the v.16 milestone Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 points Created by SyncLinear.com linear
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants