google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.25k stars 292 forks source link

Update the partial data state infrastructure to use pivot reports for audiences. #8602

Open techanvil opened 7 months ago

techanvil commented 7 months ago

Feature Description

The initial implementation of the partial data state infrastructure requests a report per audience in order to determine the date of the first event for each audience.

Once we have added support for pivot reports (see https://github.com/google/site-kit-wp/issues/8484), we can reduce the number of reports by making a single request for a pivot report to retrieve the data for all audiences.


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

Acceptance criteria

Implementation Brief

For reference see the initial implementation of *determineResourceDataAvailabilityDate() and how it calls getPartialDataReportOptions() for each audience.

Test Coverage

QA Brief

Changelog entry

techanvil commented 5 months ago

Moved to Backlog until we get all the P1 issues done and/or the initial release out.

techanvil commented 4 months ago

Note: This will need to be reviewed for viability in light of the issues with pivot reports for audiences as described in https://github.com/google/site-kit-wp/issues/8726#issuecomment-2211014589.