Skip to content

fix(email-service): keep the Email Routing GraphQL tutorial dates within retention #36034

In review

Description

@coygeek

Existing documentation URL(s)

What changes are you suggesting?

Explain how to choose and replace both time bounds in each command with timestamps inside the 31-day retention window. Correct datetime_geg to datetime_geq in the activity-log instructions and identify historical output as illustrative.

Additional information

Summary

Both shell examples in the Email Routing GraphQL tutorial use a fixed historical interval beyond the Email Service datasets’ 31-day retention. One example refers to a misspelled filter in its setup instructions, and the other gives no directions for choosing query dates.

Steps to reproduce

  1. Open the published Email Routing GraphQL tutorial and inspect the variable values in the Activity logs API call and Analytics API Call commands.
  2. Compare both date ranges to the retention documented for the corresponding Email Routing event and aggregate datasets.
  3. Compare the lower-bound name in the first setup paragraph with the actual JSON variable keys. This check only compares published instructions and their matching source. No GraphQL requests are required.

Expected behavior

Readers should be able to prepare both tutorial queries with timestamps within the documented retention period. The setup should refer to the exact filter names in the copied commands.

Actual behavior

Both commands use the interval from 2026-01-18T11:00:00Z through 2026-01-19T11:00:00Z. The lower and upper endpoints are outside the documented 31-day window. The first setup paragraph names datetime_geg while the command uses datetime_geq. The grouped command uses datetimeHour_geq and datetimeHour_leq with the same expired values, and its setup does not say that both values must be changed. The published Markdown and its production source contain the same inputs.

Evidence

  • Expected source: Email Service metrics and analytics, Metrics lists both routing datasets and their retention.
  • Failure source: The tutorial linked above and its production source in src/content/docs/analytics/graphql-api/tutorials/querying-email-routing.mdx under the two API call headings.
  • Evidence provenance: observed
  • Local verification: reproduced
  • Reproduction completeness: complete

Restoration check

A reader following either command can tell which values to provide and construct a retained interval after the page has been live for more than one retention period. Check that each lower-bound field name in the instructions matches its command and that the sample result is identified as illustrative if it depicts an earlier interval.

Runtime or environment

Cloudflare Developer Docs, production revision cd5bf82ac1d0d34fe13997eb15c6727b498cd926. The public page and production source both show the same issue.

Triage assessment

  • Impact level: P2
  • Assessment status: supported
  • Impact basis: The documented retention window excludes the historical records shown in the tutorial. A copy-and-paste test can therefore mislead a user validating routing or configuring a migration monitor.
  • Workaround status: available
  • Workaround basis: Replace both bounds with current timestamps within the last 31 days, using the filter names in the command. This corrects the observed date defect without requiring a product change.

References

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions