Reimplement the logic to filter the orphan tasks, now we have a separate cron job and API to filter the orphan tasks but we should do it when we are marking user archived: true.
we are reimplementing this so that we have data consistency, with the current implementation there might be a case where the user is archived earlier and their undone tasks are not marked BACKLOG till the next corn runs to filter the tasks.
Date: 13/04/2024
Developer Name: @MehulKChaudhari
Issue Ticket Number
2005
Description
Reimplement the logic to filter the orphan tasks, now we have a separate cron job and API to filter the orphan tasks but we should do it when we are marking user archived: true. we are reimplementing this so that we have data consistency, with the current implementation there might be a case where the user is archived earlier and their undone tasks are not marked BACKLOG till the next corn runs to filter the tasks.
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Test Coverage
Additional Notes
This is a re-implementation of - https://github.com/Real-Dev-Squad/website-backend/pull/1996