-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update task states for each task. #62
Conversation
@spwoodcock I have started designing the project/task/history schemas and relationships with taking reference from the suggestions you made similar to the one for fmtm you have mentioned in this issue. |
Will check this over soon! Can this be refactored to use url path params though (REST)?
|
Sure, we could remove project_id and task_id from json payload and use them in the url params. And for the frontend url, you are right. I also did not think of that. I think we should use slug rather than reverting back to ID( Serial) |
@spwoodcock |
Should we add a new state Then probably an event |
This might be a good idea. I have thought of the workflow like this for all the mapping process: And then for bad tasks back to |
Update Task State Transitions
Description
This pull request introduces changes to the task state transitions, enabling tasks to move seamlessly between different states based on specific actions. The following task states and actions are defined:
Task States
Following actions can be taken to change the state of task.
Database design.
Here is the database table designed for this task_actions
`class TaskEvent(Base):
tablename = "task_events"
API Endpoints
api/tasks/update-event/
. This endpoint is created to update the state of tasks.It requires following payload.
api/tasks/states/<project_id>/
. This endpoint provides the state of each tasks within the project.Example response: