Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

feat: ✨ add study room scraper and availability endpoint #143

Merged
merged 16 commits into from
May 20, 2024

Conversation

cokwong
Copy link
Contributor

@cokwong cokwong commented May 1, 2024

Summary

  • Add scraper for study rooms endpoint v1/rest/studyRooms
    • Requires params location, start and end
    • Available study locations:
      • Langson
      • Gateway
      • Science
      • MRC
      • GML
    • Date params uses (YYYY-MM-DD) format
  • All study rooms can be retrieved using v1/rest/studyRooms/all (still requires start and end)
  • Update GraphQL to supports new endpoints.
  • DB will need to be updated for new schema.

Issues

Closes #39.

@cokwong cokwong linked an issue May 1, 2024 that may be closed by this pull request
@cokwong cokwong temporarily deployed to staging-143 May 1, 2024 07:14 — with GitHub Actions Inactive
@cokwong cokwong temporarily deployed to staging-143-docs May 1, 2024 07:14 — with GitHub Actions Inactive
@cokwong cokwong temporarily deployed to staging-143-docs May 1, 2024 08:12 — with GitHub Actions Inactive
@cokwong cokwong temporarily deployed to staging-143 May 1, 2024 08:12 — with GitHub Actions Inactive
@cokwong cokwong temporarily deployed to staging-143-docs May 1, 2024 08:14 — with GitHub Actions Inactive
@cokwong cokwong temporarily deployed to staging-143 May 1, 2024 08:14 — with GitHub Actions Inactive
@ecxyzzy ecxyzzy temporarily deployed to staging-143 May 15, 2024 15:48 — with GitHub Actions Inactive
@ecxyzzy ecxyzzy temporarily deployed to staging-143-docs May 15, 2024 15:48 — with GitHub Actions Inactive
@ecxyzzy ecxyzzy temporarily deployed to staging-143 May 15, 2024 15:58 — with GitHub Actions Inactive
@ecxyzzy ecxyzzy temporarily deployed to staging-143-docs May 15, 2024 15:58 — with GitHub Actions Inactive
Copy link
Contributor

@ap0nia ap0nia left a comment

Choose a reason for hiding this comment

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

Looks pretty good! 👏

I can take a look and clean everything up myself. The code makes sense, and well thought out.

apps/api/src/routes/v1/rest/studyRooms/+endpoint.ts Outdated Show resolved Hide resolved
apps/api/src/routes/v1/rest/studyRooms/lib.ts Outdated Show resolved Hide resolved
apps/api/src/routes/v1/rest/studyRooms/lib.ts Outdated Show resolved Hide resolved
apps/api/src/routes/v1/rest/studyRooms/lib.ts Outdated Show resolved Hide resolved
apps/api/src/routes/v1/rest/studyRooms/{id}/+endpoint.ts Outdated Show resolved Hide resolved
tools/study-room-scraper/src/study-room-scraper.ts Outdated Show resolved Hide resolved
tools/study-room-scraper/src/study-room-scraper.ts Outdated Show resolved Hide resolved
tools/study-room-scraper/src/study-room-scraper.ts Outdated Show resolved Hide resolved
tools/study-room-scraper/src/study-room-scraper.ts Outdated Show resolved Hide resolved
tools/study-room-scraper/src/study-room-scraper.ts Outdated Show resolved Hide resolved
@sanskarm7 sanskarm7 temporarily deployed to staging-143 May 20, 2024 06:50 — with GitHub Actions Inactive
@sanskarm7 sanskarm7 temporarily deployed to staging-143-docs May 20, 2024 06:50 — with GitHub Actions Inactive
@cokwong cokwong temporarily deployed to staging-143 May 20, 2024 16:53 — with GitHub Actions Inactive
@cokwong cokwong temporarily deployed to staging-143-docs May 20, 2024 16:53 — with GitHub Actions Inactive
@ecxyzzy ecxyzzy requested a review from ap0nia May 20, 2024 18:06
Copy link
Contributor

@ap0nia ap0nia left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@ecxyzzy ecxyzzy merged commit cf565b3 into main May 20, 2024
4 checks passed
@ecxyzzy ecxyzzy deleted the study-room-scraper branch May 20, 2024 18:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Study room availability scraper
4 participants