canonical / ubuntu-com-security-api

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

Fix past migration #126

Closed mtruj013 closed 1 year ago

mtruj013 commented 1 year ago

Done

Rationale

Every time a new migration was added it was picking up on an old change instead of picking up the latest model changes. We figured out that this was because the model was out of sync and this PR fixes that.

QA

No QA needed

Issue / Card

Fixes # https://warthogs.atlassian.net/browse/WD-2942

codecov[bot] commented 1 year ago

Codecov Report

Merging #126 (c7067a9) into main (4ce5cb2) will increase coverage by 0.06%. The diff coverage is 91.66%.

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

@@            Coverage Diff             @@
##             main     #126      +/-   ##
==========================================
+ Coverage   81.05%   81.12%   +0.06%     
==========================================
  Files          26       27       +1     
  Lines        1272     1282      +10     
==========================================
+ Hits         1031     1040       +9     
- Misses        241      242       +1     
Flag Coverage Δ
python 81.12% <91.66%> (+0.06%) :arrow_up:

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

Impacted Files Coverage Δ
migrations/versions/0320de7481ac_.py 90.00% <90.00%> (ø)
webapp/models.py 84.55% <100.00%> (ø)

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