scitran / core

RESTful API
https://scitran.github.io
MIT License
18 stars 18 forks source link

Analysis fix #1104

Closed ambrussimon closed 6 years ago

ambrussimon commented 6 years ago

@ehlertjd @nagem

We were doing some tests for the new analysis endpoints this afternoon and I realized that inputs from SDK analyses are getting saved as a list of file references rather than a copy of the file object. Also, the API doesn’t check to ensure the inputs exist in the system

I looked into both and couldn't recreate the behavior:

Review Checklist

ambrussimon commented 6 years ago

Please provide repro steps if the problem wasn't solved by this.

codecov-io commented 6 years ago

Codecov Report

Merging #1104 into master will increase coverage by 0.01%. The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1104      +/-   ##
==========================================
+ Coverage   90.91%   90.92%   +0.01%     
==========================================
  Files          49       49              
  Lines        7055     7055              
==========================================
+ Hits         6414     6415       +1     
+ Misses        641      640       -1
ehlertjd commented 6 years ago

@ambrussimon Added an integration test to test_analyses.py demonstrating the problem.

ambrussimon commented 6 years ago

@ehlertjd Perfect, thank you! Fixed.

nagem commented 6 years ago

Thanks for the quick fix @ambrussimon, LGTM