-
-
Notifications
You must be signed in to change notification settings - Fork 211
Fix/451 (WIP?) #452
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
Fix/451 (WIP?) #452
Conversation
|
note: AppveyorCI shouldn't work on this branch because it does not have the updated scripts. |
mfeurer
left a comment
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.
Thanks a lot. It would be great if you could already swap the default order (i.e. the argument names and their documentation) and add a TODO which reminds us to deprecate the argument swapping. Also, you can most likely simplify the unit tests quite a lot by mocking out functions which are not related to swapping the arguments. Then you only need to check if the mock objects got called correctly.
|
Adding a TODO where? Open an issue or a whenever arguments are passed by the old order? Again I'm very sorry this took so long. I learned not to take up a new issues right before a vacation because there's always a lot to catch up to when you get back anyway ^^; |
|
Yep, adding a |
mfeurer
left a comment
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.
This looks great! Thanks a lot.
|
Could you please resolve the conflicts and check the failing tests? |
|
Thanks! Test failures are due to missing tags on the test server. I will contact @janvanrijn about this. |
Worked on: #451
Functions
run_model_on_taskandrun_flow_on_tasknow allow both ordering of the first two arguments ((task, model) or (model, task) and (task, flow) or (flow, task), respectively).Added two simple unit tests which test that the normal output with swapped arguments still works.
There are some outstanding questions, see my last comment in #451. I propose we continue the discussion there.
I made an early pull request to check with CI (I have some issues with my local environment atm and don't have the time to fix it).