Skip to content

fix(calendar): recurring event fix#6732

Merged
zomars merged 0 commit intocalcom:fixdfrom
WizardTales:fixd
Feb 9, 2023
Merged

fix(calendar): recurring event fix#6732
zomars merged 0 commit intocalcom:fixdfrom
WizardTales:fixd

Conversation

@wzrdtales
Copy link
Copy Markdown
Contributor

@wzrdtales wzrdtales commented Jan 26, 2023

the loop was running way too often on every recurring object mostly due to the fact that the iterator was not checked for finalization, and in fact the iterator is not implemented correctly so it does not have the done property. instead it checks for undefined or not

also further note, this part is a very slow implementation, which will cause everything to become very slow and practically unusable, there are probably better ways to handle this.
Why? well simple, this iterates through every possible day, instead of just applying the current window to it. That means on the one hand this functionality is broken from the first place (b/c it wont work if it is a very long running event) and on the other it was implemented at a very high expense.

--

edit, added at least a start date to the iterator, that should increase the speed of this already.

Signed-off-by: Tobias Gurtzick magic@wizardtales.com

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
cal ❌ Failed (Inspect) Jan 26, 2023 at 6:54PM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
ui ⬜️ Ignored (Inspect) Jan 26, 2023 at 6:54PM (UTC)

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 26, 2023

@wzrdtales is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@PeerRich
Copy link
Copy Markdown
Member

hey @wzrdtales thank you for the PR

this touches core logic and requires a lot of eyeballs from our team. tagging @leog @emrysal and @zomars

@wzrdtales
Copy link
Copy Markdown
Contributor Author

this touches core logic and requires a lot of eyeballs from our team.

agreed, this logic is broken in the first place though, so even more eyeballs to maybe suggest an even better fix. I validated the fix for now and it is indeed operational. I didn't include my hotfix for zoho calendars, see my comment in this issue regarding that.

#3457

This is what you will get from me so far, I wont try to fix any code style issues, I don't have time for that really, you may want to introduce husky into your project and automatically adjust the CS to your standards, this would do contributors a big favor, b/c no one wants to adjust to someones random standards every 5 minutes when you switch working on a project. Auto Code style formatted with husky git hook do a long way here. Over and out

@wzrdtales
Copy link
Copy Markdown
Contributor Author

bump

@PeerRich
Copy link
Copy Markdown
Member

PeerRich commented Feb 5, 2023

bump

thank you for bumping, our lead dev @zomars who would review this was on vacation for a week and will look at this monday

@PeerRich
Copy link
Copy Markdown
Member

PeerRich commented Feb 5, 2023

there are a few other PRs working o recurring events too, so lets hope there wont be any merge conflicts cc @leog

@zomars
Copy link
Copy Markdown
Contributor

zomars commented Feb 8, 2023

Hey @wzrdtales thanks for the contribution. I'm trying to get this branch up to date but I cannot push to it.

image

Can you enable "Allow edit by maintainers" as described in our CONTRIBUTING guide? Thank you

EDIT:

Alternative I can merge this into another branch and make the changes ourselves

@zomars zomars changed the base branch from main to fixd February 9, 2023 01:10
@zomars
Copy link
Copy Markdown
Contributor

zomars commented Feb 9, 2023

We'll take it from here @wzrdtales Thank you for your contribution 🙏

@wzrdtales
Copy link
Copy Markdown
Contributor Author

so its off the radar again?

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