Skip to content

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

Merged
merged 7 commits into from
May 12, 2023

Conversation

diosmosis
Copy link
Member

@diosmosis diosmosis commented Apr 14, 2023

Description:

Changes:

  • In DataTablePostProcessor.php, if filter_update_columns_when_show_all_goals is supplied, and only one goal is supplied in filter_show_goal_columns_process_goals, use that goal as the default value for idGoal. This allows us to use filter_update_columns_when_show_all_goals w/o idGoal. Which is necessary for processed reports since if idGoal 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.
  • In Goals, add a new metadata output property <metricTypesGoal> so metric types can be specified for <metricsGoal> and <processedMetricsGoal>.
  • In DocumentationGenerator.php, add filter_update_columns_when_show_all_goals and filter_show_goal_columns_process_goals as parameters so they will be forwarded to API methods in tests.
  • Fix existing tests that were not accurate due to the above change.
  • Do not remove conversion_rate from API report metadata if filter_update_columns_when_show_all_goals is present in report metadata actions.

Review

@diosmosis diosmosis marked this pull request as draft April 14, 2023 06:32
@diosmosis diosmosis changed the title allow goals processed metrics to appear in API.getProcessedReport out… allow goals processed metrics to appear in API.getProcessedReport output Apr 15, 2023
@diosmosis diosmosis changed the title allow goals processed metrics to appear in API.getProcessedReport output [LookerStudio[ allow goals processed metrics to appear in API.getProcessedReport output Apr 15, 2023
@diosmosis diosmosis changed the title [LookerStudio[ allow goals processed metrics to appear in API.getProcessedReport output [LookerStudio] allow goals processed metrics to appear in API.getProcessedReport output Apr 15, 2023
@diosmosis diosmosis changed the title [LookerStudio] allow goals processed metrics to appear in API.getProcessedReport output allow goals processed metrics to appear in API.getProcessedReport output Apr 15, 2023
@diosmosis diosmosis added this to the 4.14.x milestone Apr 15, 2023
@diosmosis diosmosis added the Needs Review PRs that need a code review label Apr 15, 2023
@diosmosis diosmosis marked this pull request as ready for review April 15, 2023 04:50
@diosmosis
Copy link
Member Author

@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.

@github-actions
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Apr 23, 2023
diosmosis added 6 commits May 11, 2023 15:06
…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
@sgiehl sgiehl force-pushed the goal-processed-metrics-processed-report branch from 75f09e7 to cd02b57 Compare May 11, 2023 13:06
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.

Should be good to merge if tests are passing now.

@sgiehl sgiehl merged commit 4b161d9 into 4.x-dev May 12, 2023
@sgiehl sgiehl deleted the goal-processed-metrics-processed-report branch May 12, 2023 08:53
@sgiehl sgiehl changed the title allow goals processed metrics to appear in API.getProcessedReport output Allow goals processed metrics to appear in API.getProcessedReport output Jul 5, 2023
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 Stale The label used by the Close Stale Issues action
Development

Successfully merging this pull request may close these issues.

2 participants