-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Merged
Merged
Percentile Agg #2486
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
Conflicts: src/kibana/components/agg_types/buckets/terms.js src/kibana/plugins/visualize/editor/agg.js
2a92ae3
to
ee4002c
Compare
4 tasks
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
@@ -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
lukasolson
added a commit
that referenced
this pull request
Sep 27, 2024
## 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.)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Sep 27, 2024
## 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)
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Sep 27, 2024
## 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)
kibanamachine
added a commit
that referenced
this pull request
Sep 27, 2024
# 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":"lukas@elastic.co"},"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 <lukas@elastic.co>
kibanamachine
added a commit
that referenced
this pull request
Oct 9, 2024
# 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":"lukas@elastic.co"},"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 <lukas@elastic.co>
lukasolson
added a commit
to lukasolson/kibana
that referenced
this pull request
Oct 22, 2024
## 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)
lukasolson
added a commit
that referenced
this pull request
Oct 22, 2024
# Backport This will backport the following commits from `main` to `7.17`: - [Fix AggConfig backslash escaping (#193932)](#193932) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Lukas Olson","email":"lukas@elastic.co"},"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","v8.15.4"],"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":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^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","labelRegex":"^v8.16.0$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/194324","number":194324,"state":"MERGED","mergeCommit":{"sha":"6040c6ed836f3a0a62545198119af20b2502301e","message":"[8.x] Fix AggConfig backslash escaping (#193932) (#194324)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.x`:\n- [Fix AggConfig backslash escaping\n(#193932)](https://github.com/elastic/kibana/pull/193932)\n\n<!--- Backport version: 9.4.3 -->
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.
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