Skip to content

Switch wpt metric to be test_counts view by default#1240

Merged
jcscottiii merged 3 commits intomainfrom
jcscottiii/change-wpt-metric-default
Mar 5, 2025
Merged

Switch wpt metric to be test_counts view by default#1240
jcscottiii merged 3 commits intomainfrom
jcscottiii/change-wpt-metric-default

Conversation

@jcscottiii
Copy link
Collaborator

This commit changes the default behavior for wpt_metric_view for:

  • /v1/features
  • /v1/features/{featureid}

This change will retrieve the WPT metrics as if view=test on wpt.fyi instead of the current behavior of view=subtest

On the frontend, allow the feature page (and chart panel) to configure which metric view to use by reading the wpt_metric_view query parameter. We already do this on the overview page.

Add tests to assert the default behavior as well as behavior when explicitly setting the query parameter.

Other changes:

  • Modified the Go unit tests so that the default behavior uses TestCounts and the optional cases use SubtestCounts

Fixes #1107

This commit changes the default behavior for wpt_metric_view for:
- /v1/features
- /v1/features/{featureid}

This change will retrieve the WPT metrics as if view=test on wpt.fyi instead of the current behavior of view=subtest

On the frontend, allow the feature page (and chart panel) to configure which metric view to use by
reading the wpt_metric_view query parameter. We already do this on the overview page.

Add tests to assert the default behavior as well as behavior when explicitly setting the query parameter.
@jcscottiii jcscottiii requested review from KyleJu and jrobbins March 5, 2025 16:10
@jcscottiii jcscottiii added this pull request to the merge queue Mar 5, 2025
Merged via the queue into main with commit eebba80 Mar 5, 2025
6 checks passed
@jcscottiii jcscottiii deleted the jcscottiii/change-wpt-metric-default branch March 5, 2025 16:40
@jcscottiii jcscottiii mentioned this pull request Mar 12, 2025
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 this pull request may close these issues.

Investigate switching the default to test_counts

2 participants