Skip to content

Update dashboard to include data for current day #10664

@aaemnnosttv

Description

@aaemnnosttv

Feature Description

Site Kit is inherently limited in the freshness of the data it can display by the underlying services that provide it. Initially, this was 2 days old for Search Console and 1 day for Analytics and AdSense. Since v2 of the Search Console API however, we were able to have all services aligned on a 1 day (yesterday) cutoff. Fast-forward to today, and with the latest announcement from the Search Console team, all of these services now support intra-day freshness from the reporting APIs!


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

Acceptance criteria

  • All report requests should be updated such that the end date of the date range is the current day

Implementation Brief

  • Update all module DATE_RANGE_OFFSET constants to 0
  • Update failing tests with hard-coded dates to use getDateRangeDates selector where possible
    • Where selectors are not available, update hard coded values

Test Coverage

  • No additions or subtractions
  • Will likely need to regenerate many VRT reference images

QA Brief

  • Keep your developer tools open with network log recording turned on.
  • Set up the latest version of Site Kit with Analytics, AdSense, and Ads modules.
  • Open the Site Kit dashboard.
  • In a new browser tab, switch to the develop branch (where the changes made here are present).
  • Observe the payload of the report requests made and ensure that the endDate of the requests is the current date, whereas in the latest version, the endDate is the previous day.
  • Compare the data in the two tabs and notice that there may be a slight difference as the data for the current day is taken into account.
  • Ensure that Site Kit functions well otherwise without any unexpected errors.

Changelog entry

  • Update reports to include data for the current day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module: AdSenseGoogle AdSense module related issuesModule: AnalyticsGoogle Analytics module related issuesModule: Search ConsoleSearch Console module related issuesP1Medium priorityTeam MIssues for Squad 2Type: EnhancementImprovement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions