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

[Onboarding] Introduce search index details page locator and update all reference #205005

Merged

Conversation

saarikabhasi
Copy link
Member

@saarikabhasi saarikabhasi commented Dec 19, 2024

Summary

  • Introducing new locator for onboarding search_indices plugin index details page - SEARCH_INDEX_DETAILS_LOCATOR_ID.
  • In stack, Updated view index details usage(connector table, connector details page, search application & web crawler) to use this locator to navigate to onboarding index details page ONLY when its search - Elasticsearch solution nav
  • Index management view index details would use extensionService with active solution id check in search_indices plugin
  • verified locally existing FTR & unit tests
  • Added FTR for index management in functional_search tests for search solution nav and classic nav
demo.mov

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@saarikabhasi saarikabhasi added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 labels Dec 19, 2024
@saarikabhasi saarikabhasi requested a review from a team as a code owner December 19, 2024 20:00
@saarikabhasi saarikabhasi added the backport:skip This commit does not require backporting label Dec 19, 2024
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7628

[✅] x-pack/test/functional_search/config.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/search/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/search/config.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/security/common_configs/config.group1.ts: 25/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7627

[✅] x-pack/test/api_integration/apis/search/config.ts: 25/25 tests passed.
[✅] x-pack/test/functional_search/config.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/api_integration/test_suites/search/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/api_integration/test_suites/security/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/api_integration/test_suites/observability/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/search/config.ts: 25/25 tests passed.

see run history

@saarikabhasi saarikabhasi requested a review from a team as a code owner January 6, 2025 19:16
Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

x-pack/test/functional/page_objects/index.ts changes LGTM

* 2.0.
*/

import expect from '@kbn/expect';
Copy link
Member

Choose a reason for hiding this comment

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

these tests are going to collide with Yan's changes. They are broadly similar but theres likely slight differences in approach.

I suggest we wait until @yansavitski changes are merged in then we can rebase the FTR tests.

Copy link
Contributor

@yansavitski yansavitski left a comment

Choose a reason for hiding this comment

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

LGTM

() => share?.url.locators.get('SEARCH_INDEX_DETAILS_LOCATOR_ID'),
[share]
);
const SearchIndicesLinkProps = useCallback(
Copy link
Contributor

Choose a reason for hiding this comment

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

see other comment.

Copy link
Member Author

Choose a reason for hiding this comment

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

updated in 6c03f45

@saarikabhasi
Copy link
Member Author

@elasticmachine merge upstream

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.

Updates overall looks good. We should probably do a final Flakey Test Runner job just to be safe.

return searchIndexDetailsUrl ? (
<EuiLink
data-telemetry-id={dataTelemetryId}
data-test-subj={'search-application-index-link'}
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 a prop along with data-telemetry-id ?

Copy link
Member Author

@saarikabhasi saarikabhasi Jan 9, 2025

Choose a reason for hiding this comment

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

We could, but added here as data-test-subj value is same in both usage (flyout & search application content).

Copy link
Member Author

Choose a reason for hiding this comment

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

updated 359b77e

<EuiLink {...SearchIndicesLinkProps(indexName)}>{indexName}</EuiLink>
<SearchApplicationViewIndexLink
indexName={indexName}
dataTelemetryId={'entSearchApplications-list-viewIndex'}
Copy link
Contributor

Choose a reason for hiding this comment

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

the {} are not needed if you're passing a static string.

Suggested change
dataTelemetryId={'entSearchApplications-list-viewIndex'}
dataTelemetryId='entSearchApplications-list-viewIndex'

Copy link
Member Author

Choose a reason for hiding this comment

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

updated in 359b77e

return searchIndexDetailsUrl ? (
<EuiLink
target={target ? '_blank' : undefined}
external={target ? true : false}
Copy link
Contributor

Choose a reason for hiding this comment

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

optional nit

Suggested change
external={target ? true : false}
external={target ?? false}

Copy link
Member Author

Choose a reason for hiding this comment

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

updated in 359b77e

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1352 1354 +2
searchIndices 222 224 +2
total +4

Async chunks

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

id before after diff
enterpriseSearch 1.6MB 1.6MB +864.0B
searchIndices 164.0KB 164.0KB -1.0B
total +863.0B

Page load bundle

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

id before after diff
searchIndices 7.5KB 8.2KB +670.0B

History

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7687

[✅] x-pack/test/functional_search/config.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/observability/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/search/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/search/config.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/functional/test_suites/security/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/api_integration/test_suites/search/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/api_integration/test_suites/security/common_configs/config.group1.ts: 25/25 tests passed.
[✅] x-pack/test_serverless/api_integration/test_suites/observability/common_configs/config.group1.ts: 25/25 tests passed.

see run history

@saarikabhasi saarikabhasi merged commit 54436e3 into elastic:main Jan 10, 2025
11 checks passed
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:Search v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants