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.
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 /challengesroute. 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.