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

Line filters: Validation #989

Open
1 task
gtk-grafana opened this issue Jan 9, 2025 · 0 comments
Open
1 task

Line filters: Validation #989

gtk-grafana opened this issue Jan 9, 2025 · 0 comments
Labels
epic For issues made up of other issues
Milestone

Comments

@gtk-grafana
Copy link
Contributor

gtk-grafana commented Jan 9, 2025

In #963, we introduced regex in line-filters.
Can we validate the users input better?

See: #963 (comment)

Frontend validation:
Regex validation:

  • Using JS RegExp would be easy, but not technically valid.
  • RE2 parsers for JS exist, but they are heavy
  • Backticks are always invalid

Backend validation:
Can we run an instant query or something fast to use Loki to validate?

Needs some investigation.

@gtk-grafana gtk-grafana added the epic For issues made up of other issues label Jan 9, 2025
@gtk-grafana gtk-grafana added this to the 1.0.6 milestone Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic For issues made up of other issues
Projects
None yet
Development

No branches or pull requests

1 participant