Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jkmarx/connect add file service #2838

Merged
merged 39 commits into from Jul 2, 2018
Merged

Conversation

jkmarx
Copy link
Member

@jkmarx jkmarx commented Jun 29, 2018

Ref #2700

  • Convert API to DRF
  • Add service to client
  • Update file upload code to handle adding data file
  • To Do: DRF unit tests in separate pull request
    screen shot 2018-06-29 at 10 24 47 am
    screen shot 2018-06-29 at 10 24 58 am
    screen shot 2018-06-29 at 10 25 23 am

jkmarx added 30 commits June 12, 2018 10:27
@jkmarx jkmarx changed the base branch from develop to jkmarx-data-file-modal-unit-tests June 29, 2018 01:29
@codecov
Copy link

codecov bot commented Jun 29, 2018

Codecov Report

Merging #2838 into develop will decrease coverage by 0.07%.
The diff coverage is 75%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2838      +/-   ##
===========================================
- Coverage    58.29%   58.21%   -0.08%     
===========================================
  Files          430      430              
  Lines        26837    26700     -137     
  Branches      1292     1262      -30     
===========================================
- Hits         15644    15544     -100     
+ Misses       11193    11156      -37
Impacted Files Coverage Δ
refinery/data_set_manager/urls.py 100% <ø> (ø) ⬆️
...ce/js/data-set-import/directives/file-upload-s3.js 100% <ø> (ø) ⬆️
...ource/js/data-set-import/directives/file-upload.js 100% <ø> (ø) ⬆️
...js/file-browser/ctrls/data-file-edit-modal-ctrl.js 89.47% <0%> (-0.19%) ⬇️
...urce/js/data-set-import/controllers/file-upload.js 27.58% <0%> (-5.27%) ⬇️
refinery/data_set_manager/views.py 45.28% <100%> (+0.18%) ⬆️
refinery/data_set_manager/test_views.py 100% <100%> (ø) ⬆️
...et-import/services/add-file-to-data-set-service.js 100% <100%> (ø) ⬆️
...e/js/data-set-import/controllers/file-upload-s3.js 70.37% <25%> (-8.01%) ⬇️
... and 5 more

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 98b4cda...ff2911a. Read the comment docs.

@jkmarx jkmarx requested a review from scottx611x June 29, 2018 12:26
def post(self, request):
try:
data_set = DataSet.objects.get(uuid=request.POST['data_set_uuid'])
data_set = DataSet.objects.get(uuid=request
.data.get('data_set_uuid'))
except KeyError:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this KeyError has the potential to be raised anymore

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scottx611x Yes, that got updated when I wrote some unit tests.

@jkmarx jkmarx changed the base branch from jkmarx-data-file-modal-unit-tests to develop July 2, 2018 14:20
@jkmarx jkmarx merged commit 1481e7e into develop Jul 2, 2018
@jkmarx jkmarx deleted the jkmarx/connect-add-file-service branch July 2, 2018 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants