Open heyrandhir opened 1 year ago
IMO the first approach looks good as we only query the users, the second one requires to query tasks then loop over all the users to find the user One question does this mark the Mavens idle?
IMO the first approach looks good as we only query the users, the second one requires to query tasks then loop over all the users to find the user One question does this mark the Mavens idle?
Mavens don't create a account on RDS.
We need a script which will automatically mark user status based on the task assigned to them
Approach 1:
This approach directly queries the tasks collection for each user to determine if they have any assigned tasks. If no tasks are found, the user's status is updated to "idle" in the status collection.
The Steps are as follows :
Approach 2:
In this approach, all tasks are retrieved from the tasks collection, and the assignees' user IDs are extracted. Then, for each user, their ID is checked against the assignees list. If the user's ID is not present, their status is updated to "idle" in the status collection.