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

[ES UI] Reintroduce import of brace/mode/json #78571

Merged

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Sep 28, 2020

Summary

After removing brace from the eagerly loaded es_ui_shared plugin (#78033), not all plugins have access to the brace JSON mode that it was also importing.

This contribution re-adds just the brace/mode/json import to es_ui_shared so that it is implicitly available to all plugins in Kibana as before.

See comment in code for more detailed description of reasoning and plan.

@jloleysens jloleysens requested a review from spalger September 28, 2020 12:25
@jloleysens jloleysens added release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0 labels Sep 28, 2020
@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

1 similar comment
@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

elasticmachine and others added 3 commits September 30, 2020 01:58
- different approach of just adding brace/json/mode to
  es_ui_shared as before with a BIG comment
@jloleysens jloleysens requested a review from sebelga September 30, 2020 08:15
@jloleysens jloleysens added the Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more label Sep 30, 2020
@jloleysens jloleysens marked this pull request as ready for review September 30, 2020 08:17
@jloleysens jloleysens requested a review from a team as a code owner September 30, 2020 08:17
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@jloleysens jloleysens changed the title Added brace JSON mode where EuiCodeEditor is being used [ES UI] Reintroduce import of brace/mode/json Sep 30, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id value diff baseline
esUiShared 210 +2 208

page load bundle size

id value diff baseline
esUiShared 306.1KB +48.8KB 257.3KB

History

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

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@sebelga sebelga left a comment

Choose a reason for hiding this comment

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

LGTM if we confirmed with the core team this is the best place to have this import. Cheers!

@jloleysens jloleysens merged commit c5ab749 into elastic:master Oct 1, 2020
@jloleysens jloleysens deleted the es-ui/fix-brace-json-mode-usage branch October 1, 2020 10:20
jloleysens added a commit to jloleysens/kibana that referenced this pull request Oct 1, 2020
* added brace/mode/json import everywhere json mode is being used

* added brace mocks to tests

* slight refactor of imports

* remove import from es ui shared

* Reverse adding brace/mode/json import everywhere

- different approach of just adding brace/json/mode to
  es_ui_shared as before with a BIG comment

* updated @kbn/ace readme

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
jloleysens added a commit that referenced this pull request Oct 1, 2020
* added brace/mode/json import everywhere json mode is being used

* added brace mocks to tests

* slight refactor of imports

* remove import from es ui shared

* Reverse adding brace/mode/json import everywhere

- different approach of just adding brace/json/mode to
  es_ui_shared as before with a BIG comment

* updated @kbn/ace readme

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants