Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add catalog update script #639

Merged
merged 4 commits into from
Nov 7, 2023
Merged

Add catalog update script #639

merged 4 commits into from
Nov 7, 2023

Conversation

kevinzwang
Copy link
Member

A lot of changes here but mostly just moving things around:

  • moved scripts inside src because it's using a lot of the same code as src and it started to make less sense to move all that stuff to a common folder
  • moved db/ to models/ since we are also using the types for SIS API responses

@kevinzwang kevinzwang linked an issue Oct 24, 2023 that may be closed by this pull request
KartavyaSharma and others added 4 commits November 6, 2023 17:15
Added config files for local, dev, and prod

Updated package.json with new deps

Setup DB connection

Added constants file

Added @types/<dep> packages for node and config

Updated tsconfig.json rootDir path

Fixed config dbUri variable name across config files

Added SIS API respose schemas, dependencies to generate SIS schemas, and scripts to keep said schemas updated

Strict type-safety update in tsconfig.json

Moved utils to common

Exposed SIS API Base URL in all environments

Added classes SIS API response model in mongoose

Fixed models/classes.ts formatting

Added type validators for SIS API response using typebox, updated  script with validator schema codegen

Removed stale git utils/db.util.ts file

Refactored update-schemas.sh script with portal bash execution

Added types for all SIS class API endpoints

Added mongoose models for class endpoints

Updated schema update script echo

Move scripts to src/
Updated SIS models based on official documentation instead of just sampling.

Also, since these schemas also describe API responses, I felt it more appropriate to (re)name them to models.
@kevinzwang kevinzwang merged commit 5bcf09c into gql Nov 7, 2023
1 check passed
@kevinzwang kevinzwang deleted the kev-update-scripts branch November 7, 2023 01:16
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.

Write class/section/enrollment update script
3 participants