Skip to content

Resolve "can't assign HE to specifc question because the question has no author"

Grigor Malo requested to merge 312-delete-items-when-deleting-author into staging

Closes #312 (closed)

  • show warning to admin when deleting users: "Deleting the selected user(s) will delete all their items that are still in editorial flow. Published items will not be affected, and the author's name will be preserved."

  • from a technical point of view, the entities below will get deleted:

    • questions authored by the deleted user, if their latest version is not yet published
    • all question versions of deleted questions
    • all reviews for the deleted questions
    • all chat threads related to those questions
    • all messages in those chat threads
    • all messages of the deleted user in other chat threads
    • all reviews from deleted user in other questions
  • if the author is deleted, their name should still appear in their published items in the Browse Items page

  • if an admin or editor clicks "Unpublish" on an item whose author has been deleted, the modal shows a warning: "NOTE: The author of this item has been deleted from the system. If you want to edit and publish a new version of the item, you will have to assign a new author to it."

  • after unpublishing an item that does not have an author, admins or MEs can see the "Assign author" button instead of the "Edit item" button

  • the red banner for unpublished items whose author has been deleted should write: "This item has been unpublished by the editors. The author of this item has been deleted. Assign a new author to be able to edit."

  • admins and MEs can assign a new author for unpublished items

  • after the author has been assigned, the "Edit item" button becomes available. At this point the item will behave like any other unpublished item (clicking Edit creates a new version in the production stage, etc...)

Edited by Grigor Malo

Merge request reports