You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The insert_after and insert_before parameters to task.rb#add_project() need to differentiate between the user not passing in a parameter and the user passing in nil.
Per the API documentation, at most one of insert_before, insert_after or section should be specified, but null is a valid value for insert_after/insert_before that has different semantics from simply not passing the parameter: https://developers.asana.com/docs/add-a-project-to-a-task (be sure the expand the 'data' parameter in the docs to see this detail)
A similar issue affects the 'parent' parameter in task.rb#set_parent()
These two situations hit a use case for me and I've had to apply this diff to be able to pass in nil to the insert_before/insert_after parameters:
Adds a CLI 'mv' subcommand, which supports adding projects to tasks within the same workspace and changing their sections for now.
Move over to get_tasks() in ruby-asana, as get_tasks_for_section() lacks completed_since support.
Use forked version of ruby-asana gem for development use, as ruby-asana is pending key bugfixes for checkoff:
See
* Asana/ruby-asana#109
* Asana/ruby-asana#110
The insert_after and insert_before parameters to task.rb#add_project() need to differentiate between the user not passing in a parameter and the user passing in nil.
Per the API documentation, at most one of insert_before, insert_after or section should be specified, but null is a valid value for insert_after/insert_before that has different semantics from simply not passing the parameter: https://developers.asana.com/docs/add-a-project-to-a-task (be sure the expand the 'data' parameter in the docs to see this detail)
A similar issue affects the 'parent' parameter in task.rb#set_parent()
These two situations hit a use case for me and I've had to apply this diff to be able to pass in nil to the insert_before/insert_after parameters:
https://github.com/Asana/ruby-asana/compare/master...apiology:insert_before_after?expand=1
I'd be happy to submit that as a PR, but perhaps the more correct fix is upstream in the code generation? Let me know what you think.
The text was updated successfully, but these errors were encountered: