can't assign HE to specifc question because the question has no author
Expected behaviour
An ME should be able to assign any question to an HE
Current behaviour
I get an error when trying to assign this question: https://hhmi.cloud68.co/question/7ef8181e-f2d3-4d15-b4a0-3d83d3ab978f
Steps to reproduce
Testing environment
- Username of the user who experienced the problem: Managing Editor (Dione)
- URL where the problem occurred: https://hhmi.cloud68.co/question/7ef8181e-f2d3-4d15-b4a0-3d83d3ab978f
- Browser name and version: Brave Version 1.60.118
- User machine: Mac
Error logs (if available)
The error occurs because no author is found when trying to assign the HE. We do this check to validate that the HE and author are not the same user. In this case the author does not exist because the user has been deleted by an Admin.
Agreed solution
Do not remove the Admin's ability to delete a user, and implement the following improvements:
- Update the current "delete user" confirmation modal to read: 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.
- Do not remove the author's affiliation (name) from published items
- When a question that has no author is unpublished, the Admin or ME must assign another author before the question can be edited.
Updated flow for deleting a user:
Updated flow for re-publishing an item:
QA Steps
[To be completed by Coko]
Scheduling
[To be completed by Coko]
- Dependencies: [provide issue numbers]
- Development estimate: [provide in hours]