Skip to content

Conversation

@benbucksch
Copy link
Collaborator

No description provided.

@benbucksch
Copy link
Collaborator Author

@NeilRashbrook It fails in truncate(), because the start doesn't match an occurence. I don't understand why. Could you please fix it?

@benbucksch benbucksch force-pushed the ben/recur-remainder branch 2 times, most recently from b376eab to a7a9a33 Compare July 15, 2025 03:49
@benbucksch
Copy link
Collaborator Author

Ideally, truncate() and the new function would work with any date, and the functions would compare >=

@benbucksch
Copy link
Collaborator Author

benbucksch commented Jul 15, 2025

We need 2 new functions:

  • Event.setSeriesEnd(end: Date)
  • RecurrenceRule.getOccurenceOnOrAfter(time: Date): Date returns the occurrence exactly on that time, or the next after that, or null (if there is none after that time)

@NeilRashbrook
Copy link
Collaborator

So, one big problem with your current code is that it doesn't actually delete the event you selected...

@benbucksch benbucksch force-pushed the ben/recur-remainder branch from 07a63af to 57a0e16 Compare July 15, 2025 23:43
@benbucksch
Copy link
Collaborator Author

one big problem with your current code is that it doesn't actually delete the event you selected...

Can you please post the reproduction steps?
And which code function you mean, what you think it should do where?

@benbucksch
Copy link
Collaborator Author

This code still doesn't work. When "changing remainder", it deletes all instances after this one, and restores this one to the original instance.

@benbucksch
Copy link
Collaborator Author

Alternative #763 has almost the same problem.

@benbucksch benbucksch marked this pull request as draft July 16, 2025 00:45
@benbucksch benbucksch changed the title Calendar: Edit: Remainder: Move code from UI to logic Calendar: Edit: Recurrence: Move changeRemainder() from UI to logic - try 1 Jul 16, 2025
Comment on lines +759 to +760
* Removes all instances, exceptions and exclusions
* on or after that `end` time. */
Copy link
Collaborator

Choose a reason for hiding this comment

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

As I mentioned in #760, this comment is false.

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.

3 participants