-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
base: 5.x-dev
Are you sure you want to change the base?
Conversation
@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! |
There was a problem hiding this 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.
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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