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

[Cases] Fix missing displayName for some react components #123460

Merged
merged 4 commits into from
Jan 20, 2022

Conversation

academo
Copy link
Contributor

@academo academo commented Jan 20, 2022

Summary

First part of #123375

This PR will fix most[1] of the existing components missing a displayName using the ignoreTranspilerName of the react/display-name linting rule.

[1] most because there are inlined components where a longer refactor is required to set a displayName. e.g.:

image

in this case the react component is an anonymous function and enabling ignoreTranspilerName will make this file fail but it is harder to auto-fix.

All these files were "auto-fixed" using a custom fixing script. https://gist.github.com/academo/f2bc72d733e6fe1d5960b3b9b37247ae (no fingers were exhausted typing all these changes by hand)

Esteban Beltran added 2 commits January 20, 2022 15:11

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
@academo academo added Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature v8.1.0 labels Jan 20, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@academo academo added backport:skip This commit does not require backporting technical debt Improvement of the software architecture and operational architecture release_note:skip Skip the PR/issue when compiling release notes and removed backport:skip This commit does not require backporting labels Jan 20, 2022
Copy link
Contributor

@jonathan-buttner jonathan-buttner left a comment

Choose a reason for hiding this comment

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

Nice work!

(no fingers were exhausted typing all these changes by hand)

😆

@academo academo enabled auto-merge (squash) January 20, 2022 16:01
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Test Failures

  • [job] [logs] Security Solution Tests / Inspect Timeline inspects the timeline

Metrics [docs]

Async chunks

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

id before after diff
cases 311.6KB 314.2KB +2.6KB

Page load bundle

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

id before after diff
cases 81.7KB 81.7KB +30.0B

History

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

@academo academo merged commit 77d633f into elastic:main Jan 20, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jan 20, 2022
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 Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) technical debt Improvement of the software architecture and operational architecture v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants