Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Enhancement/Add button to delete documents on dataset page #193
This change adds a button the the dataset page which lets an admin delete documents from a project. This is useful to for example delete test data or clean up the dataset.
The button is implemented via a simple request to the existing delete endpoint in the documents API. Given that the dataset page is server-side rendered by Django, when the request is successful, we reload the page to reflect the new state of the dataset. Note that for simplicity and speed, the button does not prompt the user for confirmation.