Skip to content

Consistently order activities when assigning schedule entry numbers #3663

Open
@carlobeltrame

Description

@carlobeltrame

Screenshot 2023-08-04 at 00-06-16 eCamp3

As long as we don't allow manually specifying left / width of schedule entries, I would expect that the schedule entries of two activities are always ordered in the same way in the picasso. I.e. either "Fördergespräche" should always be left, or always be right (when arranged next to "Haus putzen"), not sometimes left and sometimes right.

To do to fix this issue

  • In getScheduleEntryNumber, the schedule entry number is calculated. In case another schedule entry starts at the same time, add another condition which ignores the other schedule entry if it has an (alphabetically) higher activityId.
  • In ScheduleEntryTest, add tests for the more specific behaviour.
  • Add a test to make sure that if two schedule entries have the same activityId, they still do not have the same schedule entry number

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions