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

Support for date_nanos type timestamps in context view #38023

Merged
merged 12 commits into from
Jun 11, 2019

Conversation

kertal
Copy link
Member

@kertal kertal commented Jun 4, 2019

Summary

Provide ES date_nanos support in context view. This is part of #31424.
In #36111 date_nanos support was implemented, but the context view was disabled, due to issues with rounded sort values.

Testing

You can provision date_nanos data by:

node scripts/es_archiver.js load date_nanos --verbose --es-url http://elastic:changeme@localhost:9200

Or you can convert demo test data to date nanos with the following instruction:

#36111 (comment)

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

- [ ] This was checked for breaking API changes and was labeled appropriately

@kertal kertal force-pushed the pr-31424-date_nanos-context branch from d90fc25 to ffb3345 Compare June 5, 2019 09:39
@elastic elastic deleted a comment from elasticmachine Jun 5, 2019
@elastic elastic deleted a comment from elasticmachine Jun 5, 2019
@elastic elastic deleted a comment from elasticmachine Jun 5, 2019
@kertal kertal changed the title Support for date_nanos in context view initial version Support for date_nanos type timestamps in context view Jun 5, 2019
@kertal kertal force-pushed the pr-31424-date_nanos-context branch from d7cd763 to a1e5d10 Compare June 6, 2019 10:35
@elastic elastic deleted a comment from elasticmachine Jun 6, 2019
@elastic elastic deleted a comment from elasticmachine Jun 6, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@kertal kertal self-assigned this Jun 6, 2019
@elastic elastic deleted a comment from elasticmachine Jun 6, 2019
@kertal kertal added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Jun 6, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@kertal
Copy link
Member Author

kertal commented Jun 7, 2019

I'm currently improving code, moving to typescript, but I think it's wiser to review that in a different PR. So this PR is focused on fixing the rounding issue of date_nanos by using the string value of the timestamp. Main code structure change:
Merging fetchSuccessors & fetchPredecessors to fetchSurroundingDocs in context.js to avoid code duplication

@kertal kertal added the Feature:Discover Discover Application label Jun 7, 2019
Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Code LGTM, added two questions but nothing important

@kertal
Copy link
Member Author

kertal commented Jun 11, 2019

Code LGTM, added two questions but nothing important

thank you so much for reviewing, I'll continue then finishing the typescript version, which will be a separate PR

Now using the the right iso timestamp in every test case
Now using the right ISO timestamp in every test case
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@kertal
Copy link
Member Author

kertal commented Jul 10, 2019

Note: this wasn't backported, what was backported was #38735, the typescript converted version.

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:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.3.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants