Skip to content

Fix regression: Drop revenue metrics when not allowed on the dashboard#6167

Merged
RobertJoonas merged 2 commits intomasterfrom
top-stats-revenue-fix
Mar 17, 2026
Merged

Fix regression: Drop revenue metrics when not allowed on the dashboard#6167
RobertJoonas merged 2 commits intomasterfrom
top-stats-revenue-fix

Conversation

@RobertJoonas
Copy link
Contributor

Changes

Bring back the Top Stats behaviour that revenue metrics are dropped from the query (instead of returning an error) when the site owner doesn't have a sufficient subscription. The bug was introduced with the change to a new /query endpoint for top stats (#6035)

Tests

  • Automated tests have been added

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@RobertJoonas RobertJoonas force-pushed the top-stats-revenue-fix branch from cd6f8df to f224e90 Compare March 17, 2026 09:38
@RobertJoonas RobertJoonas force-pushed the top-stats-revenue-fix branch from f224e90 to 7bceaf8 Compare March 17, 2026 09:41
@github-actions
Copy link

Preview environment👷🏼‍♀️🏗️
PR-6167

1 similar comment
@github-actions
Copy link

Preview environment👷🏼‍♀️🏗️
PR-6167

@RobertJoonas RobertJoonas requested a review from aerosol March 17, 2026 10:12
Copy link
Member

@aerosol aerosol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does fail on master so I suppose it's ok? Really not sure about the flags we carry around to make decisions and what the implications can be. Approving in hope someone else will have a look too.

@RobertJoonas RobertJoonas added this pull request to the merge queue Mar 17, 2026
Merged via the queue into master with commit 4858209 Mar 17, 2026
28 of 33 checks passed
@RobertJoonas RobertJoonas deleted the top-stats-revenue-fix branch March 17, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants