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

Remove deprecated es-query re-imports from data plugin #134600

Merged
merged 6 commits into from
Jun 21, 2022

Conversation

Dosant
Copy link
Contributor

@Dosant Dosant commented Jun 16, 2022

Summary

Close #119356, #124069

Cleaning up leftovers to remove deprecated re-imports from data plugin

@@ -7,7 +7,7 @@

import { useCallback, useEffect, useState } from 'react';

import { FilterStateStore } from '@kbn/data-plugin/common';
import { FilterStateStore } from '@kbn/es-query';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we should refactor FilterStateStore from enum to a type so that osquery (and probably other places) avoid importing '@kbn/es-query' into their bundle just for this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Dosant Dosant changed the title clean up data plugin imports Remove deprecated es-query re-imports from data plugin Jun 17, 2022
@Dosant Dosant added Feature:Search Querying infrastructure in Kibana Team:AppServicesSv v8.4.0 technical debt Improvement of the software architecture and operational architecture release_note:skip Skip the PR/issue when compiling release notes labels Jun 17, 2022
@Dosant Dosant marked this pull request as ready for review June 17, 2022 10:56
@Dosant Dosant requested review from a team as code owners June 17, 2022 10:56
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServicesSv)

@botelastic botelastic bot added Feature:Drilldowns Embeddable panel Drilldowns Team:APM All issues that need APM UI Team support labels Jun 17, 2022
@botelastic botelastic bot added Team:Fleet Team label for Observability Data Collection Fleet team Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability labels Jun 17, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

LGTM, just change of imports, did not test

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

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

Presentation team import changes LGTM!

Copy link
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.

LGTM, Thank you! @Dosant

Copy link
Member

@nchaulet nchaulet left a comment

Choose a reason for hiding this comment

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

Fleet changes 🚀

Copy link
Contributor

@ymao1 ymao1 left a comment

Choose a reason for hiding this comment

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

Response Ops changes LGTM. Code review only.

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

kibana-gis changes LGTM
code review

Copy link
Contributor

@gbamparop gbamparop left a comment

Choose a reason for hiding this comment

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

APM changes LGTM!

Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

ML, Transform and Data Visualizer changes LGTM

@weltenwort weltenwort self-requested a review June 20, 2022 15:41
Copy link
Member

@weltenwort weltenwort left a comment

Choose a reason for hiding this comment

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

infra and monitoring plugin changes LGTM, thank you

Copy link
Contributor

@mattkime mattkime left a comment

Choose a reason for hiding this comment

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

changes lgtm

Copy link
Member

@sorenlouv sorenlouv left a comment

Choose a reason for hiding this comment

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

apm changes lgtm

Copy link
Member

@lukasolson lukasolson left a comment

Choose a reason for hiding this comment

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

LGTM!

@Dosant Dosant enabled auto-merge (squash) June 21, 2022 11:03
@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
apm 1232 1293 +61
data 513 512 -1
osquery 263 324 +61
total +121

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
data 2518 2399 -119

Any counts in public APIs

Total count of every any typed public API. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats any for more detailed information.

id before after diff
data 35 34 -1

Async chunks

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

id before after diff
apm 2.9MB 2.9MB +27.3KB
lens 1.2MB 1.2MB -4.0B
ml 3.3MB 3.3MB +5.0B
osquery 1.0MB 1.0MB +26.4KB
total +53.7KB

Canvas Sharable Runtime

The Canvas "shareable runtime" is an bundle produced to enable running Canvas workpads outside of Kibana. This bundle is included in third-party webpages that embed canvas and therefor should be as slim as possible.

id before after diff
module count 4955 4954 -1

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
data 21 22 +1
kibana 382 371 -11
total -10

Page load bundle

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

id before after diff
data 423.7KB 417.0KB -6.7KB
osquery 16.3KB 16.3KB +50.0B
total -6.6KB
Unknown metric groups

API count

id before after diff
data 3372 3072 -300

ESLint disabled in files

id before after diff
data 4 2 -2

ESLint disabled line counts

id before after diff
maps 40 38 -2

References to deprecated APIs

id before after diff
apm 32 29 -3
canvas 79 52 -27
cases 12 0 -12
controls 18 0 -18
dashboard 119 29 -90
dashboardEnhanced 6 0 -6
dataVisualizer 24 0 -24
discover 60 18 -42
discoverEnhanced 6 0 -6
fleet 28 19 -9
infra 34 1 -33
lens 47 14 -33
maps 155 17 -138
ml 63 21 -42
monitoring 15 3 -12
securitySolution 82 64 -18
uiActionsEnhanced 45 0 -45
urlDrilldown 36 0 -36
visDefaultEditor 24 0 -24
visTypeTimelion 12 0 -12
visTypeTimeseries 18 12 -6
visTypeVega 21 0 -21
visualizations 34 13 -21
total -678

Total ESLint disabled count

id before after diff
data 64 62 -2
maps 68 66 -2
total -4

Unreferenced deprecated APIs

id before after diff
data 62 5 -57

History

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

@Dosant Dosant merged commit a8095ce into elastic:main Jun 21, 2022
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jun 21, 2022
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Jun 22, 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:Drilldowns Embeddable panel Drilldowns Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support Team:Fleet Team label for Observability Data Collection Fleet team Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability technical debt Improvement of the software architecture and operational architecture v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove usage of deprecated query functionality from data plugin.