-
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
Percentile Agg #2486
Percentile Agg #2486
Conversation
Conflicts: src/kibana/components/agg_types/buckets/terms.js src/kibana/plugins/visualize/editor/agg.js
2a92ae3
to
ee4002c
Compare
Conflicts: src/kibana/components/agg_types/buckets/terms.js src/kibana/components/agg_types/controls/order_agg.html src/kibana/plugins/visualize/editor/agg.js src/kibana/plugins/visualize/editor/agg_params.js test/unit/specs/components/agg_types/index.js
There seems to be a bunch of related changes here. Can you expand on the pull request description with the major highlights of the changes? |
@@ -20,31 +39,53 @@ define(function (require) { | |||
if (!_.isFunction(fn)) throw new TypeError('expexted a function that is triggered on each watch'); |
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.
"expected"
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.
Thnukz
8eabde1
to
cc20937
Compare
cc20937
to
f656731
Compare
## Summary Fixes `AggConfig` handling to properly escape backslash as well as the single quote it already escapes. (I believe this has been around ever since #2486.)
## Summary Fixes `AggConfig` handling to properly escape backslash as well as the single quote it already escapes. (I believe this has been around ever since elastic#2486.) (cherry picked from commit 9916dd0)
## Summary Fixes `AggConfig` handling to properly escape backslash as well as the single quote it already escapes. (I believe this has been around ever since elastic#2486.) (cherry picked from commit 9916dd0)
# Backport This will backport the following commits from `main` to `8.x`: - [Fix AggConfig backslash escaping (#193932)](#193932) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lukas Olson","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T15:56:48Z","message":"Fix AggConfig backslash escaping (#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com//pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Aggregations","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","backport:prev-major","v8.16.0"],"title":"Fix AggConfig backslash escaping","number":193932,"url":"https://github.com/elastic/kibana/pull/193932","mergeCommit":{"message":"Fix AggConfig backslash escaping (#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com//pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193932","number":193932,"mergeCommit":{"message":"Fix AggConfig backslash escaping (#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com//pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Lukas Olson <[email protected]>
## Summary Fixes `AggConfig` handling to properly escape backslash as well as the single quote it already escapes. (I believe this has been around ever since elastic#2486.)
# Backport This will backport the following commits from `main` to `8.x`: - [Fix AggConfig backslash escaping (elastic#193932)](elastic#193932) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lukas Olson","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T15:56:48Z","message":"Fix AggConfig backslash escaping (elastic#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com/elastic/pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Aggregations","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","backport:prev-major","v8.16.0"],"title":"Fix AggConfig backslash escaping","number":193932,"url":"https://github.com/elastic/kibana/pull/193932","mergeCommit":{"message":"Fix AggConfig backslash escaping (elastic#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com/elastic/pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193932","number":193932,"mergeCommit":{"message":"Fix AggConfig backslash escaping (elastic#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com/elastic/pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Lukas Olson <[email protected]>
## Summary Fixes `AggConfig` handling to properly escape backslash as well as the single quote it already escapes. (I believe this has been around ever since elastic#2486.)
# Backport This will backport the following commits from `main` to `8.15`: - [Fix AggConfig backslash escaping (#193932)](#193932) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lukas Olson","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-27T15:56:48Z","message":"Fix AggConfig backslash escaping (#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com//pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Aggregations","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","backport:prev-major","v8.16.0"],"title":"Fix AggConfig backslash escaping","number":193932,"url":"https://github.com/elastic/kibana/pull/193932","mergeCommit":{"message":"Fix AggConfig backslash escaping (#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com//pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193932","number":193932,"mergeCommit":{"message":"Fix AggConfig backslash escaping (#193932)\n\n## Summary\r\n\r\nFixes `AggConfig` handling to properly escape backslash as well as the\r\nsingle quote it already escapes.\r\n\r\n(I believe this has been around ever since\r\nhttps://github.com//pull/2486.)","sha":"9916dd0137a87ee9969b3a8d42bbf40cb753dae5"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> --------- Co-authored-by: Lukas Olson <[email protected]>
aggType
objects now extend theBucket/MetricAggType
classesaggTypes
now read their own values from buckets: count, percentiles and all others read the values differentlyaggConfig
objects are considered "request"aggConfig
a by default and can have different or multiple "response"aggConfigs
getResponseConfigClass
module creates a temporary class that extends the agg config instance to allow mimicking the agg config but overriding specific properties (like make label and id)$scope.$watchMulti
syntaxes to support$watchCollection
and deep object equality more info$scope.$bind
for isolate scope-like two-way binding of parent scope values