Skip to content
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

"Top cities driving add to cart" shows city with 0 events #10156

Open
2 tasks
zutigrm opened this issue Feb 3, 2025 · 5 comments
Open
2 tasks

"Top cities driving add to cart" shows city with 0 events #10156

zutigrm opened this issue Feb 3, 2025 · 5 comments
Labels
P1 Medium priority Team S Issues for Squad 1 Type: Bug Something isn't working

Comments

@zutigrm
Copy link
Collaborator

zutigrm commented Feb 3, 2025

Feature Description

As reported in this Asana ticket, When switching from default 28days range to 14days range, or from 90days to 14days "Top cities driving add to cart" is showing city with 0 as a value

Image

Originally reported in this Asana ticket during bug bashing


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The "Top cities driving add to cart" key metrics widget shows no cities with 0 data even when switching the date range to smaller range.

Implementation Brief

Test Coverage

  • Update the tests for tests/phpunit/integration/Modules/Analytics_4Test.php to test the new keepEmptyRows prop support on the report endpoint.
  • Update the queries of the stories and test of the updated Key Metrics widgets to ensure the stories render and tests pass.

QA Brief

Changelog entry

@zutigrm zutigrm added P1 Medium priority Team S Issues for Squad 1 Type: Enhancement Improvement of an existing feature Type: Bug Something isn't working and removed Type: Enhancement Improvement of an existing feature labels Feb 3, 2025
@zutigrm zutigrm assigned zutigrm and unassigned zutigrm Feb 3, 2025
@eugene-manuilov eugene-manuilov self-assigned this Feb 9, 2025
@eugene-manuilov
Copy link
Collaborator

Slightly rephrased AC. Moving to IB.

@eugene-manuilov eugene-manuilov removed their assignment Feb 9, 2025
@benbowler benbowler self-assigned this Feb 13, 2025
@benbowler
Copy link
Collaborator

This is a bug introduced in the Pivot report work I did which wasn't fit for purpose for Audience Segmentation, this could be a reminder to add a ticket to track removing this infrastructure now that it's unused in the codebase. @techanvil should I create a new ticket to remove Pivot reporting? I can see that #8602 is the remaining open ticket relating to this work.

@benbowler benbowler removed their assignment Feb 13, 2025
@zutigrm zutigrm self-assigned this Feb 13, 2025
@techanvil
Copy link
Collaborator

@benbowler @zutigrm hmm - careful with this one, we did historically include the option to keep empty rows before the pivot work, the line was simply moved as part of the pivot PR: #8811

Image

Image

So, I think this needs revisiting for the fix.

Ben, by all means please do file an issue to remove the support for pivot reports, though. I think we can simply close #8602.

@benbowler
Copy link
Collaborator

Thanks @techanvil I'll take it back to IB.

The goal here then would be if all rows have 0 values then the no data state should show, we might be able to achieve this by making the "keep empty rows" optional to allow for queries like this that don't need empty rows to skip them.

@benbowler benbowler assigned benbowler and zutigrm and unassigned zutigrm Feb 13, 2025
@benbowler
Copy link
Collaborator

Note that this bug is the existing behaviour across all key metric widgets and not something that has been introduced unexpectedly.

As part of this ticket I have added to the IB all Analytics Key Metrics widgets that have raw numerical results (rather than currency or percentage values) listed.

@benbowler benbowler removed their assignment Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 Medium priority Team S Issues for Squad 1 Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants