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

fix: Allow passing null assigneeId and dueString to unset field #155

Merged
merged 3 commits into from
Oct 10, 2022

Conversation

engfragui
Copy link
Contributor

@engfragui engfragui commented Oct 7, 2022

When updating a task via the Todoist API SDK, we want to be able to unset the assignee_id field. Following the documentation (https://developer.todoist.com/rest/v2/#update-a-task) this can be done by passing in the null value. This PR is to allow for said null value to be passed as well.

We want to do the same thing for the dueString field (and all the other due-related fields).

This is needed for our new Task Helper UI Extension (https://github.com/Doist/event-integrations/pull/1117).

@engfragui engfragui requested review from a team and proxi and removed request for a team October 7, 2022 09:53
@engfragui engfragui changed the title fix: Allow passing null assigneeId to unset field fix: Allow passing null assigneeId and dueString to unset field Oct 7, 2022
@engfragui engfragui merged commit 4a96c98 into main Oct 10, 2022
@engfragui engfragui deleted the francesca/null-assignee branch October 10, 2022 17:14
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.

2 participants