Repository navigation
fix: filter zero-visit platforms from traffic breakdown - #616
Merged
Merged
Conversation
Platforms that only existed in the previous period were appearing with visits=0 in the current period's platformBreakdown, inflating the Platforms KPI and showing 0-visit rows in the table. The chart already filtered these out, so this adds a matching filter to the data action to keep KPI, table, and chart consistent. Closes #606.
There was a problem hiding this comment.
Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.
In the meantime, two things that make review faster:
- A short description of why the change matters, not just what it does — most of our PRs link a
Fixes #...to the issue that explains the why. - A quick local test note if there's anything worth eyeballing in the browser.
If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.
gkhngyk
approved these changes
Aug 3, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Exactly the right one-line fix — keeps the union for deltas and drops the zero rows from the response. Thanks, and welcome!
7 tasks done
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #606. Platforms that only existed in the previous period were appearing with visits=0 in the current period's platformBreakdown, inflating the Platforms KPI and showing 0-visit rows in the table. The chart already filtered these out, so this adds a matching filter to the data action to keep KPI, table, and chart consistent. All tests pass.