-
Notifications
You must be signed in to change notification settings - Fork 23
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/metadata missing tags #217
base: master
Are you sure you want to change the base?
Conversation
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
…k-python into fix/metadata_missing_tags
…k-python into fix/metadata_missing_tags
…k-python into fix/metadata_missing_tags
num_tags, len(guid_discovery_metadata.get("tags", [])) | ||
) | ||
tgs = guid_discovery_metadata.get("tags", []) | ||
num_tags = max(num_tags, 0 if tgs is None else len(tgs)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tgs will never be None since guid_discovery_metadata.get("tags", [])
has []
as the default return if guid_discovery_metadata["tags"]
is None.
So tgs will always be an array here. This is effectively the same as the change that existed. I would revert this portion of the changeset.
Co-authored-by: burtonk <[email protected]>
Link to JIRA ticket if there is one:
New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes