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
Refactor: get task query to handle deferred task logic (#237)
* feat: enhance task status filtering and validation logic
- Updated the TaskRepository to improve status filtering logic, allowing for more precise queries based on task status and deferred details.
- Refactored the TaskService to adjust validation for deferring tasks, ensuring that deferred dates are correctly compared to due dates.
- Modified integration and unit tests to reflect changes in task deferral logic and removed unused constants for cleaner code.
These enhancements improve the accuracy of task management operations and ensure better validation during task deferral.
* fix: failing teams unit test
* nit: remove comment
* fix: update task status handling in TaskService
- Adjusted task status assignment in TaskService to account for deferred tasks, ensuring that tasks with deferred details are correctly marked as DEFERRED.
- Updated the return statement to reflect the new task status logic, improving the accuracy of task status representation.
- Initialized task status to TODO in the update payload for task modifications, enhancing consistency in task state management.
* fix: handle deferred details in task status updates
- Added logic to clear deferred details when a task's status is updated, ensuring that tasks with deferred information are correctly managed during status changes.
- This change improves the accuracy of task updates and maintains consistency in task state management.
* fix: refine task status update logic in TaskService
* fix: correct comparison operator for deferred task details in TaskRepository
---------
Co-authored-by: anuj.k <[email protected]>
0 commit comments