Skip to content

Conversation

@dkhalife
Copy link
Owner

Notifications weren't getting updated in a couple code paths where date gets updated on its own.
Json dt doesn't seem to perform well for some DBSM, using the serializer without the underlying dt to try

Copilot AI review requested due to automatic review settings December 27, 2025 16:53
@dkhalife dkhalife enabled auto-merge (squash) December 27, 2025 16:53
@dkhalife dkhalife merged commit 416122e into main Dec 27, 2025
10 checks passed
@dkhalife dkhalife deleted the longtext branch December 27, 2025 16:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes notification bugs where notifications weren't being regenerated when task due dates were updated, and addresses database compatibility issues with JSON serialization in GORM by removing the explicit type:json type specification.

  • Added notification generation to UpdateDueDate and CalDAV PUT operations where date updates occur
  • Removed type:json from GORM serializer tags for better cross-database compatibility
  • Integrated notification repository into CalDAV API handler

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
apiserver/internal/services/tasks/task.go Added notification generation goroutine to UpdateDueDate function to ensure notifications are regenerated when due dates change
apiserver/internal/models/user.go Removed type:json specification from Scopes field GORM tag to improve database compatibility while maintaining JSON serialization
apiserver/internal/models/recurrence.go Removed type:json specification from Days and Months GORM tags to improve database compatibility while maintaining JSON serialization
apiserver/internal/apis/caldav.go Added notification repository dependency and regeneration logic to CalDAV PUT handler for task updates via CalDAV protocol

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Dec 27, 2025

Codecov Report

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
apiserver/internal/apis/caldav.go 0.00% 6 Missing ⚠️
apiserver/internal/services/tasks/task.go 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants