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

Fix baton-list and baton-do list operation not printing null checksums #305

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

kjsanger
Copy link
Member

Due to an incorrect check for JSON null, the checkum attribute was omitted from output JSON, even when specifically requested. This change fixes that behaviour and also rationalises the naming of the checksum flags for the print, calculate and verify operations so that they are more explicit.

Due to an incorrect check for JSON null, the checkum attribute was omitted
from output JSON, even when specifically requested. This change fixes that
behaviour and also rationalises the naming of the checksum flags for the
print, calculate and verify operations so that they are more explicit.
@kjsanger kjsanger added the bug label Sep 12, 2024
Copy link

@marcomoscasgr marcomoscasgr left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Probably for another PR: while searching for json_array_get I found there is another nested call with json_incref(json_array_get(...)) in list.c line 69. I am not sure if that would affect the outcome in data_object variable (json_incref may be called on NULL), but probably it is worth to check it.

@kjsanger kjsanger merged commit 6b299ae into wtsi-npg:devel Sep 16, 2024
6 checks passed
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