Skip to content

fix: Don't create due dates in the past#95

Draft
srubin wants to merge 5 commits into
mainfrom
cursor/fix-past-due-dates-9b02
Draft

fix: Don't create due dates in the past#95
srubin wants to merge 5 commits into
mainfrom
cursor/fix-past-due-dates-9b02

Conversation

@srubin

@srubin srubin commented Jul 6, 2026

Copy link
Copy Markdown

TL;DR

Dependicus will no longer create issues with due dates that are already in the past. Instead of showing an overdue date, such issues are created without a due date.

Why

  • User confusion: Past due dates (like "due 2024-05-06" when it's July 2026) are confusing and don't add value — they just state the obvious: the dependency is already overdue.
  • Better UX: Issues without due dates are cleaner for already-overdue dependencies, since the description already explains how long they've been out of compliance.
  • Consistency: The fix aligns with how FYI (notification-only) dependencies are handled — they also don't get due dates.

What Changed

Modified calculateDueDate() in src/core/utils/versionUtils.ts to return undefined when the calculated due date falls before today's date. The function now accepts an optional now parameter for testing.

Updated tests to:

  • Provide explicit now dates to test both past and future due date scenarios
  • Add test coverage for the new behavior
  • Fix GitHub issue reconciler test to use recent publish dates

This fix affects both Linear and GitHub issue creation — neither will set past due dates anymore. The existing code already handled undefined due dates correctly, so no changes were needed in the issue reconcilers.

Duck Note

Like a duck that doesn't dwell on missed breadcrumb opportunities, Dependicus now moves forward without fixating on past due dates. 🦆

Closes BIX-8427

Linear Issue: BIX-8427

Open in Web Open in Cursor 

cursoragent and others added 5 commits July 6, 2026 19:44
When calculateDueDate determines a due date that is in the past,
it now returns undefined instead of the past date. This prevents
Dependicus from creating Linear and GitHub issues with due dates
that have already passed.

Fixes BIX-8427

Co-authored-by: Steve Rubin <srubin@users.noreply.github.com>
Co-authored-by: Steve Rubin <srubin@users.noreply.github.com>
Co-authored-by: Steve Rubin <srubin@users.noreply.github.com>
Co-authored-by: Steve Rubin <srubin@users.noreply.github.com>
Co-authored-by: Steve Rubin <srubin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants