-
Notifications
You must be signed in to change notification settings - Fork 33
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
Refactor jobs restapi to remove wtforms #339
Conversation
5195400
to
3df1880
Compare
#328 has been merged. I just squashed and rebased this branch/pull request to bring this in sync with the latest changes in |
While doing a code review, I found that the Swagger documentation wasn't coming out right, even after using I'm working on a way to fix this without needing to patch the Finally, I want to verify that the file upload works not just in the unit tests but also when I build and run the full deployment. |
6376fa5
to
6d12f9c
Compare
I've implemented the changes so that we can use dioptra/src/dioptra/restapi/job/controller.py Lines 72 to 78 in 6d12f9c
The new part is the Also, just to document a "gotcha" with the difference between how the requests package works and the Flask test client works: I had to go back and restore the dioptra/src/dioptra/client/_client.py Lines 686 to 691 in 6d12f9c
It is different from the Flask test client, which doesn't use the dioptra/tests/unit/restapi/job/test_controller.py Lines 151 to 157 in 6d12f9c
|
As long as the GitHub Actions tests all pass, this is ready to merge. In terms of merge order, I'm going to review and merge the fix in #342 first to dev, since it also touches the Job endpoint. Then I'm going to resolve any conflicts that introduces in this branch, and once that's handled, merge this in. |
6d12f9c
to
129b7c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased this branch after merging #342 to dev, all unit tests and code quality checks passed. Looks good to me for a merge.
Addresses issue #313, removes the wtforms dependency, refactors the controller to accept the job form, and changes _client.py and client.py to reflect those changes. Makes minimal changes to the jobs unit tests to reflect those updates.