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

Update columns used for ecommerce goal pages #23121

Open
wants to merge 5 commits into
base: 5.x-dev
Choose a base branch
from
Open

Conversation

nathangavin
Copy link
Contributor

Description:

Current Ecommerce goal pages are not showing the correct data. This is addressed by adding logic to select different columns depending on the display type for the underlying report.

Addresses issue #20857

Review

@nathangavin nathangavin requested a review from a team March 13, 2025 00:23
@nathangavin nathangavin added the Needs Review PRs that need a code review label Mar 13, 2025
@michalkleiner
Copy link
Contributor

@nathangavin this looks like it could solve the issue, before a proper review can you please check if any tests need adjusting as well? At a glance there might be some. Thanks!

@sgiehl sgiehl self-assigned this Mar 14, 2025
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

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

Nice. The changes are fixing the problem with the incorrect metrics being displayed 🎉
However we should also adjust the default search filter, so it's sorted correctly.

Copy link
Member

Choose a reason for hiding this comment

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

This one is a flaky test and unrelated to this PR, so would be better not to update it here.

@@ -154,11 +154,43 @@ private function setPropertiesForEcommerceView()
$this->requestConfig->filter_sort_column = 'goal_ecommerceOrder_revenue';
Copy link
Member

Choose a reason for hiding this comment

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

I guess we need to set that based on the displaytype. 'goal_ecommerceOrder_revenue' is only shown for normal. Otherwise the order might look random.

'goal_ecommerceOrder_revenue_per_entry',
];
break;
default:
Copy link
Member

Choose a reason for hiding this comment

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

I'd move the case self::GOALS_DISPLAY_NORMAL: down here, so this is also the default. It shouldn't happen that another display type appears. But might be better to have a defined default to use.

Copy link
Member

Choose a reason for hiding this comment

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

That test started failing outside of this PR, so better not to update it here. We may need to investigate why it starting failing in a separate issue/PR.

@sgiehl sgiehl removed their assignment Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants