-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: add publisher_metadata to the dataset metadata endpoint #224
feat: add publisher_metadata to the dataset metadata endpoint #224
Conversation
@@ -138,6 +138,9 @@ def get_dataset_and_collection_metadata(dataset_root: str, dataset_id: str, app_ | |||
"collection_datasets": res["datasets"], | |||
} | |||
|
|||
if res.get("publisher_metadata"): |
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.
.get
to make sure that we only add this if it exists and is not null.
Codecov Report
@@ Coverage Diff @@
## main #224 +/- ##
==========================================
+ Coverage 75.14% 75.16% +0.01%
==========================================
Files 84 84
Lines 6132 6136 +4
==========================================
+ Hits 4608 4612 +4
Misses 1524 1524
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
lgtm
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.
lgtm
Reviewers
Functional:
@atolopko-czi @MDunitz
Readability:
Changes
publisher_metadata
field to the dataset metadata endpoint call.