You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feat: Implement APIs for Tracking Departed Users with Assigned Tasks (Real-Dev-Squad#2268)
* feat: Departed users api changes.
* feat: Added test cases for departed users api changes.
* Refactor: Update fetchIncompleteTasksByUserIds to use batch queries and filter in-memory
- Replaced Firestore query with batch query to fetch incomplete tasks for multiple users at once.
- Filter tasks by user IDs and completed statuses in-memory for improved efficiency.
- Updated return structure to return an array directly instead of an object with `docs` property.
- Updated test cases related to the same.
* Archive users by setting the roles.archived field to true.
36
+
* This function commits the write in batches to avoid reaching the maximum number of writes per batch.
37
+
* @param {Array} usersData - An array of user objects with the following properties: id, first_name, last_name
38
+
* @returns {Promise} - A promise that resolves with a summary object containing the number of users updated and failed, and an array of updated and failed user details.
0 commit comments