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

[Oblt UX: Infrastructure and Services] Remove usage of deprecated React rendering utilities #180844

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Apr 15, 2024

Summary

Partially addresses https://github.com/elastic/kibana-team/issues/805

Follows #180003

These changes come up from searching in the code and finding where certain kinds of deprecated AppEx-SharedUX modules are imported. Reviewers: Please interact with critical paths through the UI components touched in this PR, ESPECIALLY in terms of testing dark mode and i18n.

This focuses on code within Observability User Experience: Infrastructure and Services.

image

Checklist

Delete any items that are not applicable to this PR.

@tsullivan tsullivan force-pushed the sharedux/cleanup-tomountpoint-deprecations-iiif branch from 2990f2f to 77178b7 Compare April 15, 2024 18:25
@@ -28,7 +28,8 @@ import { AlertsStatus } from '../../../alerts/status';
import { STANDALONE_CLUSTER_CLUSTER_UUID } from '../../../../common/constants';
import { getSafeForExternalLink } from '../../../lib/get_safe_for_external_link';
import './listing.scss';
import { toMountPoint, useKibana } from '@kbn/kibana-react-plugin/public';
import { useKibana } from '@kbn/kibana-react-plugin/public';
import { toMountPoint } from '@kbn/react-kibana-mount';
Copy link
Member Author

Choose a reason for hiding this comment

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

🚨 Plain JS Alert! 🚨

@tsullivan tsullivan force-pushed the sharedux/cleanup-tomountpoint-deprecations-iiif branch from 77178b7 to c2b9276 Compare April 15, 2024 18:49
@tsullivan tsullivan changed the title [Stack Monitoring] Remove usage of deprecated React rendering utilities [Oblt UX: Infrastructure and Services] Remove usage of deprecated React rendering utilities Apr 15, 2024
@tsullivan tsullivan force-pushed the sharedux/cleanup-tomountpoint-deprecations-iiif branch 4 times, most recently from 99ab4dd to edc25a5 Compare April 16, 2024 17:33
@tsullivan tsullivan force-pushed the sharedux/cleanup-tomountpoint-deprecations-iiif branch from edc25a5 to 85a1d56 Compare April 16, 2024 18:02
@tsullivan tsullivan marked this pull request as ready for review April 16, 2024 18:03
@tsullivan tsullivan requested a review from a team as a code owner April 16, 2024 18:03
@tsullivan tsullivan added the release_note:skip Skip the PR/issue when compiling release notes label Apr 16, 2024
@botelastic botelastic bot added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Apr 16, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM

@tsullivan tsullivan enabled auto-merge (squash) April 17, 2024 16:38
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
exploratoryView 166 180 +14
monitoring 466 480 +14
profiling 291 301 +10
synthetics 960 980 +20
uptime 562 582 +20
ux 184 200 +16
total +94

Async chunks

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

id before after diff
exploratoryView 180.0KB 181.2KB +1.2KB
monitoring 462.4KB 463.8KB +1.4KB
profiling 406.6KB 407.6KB +1.0KB
synthetics 1.0MB 1.0MB +3.8KB
uptime 458.8KB 462.7KB +3.9KB
ux 166.3KB 169.8KB +3.5KB
total +14.8KB

Page load bundle

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

id before after diff
exploratoryView 43.7KB 43.8KB +124.0B
monitoring 24.0KB 24.2KB +124.0B
profiling 18.2KB 18.3KB +56.0B
synthetics 19.6KB 19.8KB +124.0B
uptime 22.1KB 22.3KB +124.0B
ux 6.7KB 6.8KB +124.0B
total +676.0B
Unknown metric groups

References to deprecated APIs

id before after diff
exploratoryView 8 3 -5
monitoring 15 2 -13
profiling 4 1 -3
synthetics 25 6 -19
uptime 13 5 -8
ux 3 0 -3
total -51

History

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

@tsullivan tsullivan merged commit 51fd2d5 into elastic:main Apr 17, 2024
25 checks passed
@kibanamachine kibanamachine added v8.14.0 backport:skip This commit does not require backporting labels Apr 17, 2024
@tsullivan tsullivan deleted the sharedux/cleanup-tomountpoint-deprecations-iiif branch April 19, 2024 00:05
Ikuni17 pushed a commit that referenced this pull request May 15, 2024
…182195)

## Summary

Partially addresses elastic/kibana-team#805

These changes come up from searching in the code and finding where
certain kinds of deprecated AppEx-SharedUX modules are imported.
**Reviewers: Please interact with critical paths through the UI
components touched in this PR, ESPECIALLY in terms of testing dark mode
and i18n.**

This is the **2nd** PR to focus on code within **Observability**,
following #180844.

<img width="1196" alt="image"
src="https://github.com/elastic/kibana/assets/908371/7f8d3707-94f0-4746-8dd5-dd858ce027f9">

Note: this also makes inclusion of `i18n` and `analytics` dependencies
consistent. Analytics is an optional dependency for the SharedUX
modules, which wrap `KibanaErrorBoundaryProvider` and is designed to
capture telemetry about errors that are caught in the error boundary.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:review backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants