Skip to content

Allow editing Challenges #14

Description

@harmonherring

It should be possible to edit Challenges after they're created. Specifically, this includes the fields on the Create Challenge modal. These are Title, Category, Difficulty, Author, Description, Tags, and Uploaded File.

I feel it would make sense to allow this functionality by accepting a PATCH request at /challenges/<CHALLENGE_ID>.

It would be possible to replicate the Tag creation functionality that we see in the POST /challenges route. Would take a few extra DB queries. All old Tags would need to be deleted, and then the new ones would be created.

It's important to delete the old file from S3 if a new one is uploaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions