elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.76k stars 8.16k forks source link

[Discover][Surrounding Documents] Fix time range filter #186998

Closed jughosta closed 2 months ago

jughosta commented 3 months ago

Kibana version: from v8.11

Description of the problem including expected versus actual behavior: The time range filter in search requests is missing correct values:

"@timestamp": {
  "format": "strict_date_optional_time",
  "gte": null,
  "lte": null
}

Steps to reproduce:

  1. Navigate to Surrounding Document page
  2. Check the search request query params
  3. Expected: correct values for gte/lte.

The bug was introduced in https://github.com/elastic/kibana/pull/163784

The issue is most probably in https://github.com/elastic/kibana/blob/110449df5c0e63c2a84343ab3c2152c1640afb76/src/plugins/discover/public/application/context/services/context.ts#L80 where timeValueMillis is actually not a number now.

elasticmachine commented 3 months ago

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)