feat(projects): per-project standard due date override (PMS-345) #268

Merged
vas2000-work merged 3 commits from feat/PMS-345-per-project-default-due into main 2026-06-18 01:04:15 +02:00
Owner

Add a nullable projects.default_due_business_days column (0..=365, 0 disables) that lets a single project override the tenant-wide scheduling/default_due_business_days setting, so the standard due date for new tasks can be sourced from the project as well as from the tenant SLA settings. When a task is created without a due date, the project override wins (a value of 0 disables the default for that project); a NULL override inherits the tenant-wide setting, which itself falls back to no default. Surface the field on ProjectResponse and accept it on CreateProjectRequest/UpdateProjectRequest with the same 0..=365 range validation as the tenant setting (HTTP 422 on out-of-range), threading it through the project INSERT/SELECT/UPDATE queries.

#PMS-345

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Add a nullable projects.default_due_business_days column (0..=365, 0 disables) that lets a single project override the tenant-wide scheduling/default_due_business_days setting, so the standard due date for new tasks can be sourced from the project as well as from the tenant SLA settings. When a task is created without a due date, the project override wins (a value of 0 disables the default for that project); a NULL override inherits the tenant-wide setting, which itself falls back to no default. Surface the field on ProjectResponse and accept it on CreateProjectRequest/UpdateProjectRequest with the same 0..=365 range validation as the tenant setting (HTTP 422 on out-of-range), threading it through the project INSERT/SELECT/UPDATE queries. #PMS-345 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
vas2000-work force-pushed feat/PMS-345-per-project-default-due from 1a878be126
Some checks failed
Check / fmt + clippy + compile + unit/doc tests (pull_request) Failing after 13s
Integration / integration tests (pull_request) Failing after 42s
E2E / Playwright against staging (pull_request) Successful in 2m17s
to 0315de4578
All checks were successful
E2E / Playwright against staging (pull_request) Successful in 1m0s
Check / fmt + clippy + compile + unit/doc tests (pull_request) Successful in 2m29s
Integration / integration tests (pull_request) Successful in 8m5s
Create release / Create release from merged PR (pull_request) Has been skipped
2026-06-18 00:52:18 +02:00
Compare
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-server!268
No description provided.