Skip to content

docs: rework data views intro and split into a section (#7502) - #7723

Open
florent-leborgne wants to merge 19 commits into
mainfrom
docs-issue-7502-data-views-reorg
Open

docs: rework data views intro and split into a section (#7502)#7723
florent-leborgne wants to merge 19 commits into
mainfrom
docs-issue-7502-data-views-reorg

Conversation

@florent-leborgne

@florent-leborgne florent-leborgne commented Aug 4, 2026

Copy link
Copy Markdown
Member

Summary

This PR addresses #7502, and goes beyond its literal scope: while reviewing the page for content-type alignment (part of the issue's ask), it became clear the single 700+ line page mixed overview, how-to, and heavy reference content. Rather than a light touch-up, this splits Data views into a section: one overview page plus child pages by content type, following the same pattern already used for Dashboards and Cases.

  • explore-analyze/find-and-organize/data-views.md: Short overview. Explains how a data view is created (automatically or by you), then documents managed data views in their own section so that restriction is stated once. Fleet-installed data views are called out as managed. Keeps a one-line stub with the management-cross-cluster-search anchor, because Kibana still links to data-views.md#management-cross-cluster-search.
  • data-views/create-data-view.md (new, how-to): saved create path (Create a data view in Discover/Lens, Create data view on the Data Views management page) and the temporary path (Use without saving, Discover/Lens only). The intro lists those two options. Index pattern matching lives on this page under What the index pattern matches, with a short options list linking to: data in this cluster or project; data in another cluster; data in another project; rolled-up data last. There is no separate search-syntax page. Page headings have no H1 ids.
  • data-views/delete-data-view.md (new, how-to): the delete workflow. Lists the Data View Management and view_index_metadata privileges on the page. Managed-data-view deletion is tagged and links back to the overview.
  • data-views/duplicate-data-view.md (new, how-to): general duplicate-a-data-view guide. Duplication isn't managed-only in the product. The managed read-only restriction is one reason to duplicate.
  • data-views/customize-data-view-fields.md (new, overview hub): short grouping page. Each item says what the child page is; deprecation for scripted fields lives on that child page, not in the hub list.
  • data-views/runtime-fields.md: create-field steps match the current form (Set custom label, Set custom description, Set format optional; Save). Hello World example screenshot replaced. Sample web logs links to Sample data.
  • data-views/scripted-fields.md: titled Scripted fields. Page-level stack: deprecated / serverless: unavailable (scripted fields are off in serverless). How-to heading is Manage existing scripted fields.
  • data-views/field-formatters.md, data-views/data-view-field-cache.md: moved existing content. Formatter name Url is in code style (Kibana title is 'Url').
  • explore-analyze/toc.yml: nested navigation under Data views.
  • redirects.yml: published data-views.md section ids map onto the child pages. Ids that became page titles redirect with no hash. Nested section ids that still exist on a child keep their fragment. The overview keeps management-cross-cluster-search for the in-product Kibana link.
  • Other files across docs-content: internal links that pointed at anchors now living on a child page are updated to point at the new file directly.

Editorial and accuracy pass

Verified against Kibana origin/main. Corrections included:

  • Removed informal phrasing ("how you end up with"), em dashes, and stacked warnings.
  • Dropped ML data frame analytics from the automatic-creation list. DFA prompts you to create a data view. It does not create one for you.
  • File upload creates a data view only when Create data view is turned on.
  • Read only badge: the create control is unavailable (disabled), not hidden.
  • Create form exists on the Data Views management page as Create data view, in addition to Create a data view in Discover and Lens.
  • Use without saving appears only in Discover and Lens.
  • Url formatter: width and height apply to Image, not Link. String transforms use the UI labels (Lower Case, Short Dots, Base64 Decode, and so on). Color control is Add color.
  • Field list refresh control is Refresh.
  • Maps troubleshooting now links to the data views overview, not the field-formatters page (that page does not cover field types or refresh).
  • Managed-deletion restriction is stack: ga 9.4 (shipped in 9.4.2, Disallow deletion of managed data views in Stack Management UI kibana#270608). Duplicate-for-managed is stack: ga 9.2.
  • Scripted fields: stack: deprecated, serverless: unavailable (scriptedFieldsEnabled defaults to false on serverless).

Screenshots to add or update

  • Updated in this PR: explore-analyze/images/kibana-runtime_field.png (Create field flyout for the Hello World runtime field example).
  • Still using older shots that may need a pass: Discover data view menu, create form, Use without saving GIF, Manage this data view.

Resolves

Closes #7502


AI-generated draft. Created with Claude Sonnet 5. Editorial and accuracy pass with Cursor Grok 4.6.
Review all generated content for factual accuracy before merging.

Splits the single data-views.md page into an overview plus 9 child
pages by content type (how-to, reference), and reworks the intro to
explain the three ways a data view comes to exist: created for you,
created by you, and managed by Elastic. De-duplicates the managed
data view explanation, which was previously repeated in three places,
into one authoritative location on the overview page.
@github-actions

github-actions Bot commented Aug 4, 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.

docs-builder doesn't register custom [id] anchors on a page's H1
heading for cross-file linking, only on H2+. The split moved several
sub-headings to become new pages' H1s, breaking links that used their
old anchor fragment. Drop those fragments (the whole target page is
now the content) and restore an H2-level anchor on the overview page
for the one cross-repo (Kibana) backlink to the old CCS/CPS/rollup
section, which a docs-content-only search couldn't have surfaced.
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Aug 4, 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.

The String-transformations list and the Url field formatter
explanation were each repeated verbatim 3-4 times across the String,
Date, Geographic point, and Number sections (already flagged during
review as worth consolidating). Move each into a single shared
subsection that the per-type sections link to. This also resolves the
Elastic.Spelling flags on the page, which only fire with docs-content's
Elastic.Spelling override enabled (not on by default upstream) and
were a symptom of the duplication rather than a wording problem.
Both lines already changed in this branch to strip a broken anchor
fragment; clean up the pre-existing 'just' and 'may' Vale flags that
shared those same lines while we're here.

@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

Focus areas

  • Style and clarity: No new issues found beyond the pre-fetched Vale findings, which are all pre-existing (not on changed lines) or minor (e.g., may, ellipsis).
  • Jargon: No unexplained internal jargon introduced in the reviewed changes.
  • Frontmatter and applies_to: All 9 new/split pages have complete description, applies_to, and products frontmatter. Descriptions are unique, plain-text, and within length limits.
  • Content type fit: The split matches the declared how-to/reference/overview patterns well (Before you begin, success checkpoints, Related pages present on how-tos; reference pages avoid procedural steps).
  • Contradictions: 1 found (1 local) — see inline comment on solutions/security/detect-and-alert/detection-rule-concepts.md.
  • Parent issue satisfaction: Satisfied — the split addresses #7502's ask for a clearer overview and offloads reference/how-to content into dedicated pages, consistent with the Dashboards/Cases pattern.

Notes

  • The inline comment flags a factual regression introduced alongside this PR's link-fix pass in detection-rule-concepts.md: the rewritten API key section drops the Stack-vs-Serverless (Elasticsearch API key vs. Elastic Cloud API key) distinction and removes the link to the dedicated Serverless migration/troubleshooting page, which published docs confirm describe a materially different mechanism. This looks like scope creep beyond the anchor-link fix mentioned in the PR description for that file.
  • The 13 anchor-link updates in other files were spot-checked against the new pages' actual heading IDs (e.g., data-view-search-syntax.md#management-cross-cluster-search, duplicate-data-view.md, runtime-fields.md, field-formatters.md) and all resolve correctly.

Generated by Docs review agent for #7723 · sonnet50 · 132 AIC · ⌖ 6.66 AIC · ⊞ 17.1K

Comments that could not be inline-anchored

solutions/security/detect-and-alert/detection-rule-concepts.md:93

This rewrite drops the Stack-vs-Serverless API key distinction that was in the original text and removes the link to Rules and Elastic Cloud API keys in Serverless.

Published docs (/docs/explore-analyze/alerting/alerts/rules-and-elastic-cloud-api-keys) confirm the two mechanisms are different: Stack deployments use Elasticsearch API keys, while Serverless rules use Elastic Cloud API keys, which behave differently…

florent-leborgne and others added 3 commits August 14, 2026 18:48
Rewrite the overview and child pages to match house style, verify UI strings and auto-create behavior against Kibana at HEAD, and put managed-data-view rules in one place.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
florent-leborgne and others added 3 commits August 14, 2026 20:05
The standalone search-syntax page named a query-language task that did not exist. Matching belongs with create, as use cases under one heading, with rollup last.

Co-authored-by: Cursor <cursoragent@cursor.com>
docs-builder treats the page heading as the document, not an in-page fragment, so remapping settings-create-pattern onto itself failed the build.

Co-authored-by: Cursor <cursoragent@cursor.com>
Page headings are the document, not fragments. Old section ids that became pages now redirect to the page with no hash.

Co-authored-by: Cursor <cursoragent@cursor.com>
florent-leborgne and others added 5 commits August 14, 2026 20:30
… heading

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
… create

Co-authored-by: Cursor <cursoragent@cursor.com>
…create-field form

Co-authored-by: Cursor <cursoragent@cursor.com>
florent-leborgne and others added 3 commits August 14, 2026 20:56
… the title

Deprecation stays on the scripted fields page, where the recommendation to use runtime fields or ES|QL already lives.

Co-authored-by: Cursor <cursoragent@cursor.com>
…ripted fields

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…verless

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Rework the data views page intro to explain automatic, manual, and managed data views

1 participant