Skip to content

Conversation

@bountx
Copy link
Contributor

@bountx bountx commented Nov 20, 2025

Related Issue(s):

Description:

Created query validation to return bad request 400 on requests with parameters not existent in any queryables without unnecessary searching (optional: turned off by default - turned on by environment variable VALIDATE_QUERYABLES).

To do that PR also introduces local caching system (global variable _queryables_cache_instance: QueryablesCache) that collects a set of queryables parameters from all the collections and updates it hourly by default (set with environment variable QUERYABLES_CACHE_TTL in seconds - default to 3600, 1 hour).

PR Checklist:

  • Code is formatted and linted (run pre-commit run --all-files)
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable
  • Changes are added to the changelog

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.

1 participant