Skip to content

Implement search filter functionality in backend #1563

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Durganjali-sidda
Copy link

Implemented search filter functionality in the backend for the /items route. The endpoint now supports dynamic search with filtering options for title and keyword across both title and description. Additionally, the filtering respects user permissions, ensuring non-admin users can only access their own items, while superusers can access items from other users. This enhancement improves item search and retrieval, providing more flexible querying for both regular and administrative users.

Key updates include:

Added query parameters title, keyword, and owner_id for filtering items.

Improved permission handling for item access based on user roles.

Enhanced item retrieval with support for filtering based on title and description.

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

Successfully merging this pull request may close these issues.

1 participant