Skip to content

chore: migrate task status from COMPLETED to DONE across DB and controllersΒ #2404

@tejaskh3

Description

@tejaskh3

πŸ› Issue

The task status in the current system uses "COMPLETED" in both the database and the controller responses. We need to update this to use "DONE" instead, in order to align with updated terminology and improve clarity.

This change will impact:

  • The database entries
  • The controller logic and responses

βœ… Expected Behavior

Task statuses in all relevant locations (DB and controller responses) should use "DONE" instead of "COMPLETED".


❌ Current Behavior

Task statuses in all relevant locations (DB and controller responses) currently use "COMPLETED".


πŸ› οΈ Description / Plan

We need to remove the usage of "COMPLETED" from the system in three steps:

  1. Controller Wrapper Update

    • Modify all relevant controllers to check for task status "COMPLETED" and return "DONE" instead.
    • This acts as a temporary wrapper until the migration is complete.
  2. Database Migration Script

    • Write and run a script to update all records in the database where the task status is "COMPLETED", and change them to "DONE".
  3. Final Controller Update

    • Once the DB has no more "COMPLETED" entries, remove the wrapper logic from step 1.
    • Ensure controllers directly return the actual value from the DB, which will now be "DONE".

πŸ“Œ Summary of Current State

  • "COMPLETED" exists in the database.
  • Controllers return "COMPLETED" directly.
  • No logic currently exists to map "COMPLETED" to "DONE".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions