Skip to content

Migrate security page#89720

Merged
yakhinvadim merged 20 commits intoelastic:masterfrom
yakhinvadim:migrate-security-page
Jan 29, 2021
Merged

Migrate security page#89720
yakhinvadim merged 20 commits intoelastic:masterfrom
yakhinvadim:migrate-security-page

Conversation

@yakhinvadim
Copy link
Contributor

@yakhinvadim yakhinvadim commented Jan 29, 2021

Summary

This PR migrates the Security tree from ent-search.

Screen Cast 2021-01-29 at 10 37 46 AM

Public folder coverage:
image

Server folder coverage:
image

Checklist

Also update lodash imports and fix default exports
This is no longer needed with the Kibana syntax. Flash messages are set globally and only render when present.
In Kibana, we use the Eui components directly
It is used in security_logic
There is an error that recommends using AppMountParameters.onAppLeave
instead, but it doesn't cover the case where a user navigates
within the app. We'll revisit this problem later.
@yakhinvadim yakhinvadim force-pushed the migrate-security-page branch from 37dc747 to 9881490 Compare January 29, 2021 14:07
Also refactor PrivateSourcesTable to use static i18n strings.

Before we were using 'remote' and 'standard' as both enums and parts of copy, i.e. "Enable {sourceType} private sources".

But with i18n we can no longer do this. So I made a refactoring to separate these concerns. Now 'remote' and 'standard' are only used as enums. What i18n string to show is defined based on isRemote variable.
@yakhinvadim yakhinvadim force-pushed the migrate-security-page branch from 9881490 to 4791093 Compare January 29, 2021 14:30
@yakhinvadim
Copy link
Contributor Author

I will update the PR with improved async tests after Jason's PR is merged.

@yakhinvadim yakhinvadim marked this pull request as ready for review January 29, 2021 15:03
@yakhinvadim yakhinvadim requested a review from a team January 29, 2021 15:03
@yakhinvadim yakhinvadim added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Feature:Plugins v8.0.0 labels Jan 29, 2021
Copy link
Contributor

@scottybollinger scottybollinger left a comment

Choose a reason for hiding this comment

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

Couple of minor nits but looks great otherwise!

@yakhinvadim
Copy link
Contributor Author

@scottybollinger Thanks for the review!
I addressed feedback and added a couple more commits.

Copy link
Contributor

@scottybollinger scottybollinger left a comment

Choose a reason for hiding this comment

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

🎉

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1166 1170 +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.8MB 1.8MB +19.0KB

History

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

@yakhinvadim yakhinvadim merged commit e866db7 into elastic:master Jan 29, 2021
@yakhinvadim yakhinvadim deleted the migrate-security-page branch January 29, 2021 20:31
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 Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants