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

Arithmetic operators are removed from Dashboard query builder formulas #6274

Closed
al-mcintosh opened this issue Oct 25, 2024 · 1 comment · Fixed by #6276
Closed

Arithmetic operators are removed from Dashboard query builder formulas #6274

al-mcintosh opened this issue Oct 25, 2024 · 1 comment · Fixed by #6276

Comments

@al-mcintosh
Copy link

Bug description

Please describe.
If this affects the front-end, screenshots would be of great help.

In the Dashboard query builder, if a formula contains brackets with arithmetic operators A / (A + B) the arithmetic operators are removed if you later edit the Panel Details leaving you with an invalid expression: A / (A B)

Expected behavior

How to reproduce

  1. Create a Dashboard Panel
  2. Include a formula A / (A + B)
  3. Save Changes.
  4. Edit Panel and notice the error API responded with 400 - invalid expression A / (A B) : Cannot transition token types from VARIABLE [A] to VARIABLE [B] status: error
  5. Notice that the + is missing.

Version information

  • Signoz version: v0.56.0
  • Browser version: Chrome / 130.0.6723.59 (Official Build) (arm64)
  • Your OS and version: MAC
  • Your CPU Architecture(ARM/Intel):

Additional context

Thank you for your bug report – we love squashing them!

@vikrantgupta25
Copy link
Member

hey @al-mcintosh thanks for reporting the issue. we have identified the issue and will release the fix soon!

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 a pull request may close this issue.

2 participants