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

Add a filter on api read #298

Open
peterdudfield opened this issue Nov 21, 2024 · 0 comments · May be fixed by #299
Open

Add a filter on api read #298

peterdudfield opened this issue Nov 21, 2024 · 0 comments · May be fixed by #299
Labels
good first issue Good for newcomers

Comments

@peterdudfield
Copy link
Contributor

peterdudfield commented Nov 21, 2024

Detailed Description

Add a filter that can only get or exclude strings when reading API users

Context

  • UI adds &UI to the end of all calls
  • nice to be able to split between API and UI users

Possible Implementation

  • add include filter, e.g. include_in_url = 'UI' This should default to None. If not None, query = query.filter(APIRequestSQL.url.like(f'%{include_in_url}%')
  • add exclude filter e.g. exclude_in_url = 'UI. This should default to None.
  • add to two functions, this one and this one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant