Skip to content

Use source system id for fetching existing specimen and media#11

Open
southeo wants to merge 7 commits intomainfrom
feature/dd-2954-use-ssid-for-fetching
Open

Use source system id for fetching existing specimen and media#11
southeo wants to merge 7 commits intomainfrom
feature/dd-2954-use-ssid-for-fetching

Conversation

@southeo
Copy link
Collaborator

@southeo southeo commented Mar 4, 2026

This should narrow the scope for the expensive fetch

A batch may be from multiple source systems, so we have to use a list of source system ids (but if the list size = 1, this is basically the same thing)

southeo added 4 commits March 4, 2026 14:50
…sid-for-fetching

# Conflicts:
#	src/main/java/eu/dissco/sourcesystemdatachecker/service/SourceSystemDataCheckerService.java
#	src/test/java/eu/dissco/sourcesystemdatachecker/service/SourceSystemDataCheckerServiceTest.java
@southeo southeo changed the title Feature/dd 2954 use ssid for fetching Use source system id for fetching existing specimen and media Mar 4, 2026
@southeo southeo marked this pull request as ready for review March 4, 2026 15:32
@southeo southeo requested a review from samleeflang March 4, 2026 15:35
Copy link

@samleeflang samleeflang left a comment

Choose a reason for hiding this comment

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

Happy this gave some improvements! Create a new testUtils attribute for the SOURCE_SYSTEM now the test looks a bit strange

deleted timestamp with time zone,
data jsonb,
original_data jsonb,
col_id text,

Choose a reason for hiding this comment

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

formatting

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

idk why but my ide keeps reformatting this in the pre-commit hook 🙃 disabled that functionality for this specific commit lol


// When
var result = repository.getDigitalSpecimens(Set.of(PHYSICAL_ID_1));
var result = repository.getDigitalSpecimens(Set.of(PHYSICAL_ID_1), Set.of(APP_PID));

Choose a reason for hiding this comment

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

Why use APP_PID here. Maybe rename it to PID or just add a new one SOURCE_SYSTEM_PID

@southeo southeo requested a review from samleeflang March 5, 2026 07:56
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

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