canonical / ubuntu-com-security-api

The API for CVEs and USNs data.
16 stars 9 forks source link

Add channel field to NoticePackage schema #124

Closed petesfrench closed 1 year ago

petesfrench commented 1 year ago

Done

Add channel field to NoticePackage schema

QA

Issue / Card

Fixes https://github.com/canonical/ubuntu-com-security-api/issues/123

codecov[bot] commented 1 year ago

Codecov Report

Merging #124 (fab179d) into main (7547f4f) will increase coverage by 0.01%. The diff coverage is 100.00%.

:exclamation: Current head fab179d differs from pull request most recent head 66f6eca. Consider uploading reports for the commit 66f6eca to get more accurate results

@@            Coverage Diff             @@
##             main     #124      +/-   ##
==========================================
+ Coverage   80.92%   80.94%   +0.01%     
==========================================
  Files          25       25              
  Lines        1248     1249       +1     
==========================================
+ Hits         1010     1011       +1     
  Misses        238      238              
Flag Coverage Δ
python 80.94% <100.00%> (+0.01%) :arrow_up:

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

Impacted Files Coverage Δ
tests/fixtures/payloads.py 100.00% <ø> (ø)
webapp/schemas.py 92.48% <100.00%> (+0.03%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

petesfrench commented 1 year ago

@mtruj013 The other fields with the parameter allow_none=True (source_link and version_link) are omitted from the notice and ssn_notice test payload, do we need to add this one?