Skip to content

fix: map Q_IP_MEASUREMENT to Q_IP_RAW_DATA dataset type#16

Merged
sven1103 merged 3 commits into
mainfrom
fix/add-missing-dataset-type-for-ip
Jun 9, 2026
Merged

fix: map Q_IP_MEASUREMENT to Q_IP_RAW_DATA dataset type#16
sven1103 merged 3 commits into
mainfrom
fix/add-missing-dataset-type-for-ip

Conversation

@sven1103-agent

Copy link
Copy Markdown
Contributor

Problem

When processing Q_IP_MEASUREMENT samples, the ETL throws:

life.qbic.registration.openbis.exceptions.fail.DatasetTypeMappingException: Unknown sample type to dataset type mapping. Cannot map Q_IP_MEASUREMENT

This happens because QDatasetType.fromQSampleType() has no mapping case for Q_IP_MEASUREMENT.`

Root Cause

  • QSampleType.Q_IP_MEASUREMENT exists (added in Add IP measurement type #12)
  • QDatasetType.Q_IP_RAW_DATA exists as an enum constant
  • But the mapping in fromQSampleType() was never wired up

Fix

Added the missing mapping:

else if (qSampleType == QSampleType.Q_IP_MEASUREMENT) {
  return Q_IP_RAW_DATA;
}

sven1103 added 2 commits June 9, 2026 16:08
QDatasetType.fromQSampleType() was missing a mapping case for
Q_IP_MEASUREMENT, causing a DatasetTypeMappingException when
processing IP measurement samples. The Q_IP_RAW_DATA enum constant
already existed but was never wired up.
@github-actions github-actions Bot added the fix label Jun 9, 2026
@sven1103 sven1103 merged commit 81aed0b into main Jun 9, 2026
5 checks passed
@sven1103 sven1103 deleted the fix/add-missing-dataset-type-for-ip branch June 9, 2026 14:19
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.

2 participants