Closed codersquid closed 3 years ago
To clarify, currently if someone searches for more than one vendor, no results will be returned because the backend will see the "foo,bar" string as the name of one vendor and find no records for it.
this request should return 4 results, but it returns nothing.
/certification?text=&form=SoC&vendor=Applied+Micro+Circuits+Corp.&vendor=Qualcomm+Inc&filters=True
Here are the problematic code snippets in views.py
The API does not handle the
vendor
query parameter with comma delimited lists. Instead,vendor
should be repeated with all of the vendors being filtered. e.g. to search for Lenovo and Dell machines this query would be used:https://certification.staging.canonical.com/api/v1/certifiedmodels/?format=json&vendor=Lenovo&vendor=Dell