Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a new operation visium QC operation : qPcr results #536

Merged
merged 12 commits into from
Jan 25, 2024
Merged

Conversation

sabrine33
Copy link
Contributor

No description provided.

@sabrine33 sabrine33 requested a review from seenanair January 22, 2024 16:37
@sabrine33 sabrine33 marked this pull request as draft January 23, 2024 09:25
setTouched({});
const measurements = values?.slotMeasurements ? [...values.slotMeasurements] : [];
measurements
?.filter((measurement) => measurement.name === measurementName)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why we need to filter it? I thougt we only have one measurement (Cq value) here? or Is it for future additions?

(values.qcType === QCType.CDNA_AMPLIFICATION && values.slotMeasurements)
) {
sendCDNA({
type: 'SUBMIT_FORM',
values: {
workNumber: values.workNumber,
barcode: values.barcode,
slotMeasurements: values.slotMeasurements ?? [],
slotMeasurements: values.slotMeasurements?.map(({ samples, ...rest }) => rest) ?? [],
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we getting rid of 'samples' field? if so, why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, because we don't need in the request, we are just adding some info in the display. also the GraphQL request will fail if we pass the wrong arguments .

});
});
});
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Couldn't find a test case when there is server error.

@sabrine33 sabrine33 marked this pull request as ready for review January 25, 2024 11:32
@sabrine33 sabrine33 merged commit 528d988 into devel Jan 25, 2024
9 checks passed
@sabrine33
Copy link
Contributor Author

merged to devel

@sabrine33 sabrine33 deleted the qPcrResults branch January 25, 2024 11:33
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