-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Allow goals processed metrics to appear in API.getProcessedReport output #20589
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
Conversation
@matomo-org/core-reviewers can someone take a look at this PR for the 4.X release? I need it for the Looker Studio related work I'm doing. |
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers |
…put when filter_update_columns_when_show_all_goals is set as a query parameter
… if filter_show_goal_columns_process_goals is set to a single goal. this allows using it w/ API.getProcessedReport, w/o having to specify idGoal, which will end up being used in the search for report metadata
…show_all_goals is present in report metadata actions
75f09e7
to
cd02b57
Compare
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.
Should be good to merge if tests are passing now.
Description:
Changes:
filter_update_columns_when_show_all_goals
is supplied, and only one goal is supplied infilter_show_goal_columns_process_goals
, use that goal as the default value foridGoal
. This allows us to usefilter_update_columns_when_show_all_goals
w/oidGoal
. Which is necessary for processed reports since ifidGoal
is supplied, the code that searches for report metadata will try to match the report metadata$parameters
w/['idGoal' => ...]
, which won't work for non-Goals reports.<metricTypesGoal>
so metric types can be specified for<metricsGoal>
and<processedMetricsGoal>
.filter_update_columns_when_show_all_goals
andfilter_show_goal_columns_process_goals
as parameters so they will be forwarded to API methods in tests.conversion_rate
from API report metadata if filter_update_columns_when_show_all_goals is present in report metadata actions.Review