Skip to content

fix: include start-date-only cards in Gantt view - #8751

Open
JoProbst wants to merge 1 commit into
nextcloud:mainfrom
JoProbst:fix-gantt-single-date-cards
Open

JoProbst wants to merge 1 commit into
nextcloud:mainfrom
JoProbst:fix-gantt-single-date-cards

Conversation

@JoProbst

Copy link
Copy Markdown

Previously, cards with only a start date would neither show up in the Gantt timeline view, nor in the "Cards without dates" section. They would still use the due date to calculate if the card time falls inside the renderable time window, which it never does, because the missing due date (null) is converted to January 1, 1970.
Fix: Use the start date when filtering a card with no due date for visibility.

Verified with the added test and manually, start-only cards within the renderable time window now appear as 1-hour long events in the Gantt view, like due-date only cards.

  • Target version: main

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Documentation (manuals or wiki) has been updated or is not required

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (pi:gpt-6-luna)

Use the start date when filtering a card with no due date. Previously, the missing due date could be interpreted as 1970, filtering the card out before it reached the Gantt task builder.

Add a regression test for start-only and undated cards.

Signed-off-by: Jonas Probst <jonas.probst@posteo.de>
Assisted-by: pi:gpt-6-luna

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants