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/metadata missing tags #217

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

craigrbarnes
Copy link
Contributor

@craigrbarnes craigrbarnes commented Apr 11, 2024

Link to JIRA ticket if there is one:

New Features

Breaking Changes

Bug Fixes

  • Fixes an issue where metadata tags are None

Improvements

Dependency updates

Deployment changes

Copy link

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

@craigrbarnes craigrbarnes marked this pull request as draft April 11, 2024 17:36
@craigrbarnes craigrbarnes marked this pull request as ready for review April 11, 2024 18:33
gen3/tools/metadata/discovery.py Outdated Show resolved Hide resolved
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))
Copy link
Contributor

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.

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.

2 participants