Skip to content

[7.17] [Infra UI] Avoid eager async imports in metric alert registrations (#123285)#124177

Merged
weltenwort merged 1 commit intoelastic:7.17from
weltenwort:backport/7.17/pr-123285
Jan 31, 2022
Merged

[7.17] [Infra UI] Avoid eager async imports in metric alert registrations (#123285)#124177
weltenwort merged 1 commit intoelastic:7.17from
weltenwort:backport/7.17/pr-123285

Conversation

@weltenwort
Copy link
Member

@weltenwort weltenwort commented Jan 31, 2022

Backports the following commits to 7.17:

ℹ️ Due to the significant amount of conflicts, this is a more focused subset of the changes made in original PR.

…lastic#123285)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/infra/public/alerting/inventory/components/expression.tsx
#	x-pack/plugins/infra/public/alerting/inventory/components/expression_chart.tsx
#	x-pack/plugins/infra/public/alerting/inventory/components/metric.tsx
#	x-pack/plugins/infra/public/alerting/inventory/index.ts
#	x-pack/plugins/infra/public/alerting/metric_anomaly/components/expression.tsx
#	x-pack/plugins/infra/public/alerting/metric_threshold/components/expression.tsx
#	x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_row.tsx
#	x-pack/plugins/infra/public/alerting/metric_threshold/index.ts
#	x-pack/plugins/infra/public/plugin.ts
#	x-pack/plugins/infra/server/features.ts
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/inventory_metric_threshold_executor.ts
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/lib/calculate_from_based_on_metric.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_anomaly/metric_anomaly_executor.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/evaluate_alert.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/lib/metric_query.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.test.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/metric_threshold_executor.ts
#	x-pack/plugins/infra/server/lib/alerting/metric_threshold/register_metric_threshold_alert_type.ts
#	x-pack/test/api_integration/apis/metrics_ui/inventory_threshold_alert.ts
#	x-pack/test/api_integration/apis/metrics_ui/metric_threshold_alert.ts
@weltenwort weltenwort added the backport This PR is a backport of another PR label Jan 31, 2022
@weltenwort weltenwort enabled auto-merge (squash) January 31, 2022 20:39
@weltenwort weltenwort self-assigned this Jan 31, 2022
@kibana-ci
Copy link

💚 Build Succeeded

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
infra 1003.5KB 940.1KB -63.4KB

Page load bundle

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

id before after diff
infra 62.1KB 89.3KB +27.2KB
Unknown metric groups

async chunk count

id before after diff
infra 14 13 -1

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

cc @weltenwort

@weltenwort weltenwort merged commit a6ae3eb into elastic:7.17 Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants