Log when source query parameter contains invalid values #3945
Labels
💻 aspect: code
Concerns the software code in the repository
✨ goal: improvement
Improvement to an existing user-facing feature
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: api
Related to the Django API
Problem
In the API
source
parameter validation improvements discussion we decided to log when any of the sources in the API request parameters is invalid.Description
Log whenever one of the sources in the search request is invalid. This is the code that needs to be updated:
openverse/api/api/serializers/media_serializers.py
Lines 655 to 656 in fc38553
We can add the following code:
Alternatives
We could also save the information about requests and invalid sources in Redis if that would be easier to query.
The text was updated successfully, but these errors were encountered: