Scan-o-Matic / scanomatic

Scanomatic
GNU General Public License v3.0
10 stars 4 forks source link

Delete scanjob API #330

Closed gdetrez closed 6 years ago

gdetrez commented 6 years ago

Add API endpoint DELETE /api/scan-jobs/$ID that removes the scanjob from the database. It checks that the scanjob hasn't started yet.

codecov-io commented 6 years ago

Codecov Report

Merging #330 into master will increase coverage by 0.06%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
+ Coverage   37.49%   37.55%   +0.06%     
==========================================
  Files         170      172       +2     
  Lines       16404    16430      +26     
  Branches     2887     2890       +3     
==========================================
+ Hits         6150     6171      +21     
- Misses       9847     9848       +1     
- Partials      407      411       +4
Impacted Files Coverage Δ
scanomatic/ui_server/scan_jobs_api.py 96.03% <100%> (+0.43%) :arrow_up:
scanomatic/scanning/exceptions.py 100% <100%> (ø)
scanomatic/data/scanjobstore.py 100% <100%> (ø) :arrow_up:
scanomatic/scanning/delete_scanjob.py 100% <100%> (ø)
scanomatic/scanning/terminate_scanjob.py 100% <100%> (ø) :arrow_up:
scanomatic/data_processing/phases/segmentation.py 73.25% <0%> (-1.4%) :arrow_down:

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 28d093f...51e0752. Read the comment docs.