Skip to content

Clarify how dtstart and tzid interact in scheduled workflow triggers - #8351

Merged
nastasha-solomon merged 10 commits into
mainfrom
docs-issue-7384-tzid-dtstart
Oct 28, 2026
Merged

nastasha-solomon merged 10 commits into
mainfrom
docs-issue-7384-tzid-dtstart

Conversation

@nastasha-solomon

@nastasha-solomon nastasha-solomon commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #7384 by making the following changes:

  • Adds a "Set the run time and timezone" section explaining why a scheduled trigger can run at an unexpected hour: tzid doesn't reinterpret dtstart, and when byhour and byminute are omitted the run time comes from dtstart as it falls in tzid.
  • Leads with setting byhour and byminute as the reliable way to pin a local run time, since that also survives daylight saving changes.
  • Corrects the tzid row in the fields table, which said Required: Yes while the schema defaults it to UTC.

Preview

  • Scheduled triggers - New section between the RRule fields table and the examples gallery, reproducing the 11:00 AM versus 4:00 PM Chicago case from the issue. No version scoping, since this describes behavior across everything the page already covers.

Every timing claim was checked by executing @kbn/rrule against Kibana at HEAD rather than inferred from the issue. The Next execution tooltip was verified in component source: it formats the time with the dateFormat:tz advanced 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

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes - Claude Opus 5 and Claude Opus 5.5, via Cursor

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]>
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

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

@nastasha-solomon nastasha-solomon self-assigned this Sep 17, 2026
@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

🔍 Preview links for changed docs

@github-actions

github-actions Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

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

github-merge-queue Bot pushed a commit that referenced this pull request Sep 20, 2026
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

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/kibana at HEAD. scheduled_trigger_schema.ts confirms tzid is optional and defaults to 'UTC' (matches the updated table row), and 'UTC' is itself a valid entry in timezone_names.ts, so the row's own example is valid. dtstart is an optional string with no default, consistent with "If you omit dtstart, the schedule starts when you save the workflow." The "Next execution" tooltip label is confirmed via the workflows.triggers.nextExecution.tooltip i18n 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 covers tzid/timezone precedence consistently. No contradicting published content found via elastic-docs search.
  • 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 a Z timestamp is most likely to surprise you" is more conversational than the page's otherwise neutral, informational tone. Consider a more direct phrasing (e.g., "A Z timestamp is easy to misread here:"). See voice and tone.

Notes

  • explore-analyze/workflows/triggers/scheduled-triggers.md:170 claims the tooltip shows "Next execution... using your {{kib}} display timezone." The tooltip's i18n label and the underlying RRule next-execution calculation are confirmed in elastic/kibana source, 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 type frontmatter 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

nastasha-solomon and others added 3 commits September 24, 2026 15:05
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]>
@nastasha-solomon
nastasha-solomon marked this pull request as ready for review September 25, 2026 20:32
@nastasha-solomon
nastasha-solomon requested a review from a team as a code owner September 25, 2026 20:32

@florent-leborgne florent-leborgne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 rosomri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, and the code confirms the tzid/dtstart explanation.

nastasha-solomon and others added 4 commits October 28, 2026 15:21
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]>
@nastasha-solomon
nastasha-solomon added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 9654347 Oct 28, 2026
13 checks passed
@nastasha-solomon
nastasha-solomon deleted the docs-issue-7384-tzid-dtstart branch October 28, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Security][Workflows][9.x & Serverless] Document how tzid interacts with dtstart for scheduled workflow triggers

3 participants