topcoder-platform / work-manager

This is the frontend application for creating and managing challenges.
13 stars 48 forks source link

Copilots can't set themselves as assignee and copilot *before* activation #1580

Open jmgasper opened 8 months ago

jmgasper commented 8 months ago

REF: https://topcoder.atlassian.net/browse/PROD-4413

@suppermancool - We're seeing an issue with the latest change that is causing a problem in prod.

Expectation:

Copilots should be able to create a draft challenge with themselves as the assignee and copilot. If they are the assignee, the should not be allowed to activate or close the task.

If the task is active, but assigned to someone else, the copilot should not be able to assign it to themselves.

Currently:

In dev, login with TCConnCopilot, and attempt to create a new draft task with the copilot set to TCConnCopilot, and assignee set to TCConnCopilot with a payment of $1 for the copilot and the task prize.

You will see an error that says Please select a copilot, even though the copilot is set:

SCR-20231110-shvh
suppermancool commented 8 months ago

@jmgasper done in work-manager-issue-1580.patch (this patch against commit c0c393d2c1b712f8a602e0317cb6a22afb25b7ee in develop branch)

Actually, the fix in the below email caused that issue. The Save Draft button only shows before activation, but the requirement in that email is hiding Save Draft for Copilot assign themselves as assignee

Screenshot 2023-11-10 at 18 38 41