Skip to content

remove react-intl from kibana and keep it inside only i18n package#78956

Merged
Bamieh merged 4 commits intoelastic:masterfrom
Bamieh:i18n/remove-react-intl-from-kibana
Oct 5, 2020
Merged

remove react-intl from kibana and keep it inside only i18n package#78956
Bamieh merged 4 commits intoelastic:masterfrom
Bamieh:i18n/remove-react-intl-from-kibana

Conversation

@Bamieh
Copy link
Copy Markdown
Contributor

@Bamieh Bamieh commented Sep 30, 2020

remove react-intl from kibana and keep it inside only i18n package

This helps upgrade the packages in the future, and reduce the number of shared deps in kibana.

@Bamieh Bamieh added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Sep 30, 2020
@Bamieh
Copy link
Copy Markdown
Contributor Author

Bamieh commented Sep 30, 2020

@elasticmachine merge upstream

@Bamieh Bamieh marked this pull request as ready for review October 1, 2020 09:40
@Bamieh Bamieh requested a review from a team as a code owner October 1, 2020 09:40
@Bamieh Bamieh requested review from a team October 1, 2020 09:40
@Bamieh Bamieh requested review from a team as code owners October 1, 2020 09:40
Copy link
Copy Markdown
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

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

Kibana App Code LGTM (haven't checked out and tested)

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

@patrykkopycinski patrykkopycinski left a comment

Choose a reason for hiding this comment

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

SIEM/Endpoint changes LGTM!

Copy link
Copy Markdown
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Thanks on behalf of the Enterprise Search team!

Comment on lines +12 to +19
// Use fake component to extract `intl` property to use in tests.
const { intl } = (mount(
<I18nProvider>
<br />
</I18nProvider>
).find('IntlProvider') as ReactWrapper<{}, {}, __IntlProvider>)
.instance()
.getChildContext();
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.

This is super creative, thank you for figuring it out for us! 🙏

@Bamieh
Copy link
Copy Markdown
Contributor Author

Bamieh commented Oct 5, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/ui-shared-deps asset size

id before after diff
kbn-ui-shared-deps.@elastic.js 2.8MB 2.8MB -1.0B
kbn-ui-shared-deps.js 4.6MB 4.6MB -735.0B
total -736.0B

async chunks size

id before after diff
securitySolution 10.3MB 10.3MB -47.0B

page load bundle size

id before after diff
securitySolution 587.1KB 587.0KB -69.0B

History

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

@Bamieh Bamieh merged commit 025af1a into elastic:master Oct 5, 2020
@Bamieh Bamieh deleted the i18n/remove-react-intl-from-kibana branch October 5, 2020 22:41
Bamieh added a commit that referenced this pull request Oct 6, 2020
…age (#78956) (#79589)

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

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 6, 2020
* master: (85 commits)
  Refactor attribute service (elastic#78414)
  [APM] Add default message to alerts. (elastic#78930)
  [Discover] Modify columns and sort when switching index pattern (elastic#74336)
  Document ts project references setup (elastic#78586)
  build all ts refs in single kbn:bootstrap (elastic#79438)
  [TSVB] Allow string fields on value count aggregation (elastic#79267)
  [SECURITY SOLUTION] Investigate EQL signal in timeline (elastic#79049)
  [Fleet] Add loading spinner to page headers (elastic#79568)
  [Security Solution][Resolver] Resolver query panel load more (elastic#79160)
  Add type row to monitor detail page. (elastic#79556)
  Remove license refresh from setup (elastic#79518)
  [docker] add reporting fonts (elastic#74806)
  [SECURITY_SOLUTION][ENDPOINT] Add info about trusted apps to the page subtitle + create flyout (elastic#79558)
  Trim Hash value before validating it (elastic#79545)
  Warn users when security is not configured (elastic#78545)
  update copy styling (elastic#79313)
  Update dependency @elastic/charts to v23.1.1 (elastic#78459)
  Introduce geo-threshold alerts (elastic#76285)
  elastic#76920 Show base breadcrumb when there is an error booting the app (elastic#79571)
  remove react-intl from kibana and keep it inside only i18n package (elastic#78956)
  ...
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 v7.10.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants