Skip to content

Academic calendar url#161

Open
bvaic wants to merge 7 commits intodevelopfrom
academic-calendar-url
Open

Academic calendar url#161
bvaic wants to merge 7 commits intodevelopfrom
academic-calendar-url

Conversation

@bvaic
Copy link
Copy Markdown
Contributor

@bvaic bvaic commented Apr 16, 2026

  • URL field added to academic calendar
  • bugfix: past calendar selector for the scraper fixed

Fixes: #158

bvaic added 4 commits April 14, 2026 23:28
* if no search index exists in mongo, one is created
* if the fields of the existing search index in mongo do not match the current model, the existing search index is updated
* the academic calendars are now uploaded with an additional url field containing the box url for the calendar
* bugfix: fixed past selector so that the links are extracted correctly and completely

Co-authored-by: SuchDominion shijiand2022@gmail.com
@bvaic bvaic requested a review from mikehquan19 April 16, 2026 06:50
@bvaic
Copy link
Copy Markdown
Contributor Author

bvaic commented Apr 16, 2026

The bug with the past selector was that it was simply a duplicate of the future selector. Now, the past selector selects all the links in both div elements for the past section. This fix resolves the issue that we were having with duplicate links in the csv in the scraping phase which led to duplicates in the json in the parsing stage. Now, all the calendars should be there.

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.

I like the use of the CSV! I think the intent of including the link it for it to be listed for people to visit. For that reason, can you use the link to the Box page (like https://utdallas.app.box.com/s/hwavyx0pbojyb3ymn2kfvl0pwkwkkto6) instead of the static link (this one: https://utdallas.box.com/shared/static/%s.pdf)?

The changes in uploader/uploader.go don't seem relevant to the issue being solved but I may be missing something

@mikehquan19
Copy link
Copy Markdown
Contributor

The changes in the uploader is related to the search index used for fuzzy searching discount programs. It is here because that PR is not merged to develop yet, so it’s fine since it needs to be merged before this.

Also there’s a conflict to resolve :((

@TyHil
Copy link
Copy Markdown
Member

TyHil commented Apr 27, 2026

Oh yeah, I caused the conflict so just resolved it

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.

Add URL to Academic Calendar schema

3 participants