Day/Week view events misaligned due to buckets keyed numerically instead of by time string

Created on 5 September 2025, about 1 month ago

Problem/Motivation

In the Calendar module’s day/week views, some events do not align correctly in the agenda grid. On inspection, the $inner buckets for events are being keyed with numeric indices (0,1,2…) instead of normalized time strings (HH:MM:SS). Because the theming layer expects items to be keyed by bucket floors like 12:00:00 or 12:15:00, these numeric keys cause events to drop into the wrong place or appear misaligned.

Proposed resolution

Normalize bucket keys when building $inner and $singleday_buckets:
• Use bucketFloor($time) to guarantee HH:MM:SS keys.
• Ensure all events (even when rendered without overlap) are placed in arrays keyed by their bucket floor.
• This change aligns the render array with what the templates expect and fixes the misalignment in day and week views.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @ramil g
  • Pipeline finished with Failed
    about 1 month ago
    Total: 151s
    #591370
  • Pipeline finished with Failed
    about 1 month ago
    Total: 314s
    #591375
  • Pipeline finished with Failed
    about 1 month ago
    Total: 306s
    #591383
  • Pipeline finished with Success
    about 1 month ago
    Total: 160s
    #591392
  • Pipeline finished with Success
    about 1 month ago
    Total: 370s
    #591402
  • I updated the issue title and summary for clarity, as I had previously conflated several distinct issues.

  • Merge request !75Resolve #3545207 "Dayweek view events" → (Open) created by ramil g
  • Pipeline finished with Failed
    4 days ago
    #628122
  • Pipeline finished with Canceled
    4 days ago
    Total: 75s
    #628123
  • Pipeline finished with Failed
    4 days ago
    #628124
  • Pipeline finished with Failed
    4 days ago
    Total: 163s
    #628147
  • Pipeline finished with Failed
    3 days ago
    Total: 315s
    #629278
  • Pipeline finished with Failed
    3 days ago
    Total: 202s
    #629286
  • Pipeline finished with Failed
    3 days ago
    Total: 173s
    #629294
  • Pipeline finished with Success
    3 days ago
    Total: 172s
    #629295
  • Pipeline finished with Success
    about 17 hours ago
    Total: 175s
    #631681
  • Pipeline finished with Canceled
    about 17 hours ago
    Total: 151s
    #631688
  • Pipeline finished with Canceled
    about 17 hours ago
    Total: 92s
    #631690
  • Pipeline finished with Canceled
    about 17 hours ago
    #631691
  • Pipeline finished with Canceled
    about 17 hours ago
    Total: 90s
    #631692
  • Pipeline finished with Canceled
    about 17 hours ago
    Total: 85s
    #631693
  • Pipeline finished with Canceled
    about 17 hours ago
    Total: 87s
    #631694
  • Pipeline finished with Canceled
    about 17 hours ago
    Total: 106s
    #631695
  • Pipeline finished with Success
    about 17 hours ago
    Total: 204s
    #631696
  • Pipeline finished with Canceled
    about 17 hours ago
    Total: 92s
    #631702
  • Pipeline finished with Success
    about 17 hours ago
    Total: 239s
    #631703
  • Pipeline finished with Failed
    about 16 hours ago
    Total: 181s
    #631769
  • Pipeline finished with Failed
    about 14 hours ago
    Total: 218s
    #631823
Production build 0.71.5 2024