Skip to content

Use better query when filtering promotions with or without coupons - #480

Open
gciotola wants to merge 1 commit into
mainfrom
fix/516-promotions-filter
Open

Use better query when filtering promotions with or without coupons#480
gciotola wants to merge 1 commit into
mainfrom
fix/516-promotions-filter

Conversation

@gciotola

@gciotola gciotola commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Closes commercelayer/issues-app#516

I replaced the coupons_code_present=true|false filter with a more performant promotion_rules_type_eq=CouponCodesPromotionRule + promotion_rules_type_not_eq=CouponCodesPromotionRule combo

@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for commercelayer-dashboard-apps ready!

Name Link
🔨 Latest commit b8a027a
🔍 Latest deploy log https://app.netlify.com/projects/commercelayer-dashboard-apps/deploys/6a71a36902868e0008a94e95
😎 Deploy Preview https://deploy-preview-480--commercelayer-dashboard-apps.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gciotola gciotola self-assigned this Aug 4, 2026
@gciotola gciotola added the bug Something isn't working label Aug 4, 2026
@gciotola gciotola changed the title fix(promotions): improve performances with new query for filtering promotions with or without coupons Improve performances with new query for filtering promotions with or without coupons Aug 4, 2026
@gciotola gciotola changed the title Improve performances with new query for filtering promotions with or without coupons Improve performances when filtering promotions with or without coupons Aug 4, 2026
@gciotola gciotola changed the title Improve performances when filtering promotions with or without coupons Use better query when filtering promotions with or without coupons Aug 4, 2026
@gciotola
gciotola marked this pull request as ready for review August 4, 2026 08:34
@gciotola
gciotola requested review from malessani and pfferrari August 4, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants