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

[Enterprise Search] Reuse serverless panels on Enterprise Search #163179

Merged

Conversation

efegurkan
Copy link
Member

@efegurkan efegurkan commented Aug 4, 2023

Summary

Reuse Serverless panels for API index overview.
Updated Enterprise Search overview to latests designs.

Note: There will be another PR for layout changes on overview afterwards.

Screen.Recording.2023-08-09.at.01.55.24.mov
Screen.Recording.2023-08-09.at.01.52.20.mov
Screen.Recording.2023-08-09.at.01.55.49.mov

Screenshot 2023-08-09 at 01 55 33

Checklist

Delete any items that are not applicable to this PR.

@efegurkan efegurkan requested review from a team as code owners August 4, 2023 14:47
@efegurkan efegurkan requested a review from a team August 4, 2023 14:47
@efegurkan efegurkan added release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.10.0 labels Aug 4, 2023
import { i18n } from '@kbn/i18n';
import { LanguageDefinition, Languages } from './types';

const docLinks = {
Copy link
Member Author

Choose a reason for hiding this comment

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

Replace these on all languages files

@efegurkan efegurkan marked this pull request as draft August 4, 2023 14:50
Copy link
Member Author

Choose a reason for hiding this comment

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

Duplicate

Copy link
Contributor

@TattdCodeMonkey TattdCodeMonkey left a comment

Choose a reason for hiding this comment

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

I'm not sure we can wholesale re-use the copy from the serverless page in dedicated. I would expect things to diverge.

We definitely cannot share the language definitions since the clients will be different. We're just waiting on the serverless clients to be available before we update the install snippets.

package.json Outdated
@@ -616,6 +616,7 @@
"@kbn/server-http-tools": "link:packages/kbn-server-http-tools",
"@kbn/server-route-repository": "link:packages/kbn-server-route-repository",
"@kbn/serverless": "link:x-pack/plugins/serverless",
"@kbn/serverless-api-panels": "link:packages/kbn-serverless-api-panels",
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be search-api-panels to be generically named for either search solution. I know we want to avoid the use "serverless" specifically where possible.

fmt.Println(res, err)
}`,
installClient: 'go get -u github.com/elastic/elasticsearch-serverless-go@latest',
Copy link
Contributor

Choose a reason for hiding this comment

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

We won't be able to share language definitions between serverless and dedicated, they will have different clients.

@efegurkan efegurkan force-pushed the reuse-getting-started-from-serverless branch 5 times, most recently from ca10574 to 29ab014 Compare August 8, 2023 23:46
@efegurkan efegurkan marked this pull request as ready for review August 9, 2023 00:02
@efegurkan efegurkan requested a review from a team August 9, 2023 00:02
@efegurkan
Copy link
Member Author

We should be finally ready for review please take a look.

@elastic/ent-search-design
@elastic/enterprise-search-frontend
@elastic/kibana-design
@elastic/ent-search-docs-team

@efegurkan efegurkan force-pushed the reuse-getting-started-from-serverless branch from 83e48de to 80f8f27 Compare August 9, 2023 00:21
@efegurkan efegurkan force-pushed the reuse-getting-started-from-serverless branch from 9191f3e to 1f0a7ed Compare August 9, 2023 10:55
http,
pluginId,
}) => {
switch (language) {
Copy link
Member

Choose a reason for hiding this comment

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

We have a couple more languages now that we should add here.

Copy link
Member

@sphilipse sphilipse left a comment

Choose a reason for hiding this comment

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

Haven't done an in-depth review but honestly this looks pretty good overall?

@leemthompo
Copy link
Contributor

I'm not sure we can wholesale re-use the copy from the serverless page in dedicated. I would expect things to diverge.

@TattdCodeMonkey this is a big PR, can you indicate where we should be looking out for incongruous copy? 😄

efegurkan and others added 2 commits August 9, 2023 15:30
…e_search_overview/components/product_selector/product_selector.tsx

Co-authored-by: Liam Thompson <[email protected]>
@efegurkan
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Member

@sphilipse sphilipse left a comment

Choose a reason for hiding this comment

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

Given that CI passes and I see no major concerns, I'm approving :)

@efegurkan
Copy link
Member Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 2156 2200 +44
serverlessSearch 95 98 +3
total +47

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/search-api-panels - 58 +58

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
@kbn/search-api-panels - 1 +1

Async chunks

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

id before after diff
enterpriseSearch 2.6MB 2.6MB +29.0KB
serverlessSearch 70.9KB 72.8KB +1.9KB
total +30.8KB

Page load bundle

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

id before after diff
enterpriseSearch 38.5KB 38.7KB +266.0B
Unknown metric groups

API count

id before after diff
@kbn/search-api-panels - 58 +58

async chunk count

id before after diff
enterpriseSearch 18 19 +1

miscellaneous assets size

id before after diff
enterpriseSearch 2.6MB 3.2MB ⚠️ +634.6KB

History

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

@efegurkan efegurkan enabled auto-merge (squash) August 11, 2023 14:42
@efegurkan efegurkan merged commit 1e7efae into elastic:main Aug 11, 2023
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Aug 11, 2023
@efegurkan efegurkan deleted the reuse-getting-started-from-serverless branch October 26, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:EnterpriseSearch v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants