-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix professors for sections not being scraped (#244)
Updated the scraper to account for the API changes in Banner. Updated Yarn to the Berry version through Corepack. Updated the Dockerfile build chain to use the updated Yarn as well as decrease image size. Co-authored-by: mehallhm <[email protected]>
- Loading branch information
Showing
15 changed files
with
11,702 additions
and
8,100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: "2" | ||
|
||
services: | ||
postgresql: | ||
image: postgres:11.19-bullseye | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
#!/bin/sh | ||
|
||
cd dist | ||
yarn install --production | ||
yarn prod:db:migrate | ||
# Run a production prisma migration | ||
yarn prisma migrate deploy --preview-feature | ||
yarn db:refresh | ||
cd .. | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,10 +43,8 @@ | |
"dbtest": "jest -i --projects tests/database --verbose", | ||
"about:unittest": "//// Runs unit tests. Does not need db, elasticsearch, spun up. Does not need the Docker containers to be running.", | ||
"unittest": "jest -i --projects tests/unit --verbose", | ||
"about:build_backend": "//// Compiles this project", | ||
"build_backend": "rm -rf dist && mkdir -p dist && babel --extensions '.js,.ts' . -d dist/ --copy-files --ignore node_modules --ignore .git --include-dotfiles && rm -rf dist/.git", | ||
"about:build": "//// Compiles this project, surpressing output", | ||
"build": "yarn -s build_backend", | ||
"about:build": "//// Compiles this project", | ||
"build": "rm -rf dist && mkdir -p dist && babel --extensions '.js,.ts' . -d dist/ --copy-files --ignore node_modules --ignore .git --include-dotfiles && rm -rf dist/.git", | ||
"about:prod:scrape": "//// Runs the scrapers (same as `yarn scrape`, but on the compiled project)", | ||
"prod:scrape": "node dist/scrapers/main.js", | ||
"about:prod": "//// Runs the API (same as `yarn dev`, but on the compiled project)", | ||
|
@@ -67,7 +65,7 @@ | |
"@babel/node": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"@elastic/elasticsearch": "7.17.0", | ||
"@prisma/client": "^5.0.0", | ||
"@prisma/client": "5.22.0", | ||
"@typescript-eslint/typescript-estree": "^8.10.0", | ||
"amplitude": "^6.0.0", | ||
"apollo-server": "^3.13.0", | ||
|
@@ -140,14 +138,14 @@ | |
"prettier": "^3.0.0", | ||
"pretty-quick": "4", | ||
"prisma": "^5.0.0", | ||
"typescript": "^5.6.0", | ||
"yarn-deduplicate": "^6.0.2" | ||
"typescript": "^5.6.0" | ||
}, | ||
"about:engines": [ | ||
"This helps us ensure that only specific versions of Node are used to run this project", | ||
"Older versions may lead to unexpected errors due to dependency issues, etc." | ||
], | ||
"engines": { | ||
"node": ">=20" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.