Skip to content
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

fix(bpdm-gate): output stage to only provide states based on business partner type #1097

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

SujitMBRDI
Copy link
Contributor

@SujitMBRDI SujitMBRDI commented Oct 29, 2024

Description

In this pull request, we have fixed logic for gate output stage to retrieve states based on business partner type.

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

@SujitMBRDI SujitMBRDI requested a review from nicoprow October 29, 2024 03:34
@SujitMBRDI SujitMBRDI marked this pull request as ready for review October 29, 2024 03:34
Copy link
Contributor

@nicoprow nicoprow left a comment

Choose a reason for hiding this comment

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

Got some doubts we should clarify

@@ -65,7 +65,7 @@ class BusinessPartnerMappings {
} }
.map(::toIdentifierDto)
}?: emptyList(),
states = entity.states.map(::toStateDto),
states = toStateDtos(entity.states, BusinessPartnerType.GENERIC),
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm just looking at the identifiers behaviour. Shouldn't the states not better mirror the behaviour of the identifiers and take the states based on the address type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In my opinion, yes we can do that and it will be right approach as well.

@SujitMBRDI SujitMBRDI force-pushed the fix/gate-output-states branch from 7e809f6 to 2422faf Compare October 29, 2024 06:58
…egorized states

fix(bpdm-gate): output stage to only provide generic states for uncategorized states

fix(bpdm-gate): output stage to only provide states based on business partner type
@SujitMBRDI SujitMBRDI force-pushed the fix/gate-output-states branch from 08ae919 to 9a1b556 Compare October 29, 2024 07:30
@SujitMBRDI SujitMBRDI changed the title fix(bpdm-gate): output stage to only provide generic states for uncategorised states fix(bpdm-gate): output stage to only provide states based on business partner type Oct 29, 2024
@SujitMBRDI
Copy link
Contributor Author

Got some doubts we should clarify

I have adapted changes as we discussed.

@SujitMBRDI SujitMBRDI requested a review from nicoprow October 29, 2024 07:48
@SujitMBRDI SujitMBRDI self-assigned this Oct 29, 2024
Copy link
Contributor

@nicoprow nicoprow left a comment

Choose a reason for hiding this comment

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

Looks good to me

@SujitMBRDI SujitMBRDI merged commit c988c6a into main Oct 29, 2024
12 of 16 checks passed
@nicoprow nicoprow deleted the fix/gate-output-states branch October 31, 2024 02:10
@nicoprow nicoprow added this to the BPDM v6.2.0 / R24.12 milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants