Skip to content

CIRC-2538: Refactor item location handling to use locationRepository directly for effective location retrieval#1681

Merged
zakletskyi-epam merged 3 commits into
masterfrom
CIRC-2538
Jul 16, 2026
Merged

CIRC-2538: Refactor item location handling to use locationRepository directly for effective location retrieval#1681
zakletskyi-epam merged 3 commits into
masterfrom
CIRC-2538

Conversation

@zakletskyi-epam

@zakletskyi-epam zakletskyi-epam commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Purpose

Fix retrievalServicePointName showing "DCB" instead of the real service point name for ECS LOC requests. In the Central tenant, shadow locations have primaryServicePoint pointing to the DCB service point UUID, but carry the real SP name in effectiveLocationPrimaryServicePointName. The previous fix (#1679) incorrectly targeted DCB virtual items via routing in ItemRepository and is reverted by this PR.

Approach

The fix is in LocationRepository.fetchPrimaryServicePoint: if the location already has a ServicePoint stub with a non-null name (populated by LocationMapper from effectiveLocationPrimaryServicePointName), return it directly without fetching from storage — which would overwrite the correct name with "DCB"

TODOS and Open Questions

  • Check logging

Learning

CIRC-2538

@zakletskyi-epam zakletskyi-epam self-assigned this Jul 14, 2026
@zakletskyi-epam
zakletskyi-epam marked this pull request as ready for review July 14, 2026 15:19
@sonarqubecloud

Copy link
Copy Markdown

@zakletskyi-epam
zakletskyi-epam merged commit 9ed3edc into master Jul 16, 2026
17 checks passed
@zakletskyi-epam
zakletskyi-epam deleted the CIRC-2538 branch July 16, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants