-
Notifications
You must be signed in to change notification settings - Fork 0
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
Y24-159 - Update create-labware schema to add retention instructions #412
Comments
Our RedPanda schemas uses default compatibility (which is This needs to be addressed before proceeding with the story. If the field is made optional, it will be required to have an implicit default value. |
Schema changes made on schema registry for UAT. |
Just pasting the current change here for others to see:
Parsing out what this means, it's an optional field called Questions I have @stevieing :
|
So I did some tests.
|
I decided to try to understand what it means to have "default" in the enum itself instead of at the root of the field. It's a safety mechanism for enums specifically and only gets used when decoding a message, not during encoding. If you (somehow) received a message that gives a value for the field that isn't in the enum list, the default would be decoded instead. It's unclear how a message would be badly encoded to start with, but it could possibly happen if you are decoding with the wrong schema version, or the publisher wrote the message without using a valid Avro library. |
User story
As developers, we need to add a
retention_instruction
field into thecreate-labware
schema. This is to facilitate specifying retention instructions in the warehouse for each tube/plate submitted. The resulting schema should be published as a new version in RedPanda.Who are the primary contacts for this story
Steve / Stuart / Dasun
Who is the nominated tester for UAT
Acceptance criteria
To be considered successful the solution must allow:
All messages received on the new message schema version must containIf the message does not contain a retention instruction field (check Y24-159 - Update create-labware schema to add retention instructions #412 (comment)), a default value must be used.retention_instruction
field.retention_instruction
is properly documented in the schema using thedoc
attribute.References
This story has a non-blocking relationship with:
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: