Skip to content
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

[Discover] Context unskip date nanos functional tests #73781

Conversation

kertal
Copy link
Member

@kertal kertal commented Jul 30, 2020

Summary

Unskips date_nanos functional tests, and improves the search_after submission to Elasticsearch for date_nanos.
It's now possible to use string formatted dates (elastic/elasticsearch#60328). The new solution is using this improvement, it's no longer a workaround 🥳. Furthermore it supports custom date time formats, so this tests now also work 🎂 . Due to 64bit integer value browser limitations the date_nanos value had to be built in a custom function and was submitted as a text value before (else it was automatically rounded by the browser).

Fixes #58815

Checklist

Delete any items that are not applicable to this PR.

@kertal kertal self-assigned this Jul 30, 2020
@kertal kertal added Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0 labels Jul 30, 2020
@kertal kertal marked this pull request as ready for review July 30, 2020 11:34
@kertal kertal requested a review from a team July 30, 2020 11:34
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Contributor

@spalger spalger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any issues, but I'm also not really qualified to review this 😅

Copy link
Member

@dmlemeshko dmlemeshko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great progress @kertal 👏

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, another test unskipped 🎉 As far as I can see the convertIsoToNanosAsStr is not used anywhere right now, you could potentially remove it (?)

@kertal
Copy link
Member Author

kertal commented Jul 31, 2020

As far as I can see the convertIsoToNanosAsStr is not used anywhere right now, you could potentially remove it (?)

Definitely! Thanks, removed it.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

async chunks size

id value diff baseline
discover 430.0KB -217.0B 430.2KB
infra 3.6MB -42.0B 3.6MB
monitoring 1.1MB +10.0B 1.1MB
triggers_actions_ui 725.8KB -21.0B 725.8KB
total - -270.0B -

page load bundle size

id value diff baseline
data 1.4MB +9.0B 1.4MB
lens 841.0KB -21.0B 841.0KB
total - -12.0B -

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@kertal kertal merged commit 10f8bea into elastic:master Jul 31, 2020
kertal added a commit to kertal/kibana that referenced this pull request Jul 31, 2020
* Use _source value of timestamp for search_after since ES allows this now

* Unskip functional tests

* Remove unused convertIsoToNanosAsStr
# Conflicts:
#	src/plugins/discover/public/application/angular/context/api/utils/get_es_query_search_after.ts
#	test/functional/apps/context/_date_nanos_custom_timestamp.js
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 31, 2020
* master: (38 commits)
  [Discover] Context unskip date nanos functional tests (elastic#73781)
  [ML] Migrate to React BrowserRouter and Kibana provided History. (elastic#71941)
  [Discover] Improve  saveSearch functional test handling (elastic#73626)
  [Metrics UI] Fix all threshold alert conditions disappearing due to alert prefill (elastic#73708)
  [Metrics UI] Fix alert previews of ungrouped alerts (elastic#73735)
  [SIEM] Fixes "include building block button" to operate (elastic#73900)
  [Metrics UI] Fix alert management to open without refresh (elastic#73739)
  [Security Solution][Lists] - Tests cleanup and remove unnecessary import (elastic#73865)
  [Ingest Management] main branch uses epr-snapshot. Others production (elastic#73555)
  [Canvas][tech-debt] Fix SVG not shrinking vertically properly (elastic#73867)
  [Maps] upgrade turf (elastic#73816)
  [Security Solution][Telemetry] Concurrent telemetry requests (elastic#73558)
  [Security Solution][Exceptions] - Update how nested entries are displayed in exceptions viewer (elastic#73745)
  [Security Solution][Exceptions] Adds autocomplete workaround for .text fields (elastic#73761)
  [Metrics UI] Fix previewing of No Data results (elastic#73753)
  Closes elastic#72914 by hiding anomaly detection settings links when the ml plugin is disabled. (elastic#73638)
  [Ingest Manager] Fix config selection in enrollment flyout from config list page (elastic#73833)
  [DOCS] Fixes typo in Alerting actions (elastic#73756)
  [APM] fixes linking errors to ML and Discover (elastic#73758)
  Handle promise rejections when building artifacts (elastic#73831)
  ...
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Aug 4, 2020
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

kertal added a commit that referenced this pull request Aug 5, 2020
* Use _source value of timestamp for search_after since ES allows this now

* Unskip functional tests

* Remove unused convertIsoToNanosAsStr
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
6 participants