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

feat: add publisher_metadata to the dataset metadata endpoint #224

Merged

Conversation

ebezzi
Copy link
Member

@ebezzi ebezzi commented Feb 4, 2022

Reviewers

Functional:
@atolopko-czi @MDunitz

Readability:


Changes

  • Adds the publisher_metadata field to the dataset metadata endpoint call.

@@ -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"):
Copy link
Member Author

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
Copy link

codecov bot commented Feb 4, 2022

Codecov Report

Merging #224 (cf87c65) into main (00a6934) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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              
Flag Coverage Δ
frontend 75.16% <100.00%> (+0.01%) ⬆️
javascript 75.16% <100.00%> (+0.01%) ⬆️
smokeTest ?
unitTest 75.16% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/dataset/dataset_metadata.py 93.93% <100.00%> (+0.18%) ⬆️
dataset/dataset_metadata.py 93.93% <0.00%> (+0.18%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00a6934...cf87c65. Read the comment docs.

Copy link
Contributor

@MDunitz MDunitz left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@MDunitz MDunitz left a comment

Choose a reason for hiding this comment

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

lgtm

@ebezzi ebezzi merged commit 24ba6e5 into main Feb 8, 2022
@ebezzi ebezzi deleted the ebezzi/add-publisher-metadata-to-dataset-metadata-call branch February 8, 2022 19:22
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.

3 participants