-
Notifications
You must be signed in to change notification settings - Fork 10
621: Implement check for linked orders/results #988
Conversation
.../java/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataOrchestrator.java
Outdated
Show resolved
Hide resolved
etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/database/PostgresDao.java
Outdated
Show resolved
Hide resolved
…ssageLinking and refactored to resuse code
…, added initial implementation for FileMessageLinkStorage class
… methods in PartnerMetadataOrchestrator and SendOrderUseCase
etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/database/PostgresDao.java
Outdated
Show resolved
Hide resolved
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.
More comments.
etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/messagelink/MessageLink.java
Outdated
Show resolved
Hide resolved
etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/orders/SendOrderUseCase.java
Show resolved
Hide resolved
etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/orders/SendOrderUseCase.java
Show resolved
Hide resolved
etor/src/main/java/gov/hhs/cdc/trustedintermediary/external/database/PostgresDao.java
Outdated
Show resolved
Hide resolved
* This class represents a link between messages. Each link has a unique ID and is associated with a | ||
* set of message IDs to link. | ||
*/ | ||
public final class MessageLink { |
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.
Thoughts on making this a record?
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.
Not sure if it makes sense here as we need to manage state for message ids. It's not supposed to be immutable
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.
Yes. What remains immutable is the reference to the Set object, but you can modify the contents of the Set itself.
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 looks really good!
etor/src/main/java/gov/hhs/cdc/trustedintermediary/etor/messagelink/MessageLinkException.java
Outdated
Show resolved
Hide resolved
etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/etor/messagelink/MessageLinkTest.groovy
Outdated
Show resolved
Hide resolved
etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/etor/messagelink/MessageLinkTest.groovy
Outdated
Show resolved
Hide resolved
|
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.
Sweet! Great changes to the PostgresDao and thanks for moving the logic for reading the links out of the PostgresDao. That will make it easier to migrate once my PR is merged.
Implement check for linked orders/results
MessageLink
as an abstraction of message linksIssue
#621
Checklist