openclimatefix / nowcasting_datamodel

Datamodel for the nowcasting project
6 stars 6 forks source link

Add basic status model #55

Closed jacobbieker closed 2 years ago

jacobbieker commented 2 years ago

Pull Request

Description

Relates to https://github.com/openclimatefix/nowcasting_api/issues/106 creating the datamodel for status' and reading the latest status from the database

Fixes #

How Has This Been Tested?

Unit test

Checklist:

codecov-commenter commented 2 years ago

Codecov Report

Merging #55 (24bbf1a) into main (3fe8ed6) will decrease coverage by 0.86%. The diff coverage is 64.70%.

@@            Coverage Diff             @@
##             main      #55      +/-   ##
==========================================
- Coverage   98.44%   97.58%   -0.87%     
==========================================
  Files          16       16              
  Lines         645      662      +17     
==========================================
+ Hits          635      646      +11     
- Misses         10       16       +6     
Impacted Files Coverage Δ
nowcasting_datamodel/models/models.py 94.44% <64.70%> (-5.56%) :arrow_down:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

peterdudfield commented 2 years ago

We'll have to make some 'migrations' for this too.

I think i'm the only one who can do this for the moment. https://github.com/openclimatefix/nowcasting_datamodel/issues/57