fix(core): keep todo, in-progress and done flags when copying task statuses
Problem
The tenant's default task statuses carry isTodo, isInProgress and isDone, which mark the workflow stage of each status. When those statuses are copied to a new organization (TaskStatusService.bulkCreateOrganizationStatus) or to a new project or team (createBulkStatusesByEntity), the copy lists every column except these three, so the organization, project and team statuses lose their stage and anything that reads it (for example "which status means done") finds none.
Fix
- Copy
isTodo,isInProgressandisDonefrom the source status in bothbulkCreateOrganizationStatusandcreateBulkStatusesByEntity.
Tests
status.service.bulk-copy.spec.ts: both copy paths keep the three flags of each source status.
Not built or run locally (no local node_modules).
Summary by cubic
Copied task statuses now keep their workflow stage flags (isTodo, isInProgress, isDone) when copied to a new organization, project, or team.
The tenant's default statuses carry these flags to mark what "todo", "in progress", and "done" mean. The copy paths dropped them, so any logic that relied on the stage (like finding the done status) found none.
- Copies the flags in both
bulkCreateOrganizationStatusandcreateBulkStatusesByEntity. - Adds a spec covering both copy paths.