feat: add partial search and viewport filtering for stores#33
Merged
prudentbird merged 4 commits intodevfrom Sep 3, 2025
Merged
feat: add partial search and viewport filtering for stores#33prudentbird merged 4 commits intodevfrom
prudentbird merged 4 commits intodevfrom
Conversation
The commit adds support for: - Partial text search on store names - Geographic viewport filtering using lat/lng bounds - Combined filtering with other exact-match fields
- Updated .gitignore to include all .env files while excluding .env.example. - Improved orderBy logic in AbstractModelAction to handle range keys and set a default sort order by createdAt if no sorting is specified. - Added SkipThrottle decorator to the getStores method in AdminController for rate limiting control.
- Introduced the SkipThrottle decorator to the listStores method in StoreController to implement rate limiting, enhancing API performance and user experience.
- Changed partialSearchFields and rangeFields in AbstractModelAction to readonly arrays for better immutability. - Updated StoreModelAction to use constants for searchable and filterable columns. - Replaced IsNumberString with IsLatitude and IsLongitude validators in StoreDto for stricter validation. - Adjusted types in StoreFilterOptions to use template literals for latitude and longitude properties.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces enhancements to the store search functionality by adding support for:
These improvements enable more flexible and efficient querying of store data, supporting both text-based and location-based searches.
Type of Change
How Has This Been Tested?
Test Evidence
Checklist
Additional Notes
This feature lays the foundation for advanced store discovery and filtering, improving both API capabilities and user-facing search experiences.