Skip to content

[Discover] Enable document explorer as default - #125485

Merged
kertal merged 9 commits into
elastic:mainfrom
kertal:2022-02-enable-document-explorer-default
Feb 16, 2022
Merged

kertal merged 9 commits into
elastic:mainfrom
kertal:2022-02-enable-document-explorer-default

Conversation

@kertal

@kertal kertal commented Feb 14, 2022 •

Copy link
Copy Markdown
Member

Summary

This PR enables the new Document explorer as the default data table in Discover 🥳 . So it's no longer necessary to go to Advanced settings.

Bildschirmfoto 2022-02-16 um 10 19 34

Most of the changes in this PR are fixes for functional tests failing because of this change.

Checklist

@kertal kertal added Feature:Discover Discover Application Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// labels Feb 14, 2022
@kertal

kertal commented Feb 15, 2022

Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

defaultMessage: 'Document Explorer or classic view',
}),
value: true,
value: false,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

So, this is the actual change :), all the rest is about fixing confused functionals

await kibanaServer.uiSettings.update({
'context:defaultSize': `${TEST_DEFAULT_CONTEXT_SIZE}`,
'context:step': `${TEST_STEP_SIZE}`,
'doc_table:legacy': true,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note there are cases we need to clean up later on, think it's fine, since it's not the doc table that's being tested in these cases

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.

Maybe add an issue to track cleanup of these tests later on?

@kertal
kertal requested review from dimaanj and majagrubic February 16, 2022 07:04
@kertal
kertal marked this pull request as ready for review February 16, 2022 07:04
@kertal
kertal requested review from a team as code owners February 16, 2022 07:04
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kibana-ci

Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 335.5KB 335.7KB +156.0B

History

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

cc @kertal

@majagrubic majagrubic 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.

🚀

@ThomThomson ThomThomson 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.

Dashboard functional test changes LGTM. Just left one small question!

.toArray()
.map((mark) => $(mark).text());
expect(marks.length).to.above(10);
expect(marks.length).to.above(0);

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.

Just out of curiosity, what causes the difference here? Has the highlighting functionality changed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Well, the Document explorer uses virtualization to display just the docs that are visible to the user, not rendering others. So when using document explorer, the expected number is 6. I didn't change it to this number, because I implemented it in a way that it also would work if we decide to step back (because this feature already has a history, of putting it off again).
The test works now for classic and document explorer, and I think not the number of found highlighted terms is relevant, but that there are highlighted terms rendered. Which proves: highlighting works. And if we ever decide to migrate classic table -> document explorer -> 🍪 ... it should also work

@kibanamachine

Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 125485 or prevent reminders by adding the backport:skip label.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 18, 2022
@kertal kertal added the backport:skip This PR does not require backporting label Feb 19, 2022
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 19, 2022
@tylersmalley tylersmalley added ci:cloud-deploy Create or update a Cloud deployment and removed ci:deploy-cloud labels Aug 17, 2022
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…c#125485)

* Enable document explorer in Discover as default document table
* Fix lots of functional tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting ci:cloud-deploy Create or update a Cloud deployment Feature:Discover Discover Application release_note:enhancement Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants