Skip to content

Conversation

@opatry
Copy link
Owner

@opatry opatry commented May 19, 2025

Description

  • There is a special Task List ID @default that can be used to retrieve the default task list.
  • Provide the TaskListsApi.default() API to resolve it
  • Update data model to allow querying isDefault needed to implement TaskListUIModel.canDelete
  • As a quick & dirty workaround, the isDefault is currently inferred from ID size, an upcoming PR should come to implement the remote default API resolution properly.

Checklist

  • I have read the CONTRIBUTING guide
  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing

@opatry opatry mentioned this pull request May 19, 2025
7 tasks
@opatry opatry force-pushed the default-task-list-api branch from a005128 to 6e5941d Compare May 19, 2025 22:39
@opatry opatry merged commit 5da0c8a into main May 19, 2025
2 checks passed
@opatry opatry deleted the default-task-list-api branch May 19, 2025 22:46
@opatry opatry linked an issue May 19, 2025 that may be closed by this pull request
7 tasks
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.

Handle default task list

2 participants