bitcointranscripts / transcription-review-backend

7 stars 11 forks source link

Implement Admin Endpoint for Resetting Transcript Claim #249

Closed kouloumos closed 10 months ago

kouloumos commented 10 months ago

Context: During testing phases, the need often arises to reset claimed transcripts manually. Presently, this involves navigating through the database to delete rows from the "reviews" table, adjust "status" and "claimBy" columns in the "transcripts" table, and additionally clear the relevant cache in Redis.

Issue Description: To facilitate testing and streamline the resetting of claimed transcripts, it would be beneficial to introduce an admin endpoint. This endpoint would handle the necessary operations (database adjustments and cache clearing) in a simplified and automated manner.

Benefits:

nully0x commented 10 months ago

This comes in handy, will create one.