[Workplace Search] Migrates Org Settings tree #88092
Merged
scottybollinger merged 39 commits intoelastic:masterfrom Jan 18, 2021
Merged
[Workplace Search] Migrates Org Settings tree #88092scottybollinger merged 39 commits intoelastic:masterfrom
scottybollinger merged 39 commits intoelastic:masterfrom
Conversation
Only does linting changes and lodash import
Use useLocation and no longer pass around history, using the KibanaLogic navigateToUrl method instead
Also change name of component to OauthApplication as the default import was named that before
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
We no longer control telemetry in Workplace Search. It is handled by Kibana itself
The global org name is not used anywhere outside of this section so we no longer need to update the global organization object as it is re-fetched when this section is entered. Previously, we displayed the org name in the sidebar but that has been removed in Kibana
We recently split out the logic from SourceLogic to the new AddSourceLogic and in settings, we were calling the saveSourceConfig method from the SourceLogic (now in AddSourceLogic) file and passing a callback that set the flash messages from that component’s state. Now, we set the flash messages globally and no longer need to have a saveUpdatedConfig method in the logic file, but can call it directly in the component and the flash messages will be set globally.
We use this method across both Enterprise Search products in Kibana
This would be the only place in the sidebar with a nav item breaking to a second line.
This happens automatically now in the global flash messages logic; route changes trigger clearing of messages
Contributor
Author
|
@elasticmachine merge upstream |
yakhinvadim
approved these changes
Jan 15, 2021
Contributor
yakhinvadim
left a comment
There was a problem hiding this comment.
LGTM! Only 1 minor typo:
| ); | ||
|
|
||
| export const CREDENTIALS_TITLE = i18n.translate( | ||
| 'xpack.enterpriseSearch.workplaceSearch.credentials.desctitleription', |
Contributor
There was a problem hiding this comment.
Suggested change
| 'xpack.enterpriseSearch.workplaceSearch.credentials.desctitleription', | |
| 'xpack.enterpriseSearch.workplaceSearch.credentials.title', |
Contributor
|
@elasticmachine merge upstream |
Contributor
Author
|
@elasticmachine merge upstream |
Copied from this PR: elastic#88525
Contributor
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates the Org Settings tree from
ent-search.Checklist