Filter by multiple categories

Bug #1918416 reported by Francisco Jimenez Cabrera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snap Store Server
Fix Released
Wishlist
Hasan Ammar

Bug Description

Hello,

As requested by you in our meeting we are opening this ticket because we need to be able to filter by multiple categories in the find endpoint.

You can see in the current charmhub.io website it is possible to filter by more than one category, right now this is done on our side but we would like to start using the find endpoint, eg:

https://api.snapcraft.io/v2/charms/find?category=ai-ml,big-data

Thank you,
Fran

Revision history for this message
Jonathan Hartley (tartley) wrote :

Thanks you! I'm transcribing into our trello, https://trello.com/c/sFJPeekV/187-filter-by-multiple-categories, will ask to discuss there, but will update this bug with concrete changes.

I understand you already have one workaround (doing it client-side), but just in case it's helpful, another might be to make one call to the API for each category, and then union/intersect on the client. (Maybe that's what you're already doing?)

Changed in snapstore-server:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Hasan Ammar (hasanammar) wrote :
Changed in snapstore-server:
assignee: nobody → Hasan Ammar (hasanammar)
status: Triaged → Fix Committed
Hasan Ammar (hasanammar)
Changed in snapstore-server:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.