Skip to content

Commit

Permalink
Merge pull request #1041 from eclipse-tractusx/fix/cleaning-dummy-leg…
Browse files Browse the repository at this point in the history
…al-name

fix(Cleaning Dummy): Add Whitespaces For Legal Name
  • Loading branch information
nicoprow authored Aug 26, 2024
2 parents 123e4aa + 13bf9ca commit 0d2a74a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ For changes to the BPDM Helm charts please consult the [changelog](charts/bpdm/C
- BPDM Pool & Gate: Reduce standard batch size for golden record task processing ([#1032](https://github.com/eclipse-tractusx/bpdm/pull/1032))

- BPDM Orchestrator: Fix possible out-of-memory exception during the execution of large volumes of tasks ([#1029](https://github.com/eclipse-tractusx/bpdm/pull/1029))
- BPDM Cleaning Service Dummy: Add whitespaces between name parts when creating legal name from them
- BPDM Cleaning Service Dummy: Improve duplication check to better distinguish between incoming business partners

## [6.1.0] - [2024-07-15]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class CleaningServiceDummy(
return with(businessPartner.legalEntity){
copy(
bpnReference = bpnReference.toRequestIfNotBpn(businessPartner.legalEntityReference()),
legalName = legalName ?: businessPartner.uncategorized.nameParts.joinToString(""),
legalName = legalName ?: businessPartner.uncategorized.nameParts.joinToString(" "),
identifiers = identifiers.takeIf { it.isNotEmpty() } ?: businessPartner.uncategorized.identifiers,
states = states.takeIf { it.isNotEmpty() } ?: businessPartner.uncategorized.states,
confidenceCriteria = dummyConfidenceCriteria.copy(sharedByOwner = sharedByOwner),
Expand Down

0 comments on commit 0d2a74a

Please sign in to comment.