-
Notifications
You must be signed in to change notification settings - Fork 5
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
Rename sent/received submission id to inbound/outbound message id variables #1597
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/orders/SendOrderUseCase.java
Show resolved
Hide resolved
PR Code Suggestions ✨Explore these optional code suggestions:
|
...n/java/gov/hhs/cdc/trustedintermediary/external/database/DatabasePartnerMetadataStorage.java
Outdated
Show resolved
Hide resolved
...rc/main/java/gov/hhs/cdc/trustedintermediary/external/hapi/HapiPartnerMetadataConverter.java
Show resolved
Hide resolved
etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/etor/messages/SendMessageHelperTest.groovy
Outdated
Show resolved
Hide resolved
.../gov/hhs/cdc/trustedintermediary/external/database/DatabasePartnerMetadataStorageTest.groovy
Outdated
Show resolved
Hide resolved
e); | ||
} | ||
} | ||
|
||
public void saveSentMessageSubmissionId(String receivedSubmissionId, String sentSubmissionId) { | ||
if (sentSubmissionId == null || receivedSubmissionId == null) { | ||
public void saveInboundMessageId(String outboundMessageId, String inboundMessageId) { |
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 seems to do both inbound and outbound message saving. @basiliskus Should I leave the old name if that's the case?
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.
Hmmm I think we should remove the Sent
part and make it plural. So it would be renamed as saveMessageSubmissionIds
or saveSubmissionIds
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.
I'll rename it to saveMessageSubmissionIds
Quality Gate passedIssues Measures |
TestApplicationContext.injectRegisteredImplementations() | ||
|
||
when: | ||
SendOrderUseCase.getInstance().convertAndSend(Mock(Order), null) | ||
|
||
then: | ||
3 * mockLogger.logWarning(_) | ||
0 * mockOrchestrator.updateMetadataForReceivedMessage(_, _) | ||
0 * mockOrchestrator.updateMetadataForOutboundMessage(_, _) | ||
} | ||
|
||
def "convertAndSend logs error and continues when updateMetadataForReceivedOrder throws exception"() { |
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.
updateMetadataForReceivedOrder doesn't appear to exist unless it was accidentally overriden.
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.
It should be renamed as updateMetadataForOutboundMessage
Description
Renamed sentSubmissionId and receivedSubmissionId to inboundMessageId and outboundMessageId. Renamed sentMessageId and receivedMessageId to inboundMessageId and outboundMessageId. The rename is from the perspective of TI who is receiving and sending to ReportStream.
Issue
#1404
Checklist
Note: You may remove items that are not applicable