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(Prices): API: new filter on product categories_tags #676

Merged
merged 2 commits into from
Jan 12, 2025

Conversation

TTalex
Copy link
Collaborator

@TTalex TTalex commented Jan 12, 2025

What

  • Allows for filtering using product__categories_tags__contains on price APIs

Fixes bug(s)

@TTalex TTalex marked this pull request as ready for review January 12, 2025 19:20
@TTalex
Copy link
Collaborator Author

TTalex commented Jan 12, 2025

I have no idea what I'm doing test-wise, and I cannot run them locally for a few reasons (outdated operating systems..). So it's quite a surprise that they do not fail.

Help welcomed :)

@raphodn raphodn changed the title feat(Price API): Filter on product category tags feat(Price): API: new filter on product category_tags Jan 12, 2025
@raphodn
Copy link
Member

raphodn commented Jan 12, 2025

I have no idea what I'm doing test-wise, and I cannot run them locally for a few reasons (outdated operating systems..). So it's quite a surprise that they do not fail.

Haha, it works indeed :) thanks a lot !!
I pushed an extra commit to cleanup some related stuff.

@@ -35,6 +35,9 @@ class PriceFilter(django_filters.FilterSet):
created__lte = django_filters.DateTimeFilter(
field_name="created", lookup_expr="lte"
)
product__categories_tags__contains = django_filters.CharFilter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now that we know this works, it'll be easy to add extra product filters 👀

@raphodn raphodn changed the title feat(Price): API: new filter on product category_tags feat(Prices): API: new filter on product category_tags Jan 12, 2025
@raphodn raphodn merged commit 458089e into main Jan 12, 2025
10 checks passed
@raphodn raphodn deleted the price-filter-with-product-categories-tags branch January 12, 2025 22:16
@raphodn raphodn changed the title feat(Prices): API: new filter on product category_tags feat(Prices): API: new filter on product categories_tags Jan 12, 2025
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.

Price API: Allow filter on product categories tags
2 participants