Skip to content

Workflows: extract Location-column schema convention into a reusable snippet#6724

Draft
benironside wants to merge 1 commit into
mainfrom
workflows-location-snippet
Draft

Workflows: extract Location-column schema convention into a reusable snippet#6724
benironside wants to merge 1 commit into
mainfrom
workflows-location-snippet

Conversation

@benironside
Copy link
Copy Markdown
Contributor

Closes #6512.

Summary

Adds a shared snippet at explore-analyze/workflows/_snippets/schema-location-legend.md that decodes the Location column used by parameter schema tables on step and trigger reference pages, and includes it on every page that has such a table.

The legend covers all three Location values:

  • top level — Alongside type and name on the step or trigger.
  • `with` — Inside the step's with: block.
  • `on` — Inside the trigger's on: block.

Background

In Nastasha Solomon's review of #6480 she asked "What is the on location?" on the cases.caseCreated schema table. That PR added an inline "Schema convention" paragraph to event-driven-triggers.md. This PR generalizes that fix: every workflow step/trigger reference page now starts with the same one-time legend, so a reader landing on any single page from search hits a clear decode before the first schema table.

Pages updated (12, plus the new snippet)

Placement is one include per page, near the top, before the first schema table. The same legend then governs every subsequent table on that page.

Spot-check

reference/cheat-sheet.md and authoring-techniques/pass-data-handle-errors.md have no Parameter | Location schema tables, so the legend doesn't apply there. No include added.

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes — Claude Opus 4.7 / Cursor
  • No

Made with Cursor

…snippet

Closes #6512.

Adds a shared snippet at explore-analyze/workflows/_snippets/schema-location-legend.md
that decodes the Location column used by parameter schema tables on
step and trigger reference pages, and includes it on every page that
has such a table.

The legend covers all three Location values:
- top level: alongside type and name on the step or trigger.
- with: inside the step's with: block.
- on: inside the trigger's on: block.

Pages updated (12, plus the new snippet):

- triggers/event-driven-triggers.md (also removes the inline
  "Schema convention" prose added in #6480, now superseded by the
  shared include).
- steps/ai-steps.md, cases.md, composition.md, data.md, kibana.md,
  loop-break.md, loop-continue.md, streams.md, switch.md,
  wait-for-input.md, while.md.

Placement is one include per page, near the top, before the first
schema table on the page. Same legend governs every subsequent table
on that page.

Spot-check: reference/cheat-sheet.md and authoring-techniques/
pass-data-handle-errors.md have no Parameter|Location schema tables,
so no include needed there.

Co-authored-by: Cursor <cursoragent@cursor.com>
@benironside benironside self-assigned this May 26, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions
Copy link
Copy Markdown
Contributor

Vale Linting Results

Summary: 3 suggestions found

💡 Suggestions (3)
File Line Rule Message
explore-analyze/workflows/steps/loop-break.md 25 Elastic.Semicolons Use semicolons judiciously.
explore-analyze/workflows/steps/loop-continue.md 18 Elastic.Negations Consider rephrasing to avoid negative constructions like 'don't meet a filter, without'. Try stating what something IS rather than what it is NOT.
explore-analyze/workflows/steps/streams.md 21 Elastic.Semicolons Use semicolons judiciously.

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.

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.

Workflows docs: extract Location-column schema convention into a reusable snippet

1 participant