Skip to content

sample: Protect new sample form against too big name

Valentin Valls requested to merge cherry-pick-2620451f into main

(cherry picked from commit 2620451f)

Here is a fix to inform the user to not create a too long name.

The form is not robust to the server side problems, and it's anyway better to make it obvious.

But I have notices a discrepancy with ispyb. I was only able to create sample name using 46 chars.

I think it is about that change: https://gitlab.esrf.fr/ispyb/py-ispyb/-/commit/5097d38095b700eae91cff31ee8d04829fb19d7d

@sfisher Could it be possible to backport that change 45->100 on the sample name? And to update the ispyb docker with?

Merge request reports

Loading