-
Notifications
You must be signed in to change notification settings - Fork 7
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
Updated to correctly serialize datetimes & refactor lifecycle status endpoint #2251
Conversation
…ancel-claim' into dfitchett/svc-bip-api/refactor-cancel-claim
…o put lifecycle status.
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.
LGTM
…api/integration-fixes # Conflicts: # svc-bip-api/src/integrationTest/java/gov/va/vro/bip/BaseIntegrationTest.java # svc-bip-api/src/integrationTest/java/gov/va/vro/bip/RabbitMqIntegrationTest.java # svc-bip-api/src/main/java/gov/va/vro/bip/service/BipApiService.java # svc-bip-api/src/main/java/gov/va/vro/bip/service/IBipApiService.java # svc-bip-api/src/main/java/gov/va/vro/bip/service/RabbitMqController.java # svc-bip-api/src/test/java/gov/va/vro/bip/service/BipApiServiceTest.java
Test Results143 tests +3 143 ✔️ +3 46s ⏱️ -1s Results for commit e27c3ec. ± Comparison against base commit 57e5553. This pull request removes 2 and adds 5 tests. Note that renamed tests count towards both.
|
|
||
@Getter | ||
@Jacksonized | ||
@SuperBuilder(toBuilder = true) |
Check notice
Code scanning / CodeQL
Useless parameter Note
The parameter 'b' is never used.
|
||
@Getter | ||
@Jacksonized | ||
@SuperBuilder(toBuilder = true) |
Check notice
Code scanning / CodeQL
Missing Override annotation Note
BipPayloadResponse.toBuilder
JaCoCo Test Coverage
|
Contained in this PR:
2023-09-27T00:00:00-06:00
What was the problem?
Date times are not being de/serialized into a date time expressed as a string, but instead as a number of seconds.
Associated tickets or Slack threads:
How does this fix it?1
Updates the jackson2JsonMessageConverter with an objectMapper configured to use the JavaTimeModule which supports serialization/deserialization of datetime strings into java Instants.
How to test this PR
./gradlew :svc-bip-api:check
./gradlew :svc-bip-api:integrationTest
svc-bip-api
docker and run a test by:bip-api
exchange calledresponse
{"claimId":1010,"claimLifecycleStatus":"test"}
and add a message property calledreply_to
with the valueresponse
{"claimId":1001}
and add a message property calledreply_to
with the valueresponse
Footnotes
Pull-Requests guidelines. If PR is significant, update Current Software State wiki page. ↩