Move Elasticsearch type definitions out of APM#83081
Conversation
...and into x-pack. Also remove `PromiseReturnType` from APM and use the copy in observability everywhere. All of the additional changes to APM imports are just automatic sorting. This makes doing elastic#77720 a little easier and removes some implicit circular dependencies for elastic#80508.
|
Pinging @elastic/apm-ui (Team:apm) |
mbondyra
left a comment
There was a problem hiding this comment.
Lens changes look good 🆗
| import { Observable } from 'rxjs'; | ||
| import { take } from 'rxjs/operators'; | ||
| import { getDurationFormatter } from '../../../common/utils/formatters'; | ||
| import { ProcessorEvent } from '../../../common/processor_event'; |
There was a problem hiding this comment.
Didn't we previously have an eslint rule that'd strictly order the imports alphabetically? Then we'd avoid this kind of diff.
I use that for backport: https://github.com/sqren/backport/blob/9c41c5bcd559f1b1b7a782a940143d28d1027c79/.eslintrc.js#L25
There was a problem hiding this comment.
I don't know, but once they are ordered properly this kind of diff doesn't need to happen again.
There was a problem hiding this comment.
The ordering I'm doing here is with VSCode's options-shift-o, which invokes TypeScript's organize imports feature.
We have some ordering rules in ESLint, but it doesn't fully check for TypeScript's suggested ordering. There's an open issue (typescript-eslint/typescript-eslint#113) to get it implemented in the ESLint TypeScript plugin that's not yet completed.
There was a problem hiding this comment.
FWIW, it's a little harder to review this PR because of the import changes. I would prefer to have something that is enforced & automatic, or to not do this at all. I do agree that there is value in sorting the imports.
mikecote
left a comment
There was a problem hiding this comment.
Task manager changes LGTM
dgieselaar
left a comment
There was a problem hiding this comment.
LGTM, thanks @smith. I pushed a commit to fix some imports that were not updated.
💚 Build SucceededMetrics [docs]Distributable file count
Saved Objects .kibana field count
History
To update your PR or re-run it, just comment with: |
...and into x-pack. Also remove `PromiseReturnType` from APM and use the copy in observability everywhere. All of the additional changes to APM imports are just automatic sorting. This makes doing elastic#77720 a little easier and removes some implicit circular dependencies for elastic#80508. Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co> # Conflicts: # x-pack/plugins/apm/public/utils/testHelpers.tsx
...and into x-pack. Also remove `PromiseReturnType` from APM and use the copy in observability everywhere. All of the additional changes to APM imports are just automatic sorting. This makes doing #77720 a little easier and removes some implicit circular dependencies for #80508. Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co> # Conflicts: # x-pack/plugins/apm/public/utils/testHelpers.tsx
…ts-public * upstream/master: (57 commits) Remove unused asciidoc file (elastic#83228) [Lens] Remove background from lens embeddable (elastic#83061) [Discover] Unskip flaky tests based on discover fixture index pattern (elastic#82991) Removing unnecessary trailing slash in CODEOWNERS Trying to fix CODEOWNERS again, where was a non-existent team prior (elastic#83236) Trying to fix CODEOWERS, missing a starting slash (elastic#83233) skip flaky suite (elastic#83231) Add enzyme rerender test helper (elastic#83208) Move Elasticsearch type definitions out of APM (elastic#83081) [ts/checkTsProjects] produce a more useful error message (elastic#83209) [kbnClient] retry updating config if necessary (elastic#83205) I accidentally removed this line in a recent PR (elastic#83201) Don't make the caller do work the function can do (elastic#83180) [App Search] Update EngineRouter & EngineNav to use EngineLogic (elastic#83138) [Workplace Search] Add routes for Sources (elastic#83125) Update logstash pipeline management to use system index APIs (elastic#80405) [ML] Replace EuiBasicTable with EuiInMemoryTable (elastic#83057) [Metrics UI] Add basic interaction and shell for node details overlay (elastic#82013) [App Search] Added the log retention confirmation modal to the Settings page (elastic#83009) [docs] Fix create map title in import geospatial page (elastic#83172) ...
… alerts/action-groups-as-conditions * origin/alerts/stack-alerts-public: (91 commits) removed import from plugin code as it causes FTR to fail [Advanced Settings] Introducing telemetry (elastic#82860) [alerts] add executionStatus to event log doc for action execute (elastic#82401) Add additional sources routes (elastic#83227) [ML] Persisted URL state for the "Anomaly detection jobs" page (elastic#83149) [Logs UI] Add pagination to the log stream shared component (elastic#81193) [Index Management] Add an index template link to data stream details (elastic#82592) Add maps_oss folder to code_owners (elastic#83204) fix truncation issue (elastic#83000) [Ingest Manger] Move asset getters out of registry (elastic#83214) make defaulted field non maybe Remove unused asciidoc file (elastic#83228) [Lens] Remove background from lens embeddable (elastic#83061) [Discover] Unskip flaky tests based on discover fixture index pattern (elastic#82991) Removing unnecessary trailing slash in CODEOWNERS Trying to fix CODEOWNERS again, where was a non-existent team prior (elastic#83236) Trying to fix CODEOWERS, missing a starting slash (elastic#83233) skip flaky suite (elastic#83231) Add enzyme rerender test helper (elastic#83208) Move Elasticsearch type definitions out of APM (elastic#83081) ...


...and into x-pack.
Also remove
PromiseReturnTypefrom APM and use the copy in observability everywhere.All of the additional changes to APM imports are just automatic sorting.
This makes doing #77720 a little easier and removes some implicit circular dependencies for #80508.