Skip to content
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

As to use the same endpoints as the web dispatch, refactor modification of TaskList object in the app to use /api/task_lists//task_lists/set_items/{date}/{username} #1952

Open
Atala opened this issue Feb 13, 2025 · 0 comments
Labels
Cooperative: Transversal Concepts Dispatch Interface An issue related to dispatch´s interface. Ex: The admin and orders dashboards, using matomo, tags Technical Debt

Comments

@Atala
Copy link
Member

Atala commented Feb 13, 2025

For now the app use the following endpoint/classes for dispatch in order to assign tasks:

  • /tasks/{id}/assign ( src/Action/Task/Assign.php )
  • /tasks/{id}/unassign ( src/Action/Task/UnAssign.php )
  • /tasks/assign ( src/Action/Task/BulkAssign.php )

we should stop to use these endpoints to use /api/task_lists//task_lists/set_items/{date}/{username} endpoint :

  • is used by web dispatch
  • supports tours
  • supports reordering

and then we can delete the endpoints above

@Atala Atala transferred this issue from coopcycle/coopcycle Feb 13, 2025
@Atala Atala added Technical Debt Dispatch Interface An issue related to dispatch´s interface. Ex: The admin and orders dashboards, using matomo, tags Cooperative: Transversal Concepts labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cooperative: Transversal Concepts Dispatch Interface An issue related to dispatch´s interface. Ex: The admin and orders dashboards, using matomo, tags Technical Debt
Projects
None yet
Development

No branches or pull requests

1 participant