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

Allow time ranges before the epoch in discover #31807

Merged

Conversation

flash1293
Copy link
Contributor

Summary

Fixes #30420

Switches the time range query to strict_date_optional_time to allow for values before the epoch.

Checklist

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

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
- [ ] Documentation was added for features that require explanation or tutorials

For maintainers

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

@flash1293 flash1293 changed the title Switch range query to strict_date_optional_time and add unit test Allow time ranges before the epoch in discover Feb 22, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@flash1293 flash1293 changed the title Allow time ranges before the epoch in discover [wip] Allow time ranges before the epoch in discover Feb 22, 2019
@flash1293
Copy link
Contributor Author

The rewrite of the filter format has to be moved to createFilter in the timefilter because various places rely on gte and lte to be numbers for comparison.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@flash1293 flash1293 force-pushed the 30420/fix-timepicker-before-epoch branch from 3521de9 to d33ed7a Compare February 27, 2019 15:39
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@flash1293 flash1293 removed the request for review from stacey-gammon February 27, 2019 21:15
@flash1293 flash1293 force-pushed the 30420/fix-timepicker-before-epoch branch from 8993b6a to accd9af Compare February 28, 2019 12:45
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@flash1293 flash1293 changed the title [wip] Allow time ranges before the epoch in discover Allow time ranges before the epoch in discover Mar 1, 2019
Copy link
Member

@lukasolson lukasolson left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on! LGTM, tested each of the places that changed in this PR and seems to work now. The number of files this had to touch is more evidence we need a central place for conversion of a date filter to ES query DSL.

@flash1293 flash1293 merged commit 80f2baa into elastic:master Mar 4, 2019
@flash1293 flash1293 deleted the 30420/fix-timepicker-before-epoch branch March 4, 2019 15:59
flash1293 added a commit to flash1293/kibana that referenced this pull request Mar 4, 2019
flash1293 added a commit to flash1293/kibana that referenced this pull request Mar 4, 2019
@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Mar 27, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.0.0 v7.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants