Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproduce and fix issues related to RECURRENCE-ID #659

Merged
merged 4 commits into from
Dec 1, 2024

Conversation

minichma
Copy link
Collaborator

@minichma minichma commented Dec 1, 2024

This PR simplifies the handling of RECURRENCE-ID and by doing so fixes two bugs:

  • The RECURRENCE-ID considered only the date of occurrences to be replaced, not the time, which is wrong.
  • The set of dates/times that have a RECURRENCE-ID and therefore replace others was constructed from the result set inside GetOccurrences. So if they were lying outside the observed range, they were missed, which could cause incorrect result sets.

Copy link

codecov bot commented Dec 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@         Coverage Diff         @@
##           main   #659   +/-   ##
===================================
  Coverage    61%    61%           
===================================
  Files        99     99           
  Lines      4559   4561    +2     
  Branches   1083   1085    +2     
===================================
+ Hits       2791   2801   +10     
+ Misses     1302   1296    -6     
+ Partials    466    464    -2     
Files with missing lines Coverage Δ
Ical.Net/Calendar.cs 64% <100%> (+1%) ⬆️

... and 2 files with indirect coverage changes

@minichma minichma marked this pull request as ready for review December 1, 2024 16:14
@minichma minichma requested a review from axunonb December 1, 2024 16:16
axunonb
axunonb previously approved these changes Dec 1, 2024
Copy link
Collaborator

@axunonb axunonb left a comment

Choose a reason for hiding this comment

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

LGTM, tnx

…ences that replace others from the result set, we missed those outside the observed range, which is fixed by this change.
…t), which was lost due to prior code optimizations.
@minichma minichma force-pushed the work/minichma/bugfix/recurrence-id branch from 79cb5b3 to 287fcfc Compare December 1, 2024 20:40
Copy link

sonarqubecloud bot commented Dec 1, 2024

@axunonb axunonb self-requested a review December 1, 2024 20:44
Copy link
Collaborator

@axunonb axunonb left a comment

Choose a reason for hiding this comment

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

Fine, tnx

@minichma minichma merged commit add58a9 into main Dec 1, 2024
6 of 7 checks passed
@minichma minichma deleted the work/minichma/bugfix/recurrence-id branch December 1, 2024 20:48
@minichma
Copy link
Collaborator Author

minichma commented Dec 1, 2024

Thank you for the review!

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