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

Allow reordering tasks of a tour before assigning it #3597

Closed
3 tasks done
Tracked by #3552 ...
alexsegura opened this issue Apr 14, 2023 · 0 comments · Fixed by #3635
Closed
3 tasks done
Tracked by #3552 ...

Allow reordering tasks of a tour before assigning it #3597

alexsegura opened this issue Apr 14, 2023 · 0 comments · Fixed by #3635
Assignees
Labels
Dispatch Interface An issue related to dispatch´s interface. Ex: The admin and orders dashboards, using matomo, tags Last Mile

Comments

@alexsegura
Copy link
Member

alexsegura commented Apr 14, 2023

See #3552
Needs #3595

Once the "tours" panel has been introduced, the dispatcher should be able to reorder tasks of a tour inside this panel.
To implement this, we will need to allow PUT operations on tours on the API.

  • Add a PUT operation in the itemOperations section of the Tour entity. It should look like the definition of the POST operation. We will probably need to make a small change in TourInputDataTransformer, to make the name property optional.
  • Add a functional test for the PUT operation in the dispatch.feature file. The payload of the PUT operation should look like this:
{
  "tasks": [
     "/api/tasks/1",
     "/api/tasks/2",
     "/api/tasks/3"
  ]
}
  • As all panels share the same DragDropContext, everything needs to be implemented in the same handleDragEnd function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dispatch Interface An issue related to dispatch´s interface. Ex: The admin and orders dashboards, using matomo, tags Last Mile
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants