edgeryders / discourse-annotator

A text annotation and analysis application for Discourse. Made with Annotator.js and Ruby on Rails.
https://edgeryders.eu/t/6811
Other
4 stars 0 forks source link

Implement a "delete" feature for projects #235

Open tanius opened 1 year ago

tanius commented 1 year ago

Currently, @damingo is implementing projects (#222). The question came up if deletion of projects should be supported in the software. This is what @damingo had to say about that:

Shall a project allowed to be deleted with the UI at all? I simple alert "Are you sure" doesn't seem to be sufficient. So I would have to build a extra page with something like "Type the name of the project to confirm" but then I would have to make the delete also efficient as with a big project many thousand queries would be executed by default and might trigger a timeout. So alternatives are

  1. Simply do not allow to delete a project in the UI - can still be done on the Rails console.
  2. Add "archived" to project and do not allow to delete them. Archived projects are then not listed in the projects dropdown in the sidebar.
  3. Implement the delete as soft-delete. So the project and all it's data is still in the DB but no longer listed in the UI

We decided that, for now, alternative 1 (no deletion support) will be our solution, as no project deletion is needed for Edgeryders' internal purposes. We also decided that, for feature completeness, a proper project deletion feature should be implemented later. This is the issue for that.

Requirements for the proper project deletion feature of the future: