chiefonboarding / ChiefOnboarding

Free and open-source employee onboarding platform. Onboard new hires through Slack or the web portal.
https://chiefonboarding.com
GNU Affero General Public License v3.0
656 stars 121 forks source link

Adding admin task to manager/buddy who does not exist on new hire will raise error #363

Open GDay opened 11 months ago

GDay commented 11 months ago

To reproduce: Create sequence with an admin task that will be assigned to "manager" or "buddy" (with a comment). Assign sequence to user without buddy or manager. This will raise a 500 error. This is due to all admin task comments needing an author and will therefore raise this error: "null value in column "comment_by_id" of relation "admin_tasks_admintaskcomment" violates not-null constraint"