Skip to content

[Index Management] Add Overview tab#164628

Merged
alisonelizabeth merged 24 commits intoelastic:mainfrom
alisonelizabeth:index_management/overview_tab
Sep 8, 2023
Merged

[Index Management] Add Overview tab#164628
alisonelizabeth merged 24 commits intoelastic:mainfrom
alisonelizabeth:index_management/overview_tab

Conversation

@alisonelizabeth
Copy link
Copy Markdown
Contributor

@alisonelizabeth alisonelizabeth commented Aug 23, 2023

This PR builds out the "Overview" tab on the new index details page.

Note: We will likely iterate on this design in the future.

Fixes #164570

How to test

On serverless:

  1. Run in serverless mode
yarn es serverless
yarn start --serverless=es
  1. Create an index
PUT /my-index
  1. Navigate to Index Management --> verify index details for the index created.

On stateful:

  1. Start up Kibana and ES locally
yarn es snapshot
yarn start
  1. Create an index
  2. Navigate to Index Management --> verify index details for the index created. Index stats should be visible.

Screenshots

// Serverless view (index stats info not available)
Screenshot 2023-09-06 at 11 58 00 AM

// Self-managed (with index stats panel)
Screenshot 2023-08-25 at 12 32 16 PM

@alisonelizabeth alisonelizabeth added ci:cloud-deploy Create or update a Cloud deployment Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes labels Aug 25, 2023
codeSnippetArguments
)}
showTryInConsole={getConsoleRequest('ingestData')}
consoleRequest={getConsoleRequest('ingestData')}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this maybe was an oversight of #164766?

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.

yes this is fixed in main

Copy link
Copy Markdown
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.

search-api-panel changes LGTM


const INDEX_NAME_PLACEHOLDER = 'index_name';

export const curlDefinition: LanguageDefinition = {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@TattdCodeMonkey is there someone you usually work with to verify the code snippets for each language? I copied this from existing definitions, but would be good to get a pair of 👀 on it to confirm.

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.

Yes we usually ping the language clients team and see if they can give them a review.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@TattdCodeMonkey have you considered having a shared place for some of these common client svgs?

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.

We haven't yet but it would be a good topic for improvement. I know Efe included them in enterprise_search and imported them (see here & here) vs populating the url path. Which might be an option to include them in the search-api-panels package that way but I'm not 100% sure what if that would work in a package.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I was wondering if it might makes sense in the search-api-panels package. I also found there's a kbn-shared-svg package, although it doesn't appear to be used much yet.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will as-is for now; but I think it's worth revisiting.

@alisonelizabeth alisonelizabeth marked this pull request as ready for review September 6, 2023 17:48
@alisonelizabeth alisonelizabeth requested a review from a team as a code owner September 6, 2023 17:48
@alisonelizabeth alisonelizabeth requested a review from a team September 6, 2023 17:48
@alisonelizabeth alisonelizabeth requested a review from a team as a code owner September 6, 2023 17:48
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@alisonelizabeth
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Member

@JoshMock JoshMock left a comment

Choose a reason for hiding this comment

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

Code snippets for Python and JavaScript look right to me. 👍 Ruby and PHP also seem right, but @ezimuel and @picandocodigo would be best for those. And @Anaethelion for Go.

Copy link
Copy Markdown
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Great job, @alisonelizabeth!
Code changes LGTM! Index details definitely look better on stateful than serverless when there is hardly any info to display, but we could work on it in a follow up.

@alisonelizabeth
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@mdefazio mdefazio left a comment

Choose a reason for hiding this comment

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

This is exciting to see this evolve!

When selecting an index and using the bulk action menu (with only a single index selected), the options don't navigate anywhere now. (Perhaps still trying to trigger the flyout?)

I expected these options to take me to the appropriate tab on the detail page.

Perhaps not due to this PR. So if not, I am happy to approve this one and file this elsewhere.

Screenshot--2023-09-07--Index.Management.-.Elastic.mp4

@yuliacech
Copy link
Copy Markdown
Contributor

Hey @mdefazio, that is correct, the actions are not working for the new details page. I'm working on enabling the new page by default (draft PR) and I thought we could remove those actions altogether. I'm not sure it makes sense to keep those "show" actions with the new page for index details

Copy link
Copy Markdown
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.

Awesome! LGTM :)

@alisonelizabeth
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@alisonelizabeth
Copy link
Copy Markdown
Contributor Author

alisonelizabeth commented Sep 8, 2023

@sphilipse do you mind reviewing b3a31e3? CI was failing on my PR due to this TS error; I believe it was introduced via #165880.

@kibana-ci
Copy link
Copy Markdown

kibana-ci commented Sep 8, 2023

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
indexManagement 504 532 +28

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 67 68 +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 +316.0B
indexManagement 542.4KB 558.2KB +15.8KB
serverlessSearch 79.7KB 80.0KB +316.0B
total +16.4KB

Page load bundle

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

id before after diff
indexManagement 32.6KB 32.7KB +16.0B
Unknown metric groups

API count

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

History

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

Copy link
Copy Markdown
Contributor

@mdefazio mdefazio left a comment

Choose a reason for hiding this comment

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

LGTM.

@alisonelizabeth
Copy link
Copy Markdown
Contributor Author

I'm going to go ahead and merge this. If there are any additional changes needed to the clients code, I will open up a follow-up PR (re: #164628 (review)).

@alisonelizabeth alisonelizabeth merged commit 4c2f702 into elastic:main Sep 8, 2023
@alisonelizabeth alisonelizabeth deleted the index_management/overview_tab branch September 8, 2023 14:17
@kibanamachine kibanamachine added v8.11.0 backport:skip This PR does not require backporting labels Sep 8, 2023
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 release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v8.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Index details page] Implement the "overview" tab

9 participants