Skip to content

Commit

Permalink
fix(bpdm-gate): output stage to only provide states based on business…
Browse files Browse the repository at this point in the history
… partner type
  • Loading branch information
SujitMBRDI committed Oct 29, 2024
1 parent 2422faf commit 08ae919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ For changes to the BPDM Helm charts please consult the [changelog](charts/bpdm/C
- BPDM Gate: Fixed logic for identifiers to retrieve only generic type on output business partner
- BPDM Gate: Fixed construction logic for states and identifiers by enabling business partner type
- BPDM Pool: When processing golden record tasks the Pool now ignores isCatenaXMemberData field if it is set to null. ([#1069](https://github.com/eclipse-tractusx/bpdm/issues/1069))
- BPDM Gate: Fixed gate output logic to provide only generic states for uncategorized states.
- BPDM Gate: Fixed gate output logic to provide states based on business partner type.

## [6.1.0] - [2024-07-15]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class BusinessPartnerMappings {
.filter { it.businessPartnerTyp == when (addressType) {
AddressType.LegalAndSiteMainAddress, AddressType.LegalAddress -> BusinessPartnerType.LEGAL_ENTITY
AddressType.AdditionalAddress -> BusinessPartnerType.ADDRESS
AddressType.SiteMainAddress -> return@let emptyList() // No identifiers for SiteMainAddress
AddressType.SiteMainAddress -> BusinessPartnerType.SITE
} }
.map(::toStateDto)
}?: emptyList(),
Expand Down

0 comments on commit 08ae919

Please sign in to comment.