1.5 KiB
1.5 KiB
Task: Enforce basic approval modes
Feature
docs/FEATURES/approval-workflow.md
Goal
Apply workspace approval mode configuration to the existing single-step approval request flow.
Scope
- Prevent approval requests when workspace approval mode is
None. - Keep the current approval request endpoints as the one-step compatibility flow for
OptionalandRequired. - Block manual moves to
ApprovedorScheduledforRequiredworkspaces until an approval request has an approved decision. - Leave
Optionalapproval non-blocking. - Apply the saved "schedule posts automatically on approval" option when a final approval decision is recorded.
Constraints
- Do not implement workflow recalculation in this task.
- Do not implement multi-level step configuration in this task.
- Do not implement locking behavior, reminder jobs, comments, mentions, reopening, or magic links in this task.
- Do not replace the existing approval request data model in this task.
Done When
- Approval mode
Nonedoes not create approval requests. - Approval mode
Optionalallows manual approval/scheduling without approval decisions. - Approval mode
Requiredblocks manual approval/scheduling until a completed approval decision exists. - Approved decisions move content to
Scheduledwhen auto-scheduling is enabled and the content item has a planned publish date. - Backend tests pass.
Validation Commands
dotnet build backend/Socialize.slnx
dotnet test backend/Socialize.slnx