Skip to content

Add Delete action to Resources tab for copilots, managers, admins #1548

Closed
@jmgasper

Description

@jmgasper

Expected behavior

On the Resources tab for a challenge, we will add a new column to all tables that has a delete button (this can just be the trash can icon).

When the user clicks the button, they will get a popup that says:

Are you sure you want to remove {handle} from this challenge?

Yes will remove the member
No will close the popup

Deleting a resource

A resource can be deleted by DELETE to https://api.topcoder-dev.com/v5/resources

Sample body:

{
  "challengeId":"b9b5a9fb-9d74-4880-aeea-1e3fe4975739",
  "roleId":"cfe12b3f-2a24-4639-9d8b-ec86726f76bd",
  "memberHandle":"TCConnCopilot"
}

Security

The delete button and functionality should only be allowed for:

  1. Any copilot role on the challenge
  2. Any manager role on the challenge
  3. Global admins

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions