Skip to content

Conversation

@phandinhthe
Copy link
Contributor

@phandinhthe phandinhthe commented Jan 19, 2026

Description

hotfix/master-support-to-inject-product-mapper-and-valid-thru-conversion

  • feat: Add mapValidThru method for validThru field conversion in ProductMapper.
  • feat: Include validThru field mapping in toPresentation, toArrangementItem, and toArrangementItemPut methods.
  • test: Update test cases to include validThru field handling.

Checklist

  • I made sure, I read CONTRIBUTING.md to put right branch prefix as per my need.
  • I made sure to update CHANGELOG.md.
  • I made sure to update Stream Wiki(only valid in case of new stream module or architecture changes).
  • My changes are adequately tested.
  • I made sure all the SonarCloud Quality Gate are passed.

- feat: Inject `ProductMapper` in `ProductIngestionSaga` and `BatchProductIngestionSaga`.
- feat: Add custom mapper for `validThru` in `ProductMapper`.
- test: Update tests to support `ProductMapper` injection.
…rsion**

- feat: Add `mapValidThru` method for `validThru` field conversion in `ProductMapper`.
- feat: Include `validThru` field mapping in `toPresentation`, `toArrangementItem`, and `toArrangementItemPut` methods.
- test: Update test cases to include `validThru` field handling.
@phandinhthe phandinhthe requested a review from a team as a code owner January 19, 2026 03:38
… enhance ValidThru mappings and add ProductMapper mocks

- Simplify `mapValidThru` logic in `ProductMapper`
- Add `ProductMapper` mocks in `BatchProductIngestionSagaTest` and `ProductIngestionSagaTest`
- Add test for `validThru` null case in `ProductMapperTest`
Copy link
Contributor

@jjjasper jjjasper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete tests and possible NPE?

…version): remove unused ProductMapper mocks and add ValidThru mapping test

- Remove `ProductMapper` mocks from `BatchProductIngestionSagaTest` and `ProductIngestionSagaTest`.
- Add new test case for `validThru` non-null mapping in `ProductMapperTest`.
@phandinhthe phandinhthe enabled auto-merge January 20, 2026 15:42
@sonarqubecloud
Copy link

@phandinhthe phandinhthe merged commit d80b78a into master Jan 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants