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] Search Functionality for Blog Categories #1290

Open
Reaganz-Wat opened this issue Feb 28, 2025 · 0 comments · May be fixed by #1342
Open

[FEAT] Search Functionality for Blog Categories #1290

Reaganz-Wat opened this issue Feb 28, 2025 · 0 comments · May be fixed by #1342

Comments

@Reaganz-Wat
Copy link

Description

Add search functionality to the BlogCategoryService to allow finding blog categories by name. This feature will enable users to quickly locate specific categories without scrolling through the entire list.

Acceptance Criteria

  • [Implement a search endpoint that accepts a search term parameter]
  • [Enable case-insensitive searching for category names]
  • [Support partial matching (e.g., searching for "tech" should return "Technology")]
  • [Return appropriate responses when no matches are found]
  • [Document the API endpoint with Swagger annotations]
  • [Write comprehensive unit tests for the search functionality]

Purpose

As the number of blog categories grows, users need a way to quickly find specific categories without browsing through the entire list. This search functionality will improve user experience and content discoverability.

Requirements

Add a new method to the BlogCategoryService or modify existing methods to support search
Implement appropriate database queries that support partial matching
Ensure the search is optimized for performance
Validate input to prevent SQL injection or other security issues
Create spec.ts files with unit tests covering all search scenarios
Include tests for edge cases (empty search, special characters, etc.)

Expected Outcome

Users should be able to search for blog categories by name and receive accurate, relevant results. The search should work with partial terms and be case-insensitive, returning categories that match the search criteria along with a count of results found.

Additional Context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants