Repository navigation
Clarify how dtstart and tzid interact in scheduled workflow triggers - #8351
Conversation
Add a section explaining that dtstart is read using the offset in its own timestamp while tzid governs recurrence calculation and daylight saving time, and that the run time falls back to dtstart expressed in tzid when byhour and byminute are omitted. Correct the tzid field row, which said Required: Yes while the schema defaults it to UTC. Fixes #7384. AI-Assisted: Cursor (Claude Opus 5) Co-authored-by: Cursor <[email protected]>
Elastic Docs AI PR menuCheck the box to run an AI review for this pull request.
Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team. |
🔍 Preview links for changed docs |
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
Every `/docs-review` run on this repo is currently failing, and no review is being posted. Five PRs hit it in the last few minutes (#8355, #8353, #8351, #8349, #8348). The failure is in the `activation` job, at the step `Validate ANTHROPIC_API_KEY secret`. `activation` fails, `agent` is skipped, and the run reports a green-ish mixed state while doing nothing. ## Cause The docs review workflow moved from the Copilot engine to the Claude engine via OpenRouter. Copilot ran on `copilot-requests` credits and needed no secret, so this caller never had a `secrets:` block. The Claude engine reads `${{ secrets.OPENROUTER_API_KEY }}` inside its engine env, and a reusable workflow does not inherit caller secrets unless they are passed explicitly. So the secret resolved to empty, and validation failed before the agent started. ## Fix Pass the secret through: ```yaml secrets: OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} ``` `OPENROUTER_API_KEY` already exists as a repo secret here, and `v1` declares it under `on.workflow_call.secrets`, so explicit pass-through is valid. No secret needs creating. ## Verifying Re-trigger the docs review checkbox on any open PR. The `activation` job should succeed and `agent` should run instead of being skipped. Worth checking the same block in any other repo that calls `gh-aw-docs-review.lock.yml@v1` — the same caller change is needed wherever the workflow was previously running on Copilot. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01H3vJ764kbRQMFqEtZxh42b
There was a problem hiding this comment.
Docs review summary
Criteria
- User focus: The new "Set the run time and timezone" section addresses the exact confusion reported in #7384, using a worked example (4:00 PM Chicago vs. the
Z-timestamp trap) that mirrors a real troubleshooting scenario rather than restating the field reference. - Technical accuracy: Verified against
elastic/kibanaat HEAD.scheduled_trigger_schema.tsconfirmstzidis optional and defaults to'UTC'(matches the updated table row), and'UTC'is itself a valid entry intimezone_names.ts, so the row's own example is valid.dtstartis an optional string with no default, consistent with "If you omitdtstart, the schedule starts when you save the workflow." The "Next execution" tooltip label is confirmed via theworkflows.triggers.nextExecution.tooltipi18n key. One claim could not be independently confirmed from source and is called out in Notes below. - Applicability: The content belongs on this page — it extends the existing RRule field table rather than duplicating
explore-analyze/workflows/authoring-techniques/settings.md#workflows-settings-timezone, which already coverstzid/timezoneprecedence consistently. No contradicting published content found viaelastic-docssearch. - Maintainability: Single addition to the canonical page for this topic; no duplicated explanation introduced elsewhere.
- Language: Direct, concrete, and consistent with the page's existing second-person/present-tense voice. One minor tone nit below.
- Style: Consistent with the file's existing bullet (
*) and time-formatting (4:00 PM, uppercase AM/PM) conventions. The two pre-fetched Vale findings (quote punctuation at line 93, semicolon at line 97) fall outside this diff and aren't duplicated here.
Issue satisfaction: Satisfied — the new section delivers every element #7384 asked for: the Z = UTC clarification, tzid's role in recurrence/DST, the same 4:00 PM/11:00 AM Chicago arithmetic the issue used to describe the surprise, and an explicit note calling out the pitfall.
Nits
explore-analyze/workflows/triggers/scheduled-triggers.md:153— "This is where aZtimestamp is most likely to surprise you" is more conversational than the page's otherwise neutral, informational tone. Consider a more direct phrasing (e.g., "AZtimestamp is easy to misread here:"). See voice and tone.
Notes
explore-analyze/workflows/triggers/scheduled-triggers.md:170claims the tooltip shows "Next execution... using your {{kib}} display timezone." The tooltip's i18n label and the underlying RRule next-execution calculation are confirmed inelastic/kibanasource, but the specific display-timezone formatting step wasn't locatable from source alone. This matches the uncertainty the PR author already flagged in the PR description — worth a quick manual confirmation in a running {{kib}} instance before merging.- The page has no
typefrontmatter field (pre-existing, not introduced by this PR). Not blocking for this change, but worth adding on a future pass for content-type compliance.
Generated by Docs review agent for #8351 · claude · sonnet · 211.6 AIC · ⊞ 19K
Move the recommended approach ahead of the dtstart and tzid explanation so readers who only want a fixed local time find it first. Capitalize after a colon and drop the conversational lead-in to the Z timestamp example. AI-Assisted: Cursor (Claude Opus 5.5) Co-authored-by: Cursor <[email protected]>
florent-leborgne
left a comment
There was a problem hiding this comment.
This LGTM, it does what it needs to do. I left a few comments/suggestions that may or may not be correct based on my understanding, but I overall think this section can be a little clearer to lead to correct usage. The examples help a lot, they're nice!
rosomri
left a comment
There was a problem hiding this comment.
LGTM overall, and the code confirms the tzid/dtstart explanation.
Lead with what each field controls, scope dtstart to the first run, note that later runs follow the previous run so a late start carries over, and use a dtstart in the gallery example that differs from byhour. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Break the run-time section into separate sections for running at a local time, delaying the first run with dtstart, and schedules without byhour and byminute. Move the dtstart example into its section, and add an intro to the RRule examples that explains what they show. Co-authored-by: Cursor <[email protected]>
Summary
Fixes #7384 by making the following changes:
tziddoesn't reinterpretdtstart, and whenbyhourandbyminuteare omitted the run time comes fromdtstartas it falls intzid.byhourandbyminuteas the reliable way to pin a local run time, since that also survives daylight saving changes.tzidrow in the fields table, which said Required: Yes while the schema defaults it toUTC.Preview
Every timing claim was checked by executing
@kbn/rruleagainst Kibana atHEADrather than inferred from the issue. The Next execution tooltip was verified in component source: it formats the time with thedateFormat:tzadvanced setting, which is what the page calls the Kibana display timezone. It hasn't been checked in a running Kibana. Two adjacent defects found while verifying are filed separately as #8349 and #8350 rather than fixed here.Generative AI disclosure