feature/add-search-query-presentations-promo-and-coupons#86
Merged
andres15alvarez merged 5 commits intoApr 27, 2025
Merged
Conversation
…filtering by query and date range
…Controller and PromoController
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.
This pull request introduces enhancements to the filtering and pagination capabilities for the
Coupon,Promo, andPresentationmodules. The changes include adding query parameters for filtering by search text and date ranges, updating the respective DTOs and services to handle these filters, and improving the API documentation with new query parameter descriptions.Enhancements to Filtering and Pagination:
Coupon Module:
q(search by code) andexpirationBetween(filter by expiration date range) query parameters inCouponController. Updated API documentation to reflect these new filters. [1] [2]CouponQueryDTOincoupon.dto.tsto extendPaginationQueryDTOand handle the new query parameters.CouponServiceto support filtering byqandexpirationBetweenusing query builder logic.Promo Module:
q(search by name) andexpirationBetween(filter by expiration date range) query parameters inPromoController. Updated API documentation accordingly. [1] [2]PromoQueryDTOinpromo.dto.tsto extendPaginationQueryDTOand handle the new query parameters.PromoServiceto support filtering byqandexpirationBetweenusing query builder logic.Presentation Module:
q(filter by name) query parameter inPresentationControllerand updated API documentation.PresentationServiceto support filtering byqusing repositoryfindmethod with conditionalwhereclause.