-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
fix(widget-builder): Aggregates with no column not wiped #83410
fix(widget-builder): Aggregates with no column not wiped #83410
Conversation
parameter.value ?? ('defaultValue' in parameter && parameter?.defaultValue) ?? '', | ||
currentValue ?? ('defaultValue' in parameter && parameter?.defaultValue) ?? '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also snuck in this change. I realized that when I would update the value in count_if(transaction.duration,equals,300)
, the text field wouldn't update and this is why
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Take the following scenario: - Choose the transaction dataset - select `transaction.duration` (i.e. set aggregate to None, set `transaction.duration` in the column field) - update the aggregate to `count()` The request is being made with `count(transaction_duration)` which shouldn't happen. I added a validate parameter helper that checks the parameter type, validates it, and if it's not valid then set it to the default value.
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Take the following scenario:
transaction.duration
(i.e. set aggregate to None, settransaction.duration
in the column field)count()
The request is being made with
count(transaction_duration)
which shouldn't happen. I added a validate parameter helper that checks the parameter type, validates it, and if it's not valid then set it to the default value.