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

Allow barcode to be cleared out #3067

Merged
merged 1 commit into from
Feb 9, 2022
Merged

Allow barcode to be cleared out #3067

merged 1 commit into from
Feb 9, 2022

Conversation

jcoyne
Copy link
Collaborator

@jcoyne jcoyne commented Feb 4, 2022

Why was this change made?

Fixes #3065

How was this change tested?

Which documentation and/or configurations were updated?

@jcoyne jcoyne force-pushed the allow-nil-barcode branch 2 times, most recently from 15eafe9 to f837646 Compare February 7, 2022 18:48
@andrewjbtw
Copy link

I just tested this again and got a weird error after saving
Screen Shot 2022-02-08 at 12 55 25 PM

I'm pretty sure I was able to clear a barcode last week so I'm not sure if this is related to the current stage deployments rather than the code.

@jcoyne
Copy link
Collaborator Author

jcoyne commented Feb 8, 2022

@andrewjbtw this PR is not deployed anywhere, so it is not testable

@andrewjbtw
Copy link

Ah, ok. Then I'll ignore the error for now.

@jcoyne jcoyne force-pushed the allow-nil-barcode branch 2 times, most recently from 43cfc2f to ece84f3 Compare February 9, 2022 04:11
@@ -16,7 +16,7 @@ def initialize(model, change_set)

def update
updated = model
updated = update_identification(updated) if changed?(:source_id) || changed?(:catkey) || changed?(:barcode)
updated = update_identification(updated) if changed?(:source_id) || changed?(:catkey)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

collections don't have barcode

@jcoyne jcoyne marked this pull request as draft February 9, 2022 04:44
@jcoyne
Copy link
Collaborator Author

jcoyne commented Feb 9, 2022

Currently our openapi.yaml isn't going to support barcode: null see OAI/OpenAPI-Specification#1368 for a discussion of how nullable doesn't combine well with anyOf.

@jcoyne jcoyne marked this pull request as ready for review February 9, 2022 16:42
@jcoyne jcoyne merged commit cb1d9d2 into main Feb 9, 2022
@jcoyne jcoyne deleted the allow-nil-barcode branch February 9, 2022 16:45
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.

(new Argo UI) Barcode can't be erased
3 participants