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

[FEAT] ADD CATEGORY SUPPORT TO BLOGS #1275

Open
4 tasks
Blossomifeoma opened this issue Feb 28, 2025 · 0 comments
Open
4 tasks

[FEAT] ADD CATEGORY SUPPORT TO BLOGS #1275

Blossomifeoma opened this issue Feb 28, 2025 · 0 comments
Assignees
Labels

Comments

@Blossomifeoma
Copy link

Blossomifeoma commented Feb 28, 2025

Description

Currently, the blog service does not utilize the blog category module, which prevents blogs from being categorized. This affects the organization and discoverability of blog posts, making it harder for users to filter and navigate blogs based on their categories.

Acceptance Criteria

  • Add a category_id field to Blog entity
  • Modify BlogService to save category_id
  • Update the DTOs to accept category_id field
  • Ensure API response include category ID

Purpose

  • Enhance the user experience by enabling blog categorization.
  • Improve content organization to make it easier to browse relevant blogs.
  • Provide better filtering and navigation for users.

Requirements

  • Modify CreateBlogDto and UpdateBlogDto to accept category_id.
  • Update Blog entity to establish a relationship with BlogCategory.
  • Adjust BlogService to ensure blog-category association.
  • Update API endpoints to allow fetching blogs by category.

Expected Outcome

  • Users can assign categories to blogs when creating or updating them.
  • The system stores category references in the database.
  • Users can filter blogs by category using API requests.
  • The category appears in blog responses, improving content organization.

Additional Context

  • Ensure backward compatibility, so existing blogs without categories remain unaffected.
  • Implement necessary validations to prevent assigning non-existent categories.
  • The feature should be tested with both blog creation and retrieval.
@Blossomifeoma Blossomifeoma changed the title [FEAT] Blog Service Does Not Support Blog Categories [FEAT] ADD CATEGORY SUPPORT TO BLOGS Feb 28, 2025
@github-project-automation github-project-automation bot moved this to Backlogs in Boilerplate-TS Feb 28, 2025
@AdeGneus AdeGneus moved this from Backlogs to Mentors Approved in Boilerplate-TS Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Mentors Approved
Development

No branches or pull requests

1 participant