Closed pluckyswan closed 5 days ago
Here are some key observations to aid the review process:
**๐ซ Ticket compliance analysis ๐ถ** **[1404](https://github.com/CDCgov/trusted-intermediary/issues/1404) - Partially compliant** Fully compliant requirements: - Rename sentSubmissionId to outboundMessageId. - Rename receivedSubmissionId to inboundMessageId. Not compliant requirements: - Verify consistency with naming conventions with Basilio. - Rename comments to reflect new naming. - Update the database to reflect new naming. |
โฑ๏ธ Estimated effort to review: 3 ๐ต๐ต๐ตโชโช |
๐งช No relevant tests |
๐ No security concerns identified |
โก Recommended focus areas for review Incomplete Testing The PR lacks tests for the updated variable names in different scenarios and edge cases. |
Explore these optional code suggestions:
Category | Suggestion | Score |
Possible issue |
Add validation for
___
**Ensure that the | 7 |
Add validation for null
___
**Ensure that | 7 | |
General |
Ensure consistency in variable usage across test cases___ **Ensure that the new variable namesoutboundMessageId and inboundMessageId are correctly used in all method calls and assertions throughout the test cases to maintain consistency with the updated variable names.** [etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataTest.groovy [37-38]](https://github.com/CDCgov/trusted-intermediary/pull/1597/files#diff-9f402f9f99421814398f8f55eb23d20dea0dc25353128f07ed9e6fa9dd4c7375R37-R38) ```diff +metadata.outboundMessageId() == outboundMessageId +metadata.inboundMessageId() == inboundMessageId - ``` Suggestion importance[1-10]: 7Why: The suggestion correctly identifies the need for consistent use of updated variable names across all test cases, which is crucial for maintaining test accuracy and readability. | 7 |
Confirm accurate metadata updates with new variable names___ **Verify that the methodupdateMetadataForSentMessage is updated to handle the new variable names outboundMessageId and inboundMessageId correctly, ensuring that metadata is accurately updated in the system.** [etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/etor/orders/SendOrderUseCaseTest.groovy [51]](https://github.com/CDCgov/trusted-intermediary/pull/1597/files#diff-56696e8718f522c7926a514339b630853370a926d4ca74c4911c87ccd7585493R51-R51) ```diff +1 * mockOrchestrator.updateMetadataForSentMessage(outboundMessageId, inboundMessageId) - ``` Suggestion importance[1-10]: 7Why: This suggestion is relevant as it ensures that the method handling metadata updates uses the new variable names correctly, which is important for the integrity of metadata management. | 7 | |
Ensure correct method parameter usage in result sending and metadata updating___ **Ensure that theSendResultUseCase class's convertAndSend method correctly utilizes the new variable names outboundMessageId and inboundMessageId for sending results and updating metadata.** [etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/etor/results/SendResultUseCaseTest.groovy [42]](https://github.com/CDCgov/trusted-intermediary/pull/1597/files#diff-140f16ba8ce4161dc83b193a35ee178dbb5765b120760538b950068f99f8602dR42-R42) ```diff +SendResultUseCase.getInstance().convertAndSend(mockResult, outboundMessageId) - ``` Suggestion importance[1-10]: 7Why: The suggestion is valid as it emphasizes the correct usage of new variable names in method parameters for result sending and metadata updating, ensuring system consistency. | 7 | |
Validate proper metadata updating with new inbound message ID handling___ **Check that thewithInboundMessageId method is correctly implemented to handle the new inboundMessageId variable, ensuring that it properly updates the metadata within the PartnerMetadata class.**
[etor/src/test/groovy/gov/hhs/cdc/trustedintermediary/etor/metadata/partner/PartnerMetadataTest.groovy [84]](https://github.com/CDCgov/trusted-intermediary/pull/1597/files#diff-9f402f9f99421814398f8f55eb23d20dea0dc25353128f07ed9e6fa9dd4c7375R84-R84)
```diff
+def updatedMetadata = metadata.withInboundMessageId(inboundMessageId)
-
```
Suggestion importance[1-10]: 7Why: This suggestion is pertinent as it checks the correct implementation of the method handling the new inbound message ID, which is critical for accurate metadata updates in the system. | 7 |
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
97.4% Coverage on New Code
0.0% Duplication on New Code
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
https://github.com/CDCgov/trusted-intermediary/issues/1404
Checklist
Note: You may remove items that are not applicable