kibana/x-pack/plugins
Nick Partridge 6a61db01b9
[8.17] [Lens] Restore dynamic colouring by value for Last value agg (#209110) (#210878)
# Backport

This will backport the following commits from `main` to `8.17`:
- [[Lens] Restore dynamic colouring by value for Last value agg
(#209110)](https://github.com/elastic/kibana/pull/209110)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Marco
Liberati","email":"dej611@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-11T14:55:35Z","message":"[Lens]
Restore dynamic colouring by value for Last value agg (#209110)\n\n##
Summary\n\nFixes #208924\n\nThis PR improves the numeric check for the
Last value agg within the\nMetric chart type avoiding completely to
access the active data and\nrather rely on the datasource
configuration.\nThe new utility function in fact won't rely any more on
active data\nrather on the Lens configuration itself, which is more
robust, faster\nand flexible.\n\n<img width=\"2552\" alt=\"Screenshot
2025-01-31 at 14 30
12\"\nsrc=\"https://github.com/user-attachments/assets/5f8792db-40ff-497b-8e2f-0737c2932f92\"\n/>\n\n\n###
Notes for testing\n\nI've created a testing dashboard with all the
possible combinations of\ncolouring for metric and
tables.\n\n\n[last_value_dashboard.ndjson.txt](https://github.com/user-attachments/files/18618905/last_value_dashboard.ndjson.txt)\n\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n\n## Release
note\n\nThis fixes an issue where dynamic colouring has been disabled
from Last\nvalue aggregation
types.","sha":"abba6675e29b28b91daea1f46d2ff48363ab78ab","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Visualizations","Feature:Lens","backport
missing","backport:prev-major","v9.1.0"],"title":"[Lens] Restore dynamic
colouring by value for Last value
agg","number":209110,"url":"https://github.com/elastic/kibana/pull/209110","mergeCommit":{"message":"[Lens]
Restore dynamic colouring by value for Last value agg (#209110)\n\n##
Summary\n\nFixes #208924\n\nThis PR improves the numeric check for the
Last value agg within the\nMetric chart type avoiding completely to
access the active data and\nrather rely on the datasource
configuration.\nThe new utility function in fact won't rely any more on
active data\nrather on the Lens configuration itself, which is more
robust, faster\nand flexible.\n\n<img width=\"2552\" alt=\"Screenshot
2025-01-31 at 14 30
12\"\nsrc=\"https://github.com/user-attachments/assets/5f8792db-40ff-497b-8e2f-0737c2932f92\"\n/>\n\n\n###
Notes for testing\n\nI've created a testing dashboard with all the
possible combinations of\ncolouring for metric and
tables.\n\n\n[last_value_dashboard.ndjson.txt](https://github.com/user-attachments/files/18618905/last_value_dashboard.ndjson.txt)\n\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n\n## Release
note\n\nThis fixes an issue where dynamic colouring has been disabled
from Last\nvalue aggregation
types.","sha":"abba6675e29b28b91daea1f46d2ff48363ab78ab"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209110","number":209110,"mergeCommit":{"message":"[Lens]
Restore dynamic colouring by value for Last value agg (#209110)\n\n##
Summary\n\nFixes #208924\n\nThis PR improves the numeric check for the
Last value agg within the\nMetric chart type avoiding completely to
access the active data and\nrather rely on the datasource
configuration.\nThe new utility function in fact won't rely any more on
active data\nrather on the Lens configuration itself, which is more
robust, faster\nand flexible.\n\n<img width=\"2552\" alt=\"Screenshot
2025-01-31 at 14 30
12\"\nsrc=\"https://github.com/user-attachments/assets/5f8792db-40ff-497b-8e2f-0737c2932f92\"\n/>\n\n\n###
Notes for testing\n\nI've created a testing dashboard with all the
possible combinations of\ncolouring for metric and
tables.\n\n\n[last_value_dashboard.ndjson.txt](https://github.com/user-attachments/files/18618905/last_value_dashboard.ndjson.txt)\n\n\n###
Checklist\n\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n\n## Release
note\n\nThis fixes an issue where dynamic colouring has been disabled
from Last\nvalue aggregation
types.","sha":"abba6675e29b28b91daea1f46d2ff48363ab78ab"}}]}]
BACKPORT-->

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2025-02-12 19:12:27 +01:00
..
actions [8.17] [ResponseOps][Actions] Allow to delete connectors with unsupported connector type using the API (#208033) (#208659) 2025-01-29 03:22:45 +01:00
ai_infra [8.17] [ES3] Enable AI assistant knowledge base (#202210) (#202387) 2024-11-30 09:35:18 -06:00
aiops [8.x] [ML] AiOps: Action for adding Log Rate analysis embeddable to a dashboard (#200557) (#200891) 2024-11-20 06:48:58 -06:00
alerting [8.17] [ResponseOps][Rules] Validate timezone in rule routes (#201508) (#208299) 2025-01-28 09:01:19 +01:00
banners [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
canvas [8.17] [canvas] fix All embeddables rebuilt on refresh (#209677) (#209858) 2025-02-05 16:13:05 -05:00
cases [8.17] [Response Ops][Cases] Cases with empty string assignees throwing error (#209973) (#210755) 2025-02-12 16:49:46 +01:00
cloud [8.x] [CLOUD-UI] Cloud onboarding token (#198444) (#200832) 2024-11-19 19:29:49 -06:00
cloud_defend [8.x] Authorized route migration for routes owned by @elastic/kibana-cloud-security-posture (#198189) (#200714) 2024-11-19 08:08:37 -06:00
cloud_integrations [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
cloud_security_posture [8.x] fix: Change &quot;Single Account&quot; to &quot;Single Project&quot; in button text (#200327) (#200813) 2024-11-19 15:35:25 -06:00
cross_cluster_replication [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
custom_branding [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
dashboard_enhanced [8.x] Address some of the no_group_crossing dependencies (#198261) (#199165) 2024-11-08 10:46:18 -06:00
data_quality [8.x] Address some of the no_group_crossing dependencies (#198261) (#199165) 2024-11-08 10:46:18 -06:00
data_usage [8.x] [Data Usage] remove autoops.api.tls.ca config (#200808) (#201026) 2024-11-20 14:52:51 -06:00
data_visualizer [8.x] [ML][ES|QL] Adds query guardrails and technical preview badge to ES|QL data visualizer (#200325) (#200677) 2024-11-19 03:59:53 -06:00
discover_enhanced [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
drilldowns [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
ecs_data_quality_dashboard [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
elastic_assistant [8.17] [Security assistant] Update conversations api improvement (#206828) (#206861) 2025-01-15 22:22:13 +00:00
embeddable_enhanced [8.x] [Dashboard] Fix incorrect actions in edit mode after discarding unsaved changes (#200230) (#200279) 2024-11-14 18:53:56 -06:00
encrypted_saved_objects [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
enterprise_search [8.17] [Search][a11y] Add validation to extraction rules form (#202980) (#205192) 2024-12-27 07:09:33 -06:00
entity_manager [8.17] [Inventory] Change discover link to use entity definition (#201433) (#202153) 2024-11-29 08:23:46 -06:00
event_log [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
features [8.x] [Cases] [Security Solution] New cases subfeatures, add comments and reopen cases (#194898) (#200807) 2024-11-19 15:13:06 -06:00
fields_metadata [8.17] Update platform security modules (main) (#206227) (#207316) 2025-01-22 14:01:19 +01:00
file_upload [8.x] Authorized route migration for routes owned by @elastic/kibana-presentation (#198193) (#199979) 2024-11-13 06:59:31 -06:00
fleet [8.17] [Fleet] EPM - Fix error message for data stream settings update (#210330) (#210540) 2025-02-11 14:23:02 +01:00
global_search [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
global_search_bar [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
global_search_providers [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
graph [8.x] [EuiInMemoryTable] Persist table rows per page and sort (#198297) (#200569) 2024-11-18 09:22:33 -06:00
grokdebugger [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
index_lifecycle_management [8.x] [Index Management] Feature add button handler for the ilm banner via extension service (#199077) (#200965) 2024-11-20 11:25:43 -06:00
index_management [8.17] Remove inference_id field if no inference endpoint is selected (#205660) (#209351) 2025-02-03 18:50:32 +01:00
inference [8.x] [inference] add pre-bound versions of &#x60;chatComplete&#x60; and &#x60;output&#x60; APIs (#200568) (#201028) 2024-11-20 14:54:41 -06:00
ingest_pipelines [8.x] Add terminate processor (#199674) (#200874) 2024-11-20 05:40:20 -06:00
integration_assistant [8.17] [Automatic Import] Handle empty categorization results (#210420) (#210447) 2025-02-10 21:54:43 +01:00
kubernetes_security [8.x] Unauthorized route migration for routes owned by kibana-cloud-security-posture (#198353) (#200282) 2024-11-14 19:39:12 -06:00
lens [8.17] [Lens] Restore dynamic colouring by value for Last value agg (#209110) (#210878) 2025-02-12 19:12:27 +01:00
license_api_guard [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
license_management [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
licensing [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
lists [8.x] Authorized route migration for routes owned by @elastic/security-detection-engine (#198195) (#199752) 2024-11-19 08:42:26 -06:00
logstash [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
maps [8.x] [Papercut] Fix KQL parsing error text styling (#199985) (#200543) 2024-11-18 07:35:14 -06:00
ml [8.17] Update @elastic/ml-ui dependencies (main) (#204210) (#207794) 2025-01-22 16:42:41 +00:00
monitoring [8.17] [Stack Monitoring] Do not add empty include array when retrieving logstash pipelines (#202039) (#202100) 2024-11-28 00:18:55 -06:00
monitoring_collection [8.17] [Monitoring] Make monitoring collection API public again (#205190) (#205199) 2024-12-27 08:02:09 -06:00
notifications [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
observability_solution [8.17][Dataset quality] 🐞 Rely solely on _index instead of data_stream properties (#210329) (#210777) 2025-02-12 14:52:03 +01:00
osquery [8.17] Increase maximum Osquery timeout to 24 hours (#207276) (#209036) 2025-01-31 03:05:22 +01:00
painless_lab [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
remote_clusters [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
reporting [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
rollup [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
rule_registry [8.17] Set refresh according to stateful vs stateless when indexing alert documents (#201209) (#202221) 2024-11-29 12:54:23 +01:00
runtime_fields [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
saved_objects_tagging [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
screenshotting [8.x] Address some of the no_group_crossing dependencies (#198261) (#199165) 2024-11-08 10:46:18 -06:00
search_assistant [8.17] [Search] Add ML as required plugin to Search Assistant (#204009) (#204036) 2024-12-12 10:24:38 -06:00
search_connectors [8.x] Categorise Kibana plugins - Wave 2 (#199302) (#199461) 2024-11-09 10:18:22 -06:00
search_homepage [8.x] Categorise Kibana plugins - Wave 2 (#199302) (#199461) 2024-11-09 10:18:22 -06:00
search_indices [8.17] [Search] [Onboarding] Update example data for index (#201983) (#203142) 2024-12-05 19:13:37 +00:00
search_inference_endpoints [8.17] Adding Tech Preview badge for Reranker (#202561) (#203026) 2024-12-04 18:08:49 -06:00
search_notebooks [8.x] Categorise Kibana plugins - Wave 2 (#199302) (#199461) 2024-11-09 10:18:22 -06:00
search_playground [8.17] [ES3] Enable AI assistant knowledge base (#202210) (#202387) 2024-11-30 09:35:18 -06:00
searchprofiler [8.17] [search profiler] Move profile button inline with index field (#202253) (#208821) 2025-01-30 08:54:01 +01:00
security [8.17] [Session management] update cleanup query to allow partial search results for PIT query (#203413) (#203539) 2024-12-10 06:49:12 -06:00
security_solution [8.17] [EDR Workflows] Unskip uninstall_agent_from_host.cy.ts (#210348) (#210833) 2025-02-12 17:34:43 +01:00
security_solution_ess [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
security_solution_serverless [8.17] Only show data warning screen on Serverless (#201920) (#210383) 2025-02-10 16:38:34 +01:00
serverless [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
serverless_observability [8.17] [ES3] Enable AI assistant knowledge base (#202210) (#202387) 2024-11-30 09:35:18 -06:00
serverless_search [8.17] [Search] Add ML as required plugin to Search Assistant (#204009) (#204036) 2024-12-12 10:24:38 -06:00
session_view [8.x] Unauthorized route migration for routes owned by kibana-cloud-security-posture (#198353) (#200282) 2024-11-14 19:39:12 -06:00
snapshot_restore [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00
spaces [8.17] [Spaces UI] Role Editor Flyout Should Match in Roles Mgmt (#198182) (#202821) 2024-12-04 19:51:52 -05:00
stack_alerts [8.17] [ResponseOps] Do not change time field when edit (#206858) (#208030) 2025-01-23 13:31:16 +00:00
stack_connectors [8.17] [Stack Connectors][SentinelOne + Crowdstrike] Fix the validation of external API responses that return non-JSON (ex. stream) (#203820) (#204487) 2024-12-17 14:30:56 +01:00
task_manager [8.17] Exclude unrecognized tasks from the task manager aggregate API (#202163) (#202682) 2024-12-03 07:20:16 -06:00
telemetry_collection_xpack [8.17] Adding telemetry for the fips config (#201282) (#202453) 2024-12-02 08:52:55 -06:00
threat_intelligence [8.x] [Cases] [Security Solution] New cases subfeatures, add comments and reopen cases (#194898) (#200807) 2024-11-19 15:13:06 -06:00
timelines [8.17] [Security Solution] Fix timeline dynamic batching (#204034) | [ Security Solution ] Fix Refetch logic with new timeline batching (#205893) (#205676) 2025-02-06 11:09:06 -06:00
transform [8.17] [ML] Transforms: Support wildcards in the alerting rule flyout (#204226) (#204713) 2024-12-18 06:34:58 -06:00
translations [8.17] [Share Modal] Reinstate switch to support generating public urls for embed when supported (#207383) (#210342) 2025-02-10 15:13:06 +01:00
triggers_actions_ui [8.17] [ResponseOps][Alerts] Wrap Stack Alerts page filter controls in error boundary with fix call-to-action (#209559) (#210387) 2025-02-10 18:39:50 +01:00
upgrade_assistant [8.17] [UA] Remove noisey warn when deleting from &#x60;.tasks&#x60; (#204720) (#204758) 2024-12-18 09:01:19 -06:00
watcher [8.x] [Sustainable Kibana Architecture] Update plugins (wave #1) (#195375) (#199268) 2024-11-08 07:22:05 -06:00