-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Clean up date histogram agg type. #58805
Merged
Merged
Conversation
This file contains 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
lukeelmers
force-pushed
the
aggs/static
branch
from
February 28, 2020 23:32
54f73f1
to
58ae0c1
Compare
lukeelmers
changed the title
Clean up agg_types static exports.
Clean up date histogram agg type.
Mar 1, 2020
lukeelmers
added
Feature:Aggregations
Aggregation infrastructure (AggConfig, esaggs, ...)
Feature:NP Migration
release_note:plugin_api_changes
Contains a Plugin API changes section for the breaking plugin API changes section.
Team:AppArch
v7.7.0
v8.0.0
WIP
Work in progress
labels
Mar 3, 2020
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
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
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
lukeelmers
force-pushed
the
aggs/static
branch
2 times, most recently
from
March 4, 2020 03:52
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
Show resolved
Hide resolved
7 tasks
wylieconlon
approved these changes
Mar 4, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM!
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM
src/legacy/core_plugins/visualizations/public/np_ready/public/legacy/build_pipeline.ts
Outdated
Show resolved
Hide resolved
lukeelmers
added
release_note:skip
Skip the PR/issue when compiling release notes
and removed
release_note:plugin_api_changes
Contains a Plugin API changes section for the breaking plugin API changes section.
labels
Mar 4, 2020
💚 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature:Aggregations
Aggregation infrastructure (AggConfig, esaggs, ...)
Feature:NP Migration
release_note:skip
Skip the PR/issue when compiling release notes
review
v7.7.0
v8.0.0
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 histogram
agg type which are preventing us from doing a cutover to the new platformdata
plugin.It also converts
ui/time_buckets
to TS and makes it internal to thedata
plugin. The only other placeui/time_buckets
was in use (where it hadn't been simply copied into the plugin), is in Lens, which was using it for some utilities supporting theautoDate
expression function. I've extracted those utilities and, with a few modifications, provided them as part of thedata
plugin 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_buckets
to TSui/
filessetBounds
Items to address after cutover:
moment.Duration
(which you an perform math on)__cached__
if possible