Skip to content

Restrict the removal of the last task owner #566

Description

@solenuk

Environment: Windows 10, API / Backend
Reproducible: Always
Build found: last commit from dev

Preconditions

  1. The user is authenticated as an Admin.
  2. A task exists in the system with exactly one owner assigned to it.

Steps to reproduce

  1. Go to the Task Management page (or initiate a request to the removeTaskOwner endpoint).
  2. Select the task that currently has only one owner.
  3. Trigger the action to remove that sole owner from the task.
  4. Verify the updated owner count for the task.

Actual result
The system successfully processes the request and removes the owner. The task is left orphaned with 0 owners, leaving no one responsible for it.

Expected result
The system should reject the removal of the final owner. A ValidationException should be thrown, and the user should see a clear error message stating that a task cannot be left without at least one owner. The task should remain unchanged with its single owner still assigned.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

  • Status
    Done
  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions