Repository navigation
feat(dashboards): Add performance_score and opportunity_score to Explore - #112146
Merged
DominikB2014 merged 9 commits intoApr 14, 2026
Conversation
… and Explore Use dropdown parameter definitions from AGGREGATIONS for performance_score and opportunity_score in EAP_AGGREGATIONS, so the widget builder correctly restricts column selection to measurements.score.* fields. Also adds the dropdown check before the SPANS/LOGS early return in getColumnOptions, and narrows the Explore visualize field filter to only these two functions. Refs DAIN-1451 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Scope the argument validation in updateVisualizeAggregate to only performance_score and opportunity_score, matching the narrowing already done in useVisualizeFields. Avoids applying the function-type columnTypes check to unrelated aggregates like avg, sum, p50-p100. Refs DAIN-1451 Co-Authored-By: Claude Opus 4.6 <[email protected]>
…nique When switching from count_unique or no-argument aggregates to performance_score or opportunity_score, use the function's own defaultValue (measurements.score.total) instead of the generic DEFAULT_VISUALIZATION_FIELD (span.duration). Refs DAIN-1451 Co-Authored-By: Claude Opus 4.6 <[email protected]>
The dropdown kind check was accidentally removed from the non-SPANS/LOGS code path in getColumnOptions. Restore it so that functions with dropdown parameters (like count_if conditions) continue to work on Errors and Transactions datasets. Refs DAIN-1451 Co-Authored-By: Claude Opus 4.6 <[email protected]>
…lt-score-labels-and-explore-dropdown
When switching from aggregates with empty arguments (e.g., count()) to performance_score or opportunity_score, the oldArguments?.length check was falsy for empty arrays, skipping the score validation and producing an invalid function call with missing required arguments. Restructure the check to handle score functions first, falling back to defaults when no old arguments exist. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a09219e. Configure here.
DominikB2014
marked this pull request as ready for review
April 13, 2026 16:54
nsdeschenes
approved these changes
Apr 13, 2026
nsdeschenes
left a comment
Contributor
There was a problem hiding this comment.
All looks good to me 👍
DominikB2014
deleted the
dominikbuszowiecki/dain-1451-update-prebuilt-score-labels-and-explore-dropdown
branch
April 14, 2026 14:35
3 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Remove the
equation|prefix fromperformance_scoreandopportunity_scorein prebuilt dashboard configs and register them as first-class aggregation functions in the Explore view. This makes "Open in Explore" from dashboards work correctly for widgets using these functions.Dashboards
Explore
Monitors
Changes:
opportunity_scoretoAggregationKeyenum andAGGREGATION_FIELDS/AGGREGATIONSperformance_scoreandopportunity_scoretoALLOWED_EXPLORE_VISUALIZE_AGGREGATES(placed at the bottom)measurements.score.*fields viavalidateAllowedColumnsequation|prefix from all prebuilt dashboard configs (webVitals, pageDetails, frontendOverview, nextJsOverview)'score'toisLegalYAxisTypeso these functions aren't filtered out of Y-axis optionsupdateVisualizeAggregateanduseVisualizeFieldsso Explore respects the allowed values when selecting or switching to these functionsRefs DAIN-1451