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

[Backport master] Fix failing transform tests and support dates_as_epoch_millis #5212

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Dec 28, 2020

Tests were failing due to a change in the transform API which now
prefers ISO dates, rather than epoch milliseconds for dates. This
resulted in a serialisation failure.

This commit addresses that by conditionally producing the requests
based on the version of ES being tested, so that a property of the
appropriate type is used for deserialisation of the preview.

This also adds support for the now dates_as_epoch_millis setting which
allows the original epoch millisecond format to be returned for ES 7.11
requests, when the option is true.

(cherry picked from commit 7994d6f)
Backport 7994d6f from #5209

Tests were failing due to a change in the transform API which now
prefers ISO dates, rather than epoch milliseconds for dates. This
resulted in a serialisation failure.

This commit addresses that by conditionally producing the requests
based on the version of ES being tested, so that a property of the
appropriate type is used for deserialisation of the preview.

This also adds support for the now dates_as_epoch_millis setting which
allows the original epoch millisecond format to be returned for ES 7.11
requests, when the option is true.

(cherry picked from commit 7994d6f)
@Mpdreamz
Copy link
Member Author

known flakey tests in (WindowsIntegrationTests latest)

@Mpdreamz Mpdreamz merged commit fcb090f into master Dec 28, 2020
@Mpdreamz Mpdreamz deleted the backport/master/transform-preview branch December 28, 2020 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants