Skip to content

Comet calendar#108

Merged
TyHil merged 20 commits intodevelopfrom
comet-calendar
Apr 14, 2026
Merged

Comet calendar#108
TyHil merged 20 commits intodevelopfrom
comet-calendar

Conversation

@mikehquan19
Copy link
Copy Markdown
Contributor

@mikehquan19 mikehquan19 commented Mar 23, 2026

Overview

Resolves #60

Import the comet calendar events data from Nebula API

Because Mazevo and Calendar events share some identical events that have different timeline overlapping each other (differ from 15 minutes to 1 hour), I also create an additional logic to merge those together.

After doing a round of testing, it can actually merge different overlap as well (i.e, overlap between Astra and Mazevo events). The merged events will have "MERGED" at the beginning of the title (just for checking, I could remove this).

If you could provide feedback on the merging, it'd be appreciated since I'm not sure if this is behavior we want to have.

This is tested on the local api with updated Rooms view on the dev MongoDB. So we might have to update Rooms view on prod db.

Screenshot 2026-04-08 at 22 53 34

Note

The merge logic is from the solution to this leetcode problem

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
utd-rooms Ready Ready Preview, Comment Apr 13, 2026 8:34pm

Request Review

@mikehquan19 mikehquan19 marked this pull request as draft March 23, 2026 19:58
@mikehquan19 mikehquan19 marked this pull request as ready for review April 9, 2026 03:55
@mikehquan19 mikehquan19 requested a review from TyHil April 9, 2026 03:55
@mikehquan19
Copy link
Copy Markdown
Contributor Author

Also I believe that if merging logic is okay, I could also combine the mergin logic with dedup logic.

Copy link
Copy Markdown
Member

@TyHil TyHil left a comment

Choose a reason for hiding this comment

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

Just 2 things but other than that this looks really good!!

Just to reiterate what you said, we will have to remember to update the Rooms view on the prod db before merging

Comment thread src/components/ResultsTable.tsx Outdated
Comment thread src/components/ResultsTable.tsx Outdated
Copy link
Copy Markdown
Member

@TyHil TyHil left a comment

Choose a reason for hiding this comment

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

One thing I noticed with the algorithm is it turns days like this (on JSOM 1.502 Monday 4/13):

Image

into:

Image

Could you add some logic that doesn't merge "all-day" events (12:00am - 11:59pm) with any other events? Or maybe only merges all-day events with other all-day events

Other than that, I think it looks all good!

@mikehquan19
Copy link
Copy Markdown
Contributor Author

One thing I noticed with the algorithm is it turns days like this (on JSOM 1.502 Monday 4/13):

Image into: Image Could you add some logic that doesn't merge "all-day" events (12:00am - 11:59pm) with any other events? Or maybe only merges all-day events with other all-day events

Other than that, I think it looks all good!

Ok I'll get on it ASAP, this looks really weird.

…cluded rooms now that we have much better way of normalizing the room over API
…s' events, which will have duration > 23h. Second, only merge events that overlap at least 15mins, which includes also the situation one event contains another. Any overlapping less than < 15mins, will be kept that way.
Copy link
Copy Markdown
Member

@TyHil TyHil left a comment

Choose a reason for hiding this comment

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

Alright! Looks good to me! Awesome job!

I'll let you merge to develop when you're ready then I'll merge to main

@mikehquan19
Copy link
Copy Markdown
Contributor Author

Alright thanks! Yeah I will update the views for prod first.

The rooms from comet calendar have been standardized heavily to match astra and mazevo so there shouldn't be any wildcards (like "We will meet at the bookstore"), but I'll have to see first haha.

P.S. I learned a lot from this.

@TyHil TyHil merged commit 6c68399 into develop Apr 14, 2026
3 checks passed
@TyHil TyHil deleted the comet-calendar branch April 14, 2026 23:43
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.

[Feature Request] UTD Calendar data source

2 participants