Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Consolidates drilldown pages #82081

Merged
merged 11 commits into from
Nov 10, 2020
Merged

Conversation

KOTungseth
Copy link
Contributor

Summary

  • Consolidates the drilldowns pages.
  • Adds a table for the supported panels

Checklist

Delete any items that are not applicable to this PR.

  • Documentation was added for features that require explanation or tutorials

@KOTungseth KOTungseth added Team:Docs release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Oct 29, 2020
@KOTungseth KOTungseth self-assigned this Oct 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-docs (Team:Docs)

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

Drilldowns editor UI points to different section of docs
https://github.com/elastic/kibana/blob/master/src/core/public/doc_links/doc_links_service.ts#L41

  • Drilldowns in general
  • Explanation of triggers
  • Help for URL templating language
  • URL variables reference

We also need to update the links to point to right place in a new structure.

docs/user/dashboard/drilldowns.asciidoc Outdated Show resolved Hide resolved
docs/user/dashboard/drilldowns.asciidoc Outdated Show resolved Hide resolved
Copy link

@hendry-lim hendry-lim left a comment

Choose a reason for hiding this comment

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

nit: there is spacing inconsistency on line 46:

{{ date event.from “YYYY MM DD”}} +

should be
{{date event.from “YYYY MM DD”}} +

@@ -240,7 +150,7 @@ For example, `{{context.panel.filters}}` are previewed with the current filters
*Event* variables are extracted during drilldown execution from a user interaction with a panel (for example, from a pie slice that the user clicked on).

Because there is no user interaction with a panel in preview, there is no interaction context to use in a preview.
To work around this, {kib} provides a sample interaction that relies on a picked <<trigger-picker, trigger>>.
To work around this, {kib} provides a sample interaction that relies on a trigger.
So in a preview, you might notice that `{{event.value}}` is replaced with `{{event.value}}` instead of with a sample from your data.

Choose a reason for hiding this comment

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

{{event.value}} is replaced with {{event.value}}

These two look the same. Are they supposed to reference different variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

This section explains that we don't have a sample data from a chart to make a proper replacement of {{event.*}} in preview. So in preview {{event.value}} variable is literally propagated as is: {{event.value}} -> {{event.value}}.
We will revise this limitation in future releases. Not sure how to explain this clearer in docs now..

@KOTungseth KOTungseth changed the title [DOCS] Consolidated drilldown pages [DOCS] Consolidates drilldown pages Nov 5, 2020
@KOTungseth KOTungseth requested a review from a team as a code owner November 5, 2020 18:02
docs/user/dashboard/drilldowns.asciidoc Outdated Show resolved Hide resolved
src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@pgayvallet pgayvallet left a comment

Choose a reason for hiding this comment

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

LGTM for platform changes. Did not check the links validity (see https://github.com/elastic/kibana/pull/82081/files#r518631838)

KOTungseth and others added 2 commits November 6, 2020 08:55
Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

LGTM, couple more thoughts below

src/core/public/doc_links/doc_links_service.ts Outdated Show resolved Hide resolved
[[url-drilldown]]
=== URL drilldown
[[url_templating-language]]
=== URL templating language
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we call this just URL templating instead of URL templating language as this page has information not only about language/syntax, but on variables and various helpers also?

Copy link
Contributor

Choose a reason for hiding this comment

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

This page now also includes a section about disabling url drilldown feature which doesn't fall into URL templating :(
https://kibana_82081.docs-preview.app.elstc.co/guide/en/kibana/master/url_templating-language.html#disable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch! I moved around some content, and now it fits nicely on the first page. Let me know what you think!

@KOTungseth
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

One nit, I don't think it's crucial because that content is a paragraph below:

drilldownsTriggerPicker: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/url-drilldown.html#trigger-picker`,
urlDrilldownTemplateSyntax: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/url-drilldown.html#templating`,
urlDrilldownVariables: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/url-drilldown.html#variables`,
drilldownsTriggerPicker: `${ELASTIC_WEBSITE_URL}guide/en/kibana/${DOC_LINK_VERSION}/drilldowns.html#supported-drilldowns`,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think with last restructure, it would make more sense to link to https://kibana_82081.docs-preview.app.elstc.co/guide/en/kibana/master/drilldowns.html#url-drilldown (this is where we explain triggers)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
core 547.1KB 547.1KB +5.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@KOTungseth KOTungseth merged commit 1b86d79 into elastic:master Nov 10, 2020
@KOTungseth KOTungseth deleted the docs/drilldows branch November 10, 2020 15:11
KOTungseth added a commit to KOTungseth/kibana that referenced this pull request Nov 10, 2020
* [DOCS] Consolidated drilldowns

* Review comments pt 1

* Update docs/user/dashboard/drilldowns.asciidoc

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes supported drilldowns link

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes rogue disable section and fixes intro formatting

* Fixes URL drilldown link

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/user/dashboard/url-drilldown.asciidoc
KOTungseth added a commit to KOTungseth/kibana that referenced this pull request Nov 10, 2020
* [DOCS] Consolidated drilldowns

* Review comments pt 1

* Update docs/user/dashboard/drilldowns.asciidoc

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes supported drilldowns link

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes rogue disable section and fixes intro formatting

* Fixes URL drilldown link

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/user/dashboard/url-drilldown.asciidoc
phillipb added a commit to phillipb/kibana that referenced this pull request Nov 10, 2020
…kibana into bootstrap-node-details-overlay

* 'bootstrap-node-details-overlay' of github.com:phillipb/kibana: (49 commits)
  [Security Solution] Fix DNS Network table query (elastic#82778)
  [Workplace Search] Consolidate groups routes (elastic#83015)
  Adds cloud links to user menu (elastic#82803)
  [Security Solution][Detections] - follow up cleanup on auto refresh rules (elastic#83023)
  [App Search] Added the log retention panel to the Settings page (elastic#82982)
  [Maps] show icon when layer is filtered by time and allow layers to ignore global time range (elastic#83006)
  [DOCS] Consolidates drilldown pages (elastic#82081)
  [Maps] add on-prem EMS config (elastic#82525)
  migrate i18n mixin to KP (elastic#81799)
  [bundle optimization] fix imports of react-use lib (elastic#82847)
  [Discover] Add metric on adding filter (elastic#82961)
  [Lens] Performance refactoring for indexpattern fast lookup and Operation support matrix computation (elastic#82829)
  skip flaky suite (elastic#82804)
  Fix SO query for searching across spaces (elastic#83025)
  renaming built-in alerts to Stack Alerts (elastic#82873)
  [TSVB] Disable using top_hits in pipeline aggregations (elastic#82278)
  [Visualizations] Remove kui usage (elastic#82810)
  [Visualizations] Make the icon buttons labels more descriptive (elastic#82585)
  [Lens] Do not reset formatting when switching between custom ranges and auto histogram (elastic#82694)
  Fix ilm navigation (elastic#81664)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Nov 10, 2020
…na into alerts/stack-alerts-public

* 'alerts/stack-alerts-public' of github.com:gmmorris/kibana:
  [Security Solution] Fix DNS Network table query (elastic#82778)
  [Workplace Search] Consolidate groups routes (elastic#83015)
  Adds cloud links to user menu (elastic#82803)
  [Security Solution][Detections] - follow up cleanup on auto refresh rules (elastic#83023)
  [App Search] Added the log retention panel to the Settings page (elastic#82982)
  [Maps] show icon when layer is filtered by time and allow layers to ignore global time range (elastic#83006)
  [DOCS] Consolidates drilldown pages (elastic#82081)
  [Maps] add on-prem EMS config (elastic#82525)
  migrate i18n mixin to KP (elastic#81799)
  [bundle optimization] fix imports of react-use lib (elastic#82847)
  [Discover] Add metric on adding filter (elastic#82961)
  [Lens] Performance refactoring for indexpattern fast lookup and Operation support matrix computation (elastic#82829)
  skip flaky suite (elastic#82804)
  Fix SO query for searching across spaces (elastic#83025)
  renaming built-in alerts to Stack Alerts (elastic#82873)
  [TSVB] Disable using top_hits in pipeline aggregations (elastic#82278)
  [Visualizations] Remove kui usage (elastic#82810)
  [Visualizations] Make the icon buttons labels more descriptive (elastic#82585)
  [Lens] Do not reset formatting when switching between custom ranges and auto histogram (elastic#82694)
:
KOTungseth added a commit that referenced this pull request Nov 10, 2020
* [DOCS] Consolidated drilldowns

* Review comments pt 1

* Update docs/user/dashboard/drilldowns.asciidoc

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes supported drilldowns link

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes rogue disable section and fixes intro formatting

* Fixes URL drilldown link

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/user/dashboard/url-drilldown.asciidoc
KOTungseth added a commit that referenced this pull request Nov 11, 2020
* [DOCS] Consolidates drilldown pages (#82081)

* [DOCS] Consolidated drilldowns

* Review comments pt 1

* Update docs/user/dashboard/drilldowns.asciidoc

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes supported drilldowns link

* Update src/core/public/doc_links/doc_links_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Fixes rogue disable section and fixes intro formatting

* Fixes URL drilldown link

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/user/dashboard/url-drilldown.asciidoc

* Fixes drilldown links

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Docs v7.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants