Clean up date histogram agg type.#58805
Merged
lukeelmers merged 13 commits intoelastic:masterfrom Mar 5, 2020
Merged
Conversation
54f73f1 to
58ae0c1
Compare
Contributor
|
Pinging @elastic/kibana-app-arch (Team:AppArch) |
ppisljar
requested changes
Mar 3, 2020
src/legacy/core_plugins/data/public/search/aggs/buckets/date_histogram.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/date_histogram.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/lib/date_range.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/date_histogram.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/date_histogram.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/date_histogram.ts
Outdated
Show resolved
Hide resolved
ppisljar
reviewed
Mar 3, 2020
src/legacy/core_plugins/data/public/search/aggs/buckets/lib/time_buckets/time_buckets.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/lib/time_buckets/time_buckets.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/data/public/search/aggs/buckets/lib/time_buckets/time_buckets.ts
Outdated
Show resolved
Hide resolved
3ce32a3 to
3994828
Compare
ppisljar
reviewed
Mar 4, 2020
src/legacy/core_plugins/data/public/search/aggs/buckets/date_histogram.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/visualizations/public/np_ready/public/legacy/build_pipeline.ts
Outdated
Show resolved
Hide resolved
3 tasks
7 tasks
wylieconlon
approved these changes
Mar 4, 2020
x-pack/legacy/plugins/lens/public/editor_frame_service/merge_tables.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/lens/public/indexpattern_datasource/auto_date.ts
Outdated
Show resolved
Hide resolved
ppisljar
approved these changes
Mar 4, 2020
src/legacy/core_plugins/visualizations/public/np_ready/public/legacy/build_pipeline.ts
Outdated
Show resolved
Hide resolved
Contributor
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
lukeelmers
added a commit
to lukeelmers/kibana
that referenced
this pull request
Mar 5, 2020
lukeelmers
added a commit
that referenced
this pull request
Mar 5, 2020
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Mar 5, 2020
…re/files-and-filetree * 'master' of github.com:elastic/kibana: (254 commits) Convert discover_page to ts, remove redundunt methods (elastic#59312) [Fix for Vis Editor] Revert setting time field to empty string when it's undefined (elastic#58873) Delete legacy search endpoint (elastic#59341) [Uptime] Improve duration chart (elastic#58404) [Snapshot & Restore] NP migration (elastic#59109) [ML] Add support for date_nanos time field in anomaly job wizard (elastic#59017) Revert "Makes alerting and actions optional properties for interface RequestH… (elastic#59264)" Change remote_clusters ID to remoteClusters (elastic#59246) Makes alerting and actions optional properties for interface RequestH… (elastic#59264) Clean up date histogram agg type. (elastic#58805) [ML] Management: fix license unsubscribe (elastic#59365) Remove documentation for server.cors settings (elastic#59096) Edit alert flyout (elastic#58964) [SIEM] Fix rule delete/duplicate actions (elastic#59306) move mouse to close obstructing tooltip (elastic#59214) Reset page after deleting (elastic#59310) Make sure phrases input filter triggers autosuggestons (elastic#59299) Add loading count source for http requests (elastic#59245) Revert "[ML] Transforms: Deprecate custom KibanaContext. (elastic#59133)" Expose metrics service to public API (elastic#59294) ... # Conflicts: # src/plugins/console/public/application/containers/editor/legacy/console_editor/editor.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #42639
Summary
This PR cleans up the remaining items from the
date histogramagg type which are preventing us from doing a cutover to the new platformdataplugin.It also converts
ui/time_bucketsto TS and makes it internal to thedataplugin. The only other placeui/time_bucketswas in use (where it hadn't been simply copied into the plugin), is in Lens, which was using it for some utilities supporting theautoDateexpression function. I've extracted those utilities and, with a few modifications, provided them as part of thedataplugin contract for lens to consume instead. This removes the need for lens to rely on the legacy TimeBuckets, and also provides some useful functionality which we will eventually want to incorporate elsewhere (e.g. search/esaggs).There are a handful of follow-up tasks that will need to happen (listed below), but none of these should block our ability to cutover to the new platform first, which means downstream teams can continue with migration. We can finish the rest of the cleanup from the new platform.
Tasks:
ui/time_bucketsto TSui/filessetBoundsItems to address after cutover:
moment.Duration(which you an perform math on)__cached__if possible