-
Notifications
You must be signed in to change notification settings - Fork 194
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
refactor: create AbstractAggregationRequestIT class + fail with OpenS… #421
Merged
dblock
merged 12 commits into
opensearch-project:main
from
szczepanczykd:feature/flaky-test-aggregation-request-it
Apr 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
65ed8c3
refactor: create AbstractAggregationRequestIT class + fail with OpenS…
szczepanczykd d938d19
feature: upload IntegrationTests reports
szczepanczykd bf9b658
fix: fixed workflow file
szczepanczykd 51e0821
fix: upload reports on failure
szczepanczykd 11210c4
refactor: add more error details to tests
szczepanczykd e168d8d
feat: update github workflows with name and retention-days
szczepanczykd 5ee1c48
test: create index with manual mappings
szczepanczykd 986d6dc
refactor: change expDate type from Date to String
szczepanczykd 71944df
refactor: stability check
szczepanczykd c8f6e5e
refactor: stability check 2
szczepanczykd 26753a9
fix: change retention-days to 7 for uploaded artifacts
szczepanczykd bc4eaec
refactor: change expDate type to Long
szczepanczykd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not very straightforward: definitely 👍 to move off the
Date
, but using string to pass the dates through is not a best option I think:LocateDateTime
/Instant
instead` ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String allows to insert date in ISO format without any transformations.
LocateDateTime and Instant are requiring:
build.gradle.kts:
testImplementation("com.fasterxml.jackson.datatype", "jackson-datatype-jsr310", jacksonVersion)
JacksonJsonpMapper -> findAndRegisterModules method used:
private Long expDate; does not require anything more.
Seems it works but the minus is that the Document is created with numeric values:
So I'm not sure what is better than simple String ;P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is what `@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = ISO) is for, piratically this is how the feature should be used (yes, using string does simplify tests).
That's fine, the OS is able to deal with date in different formats.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's stick with Long expDate.