Skip to content

Commit

Permalink
feat: major merge into main from develop (#314)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint to v8.9.0 (#141)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.2.0 (#140)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.70 (#138)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.71 (#145)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.0 (#142)

Co-authored-by: Renovate Bot <[email protected]>

* feat: lambda for put-timetable (#144)

* feat: lambda for put-timetable

* deleted newline for put-timetable.

* changed file name for consistency

* chore(deps): update actions/setup-node action to v3 (#148)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.1 (#147)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.72 (#146)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.12.1 (#143)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.14.0 (#133)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.74 (#150)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint to v8.10.0 (#149)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency typescript to v4.6.2 (#153)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.15.0 (#154)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.75 (#152)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.6.0 (#155)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update actions/checkout action to v3 (#156)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.13.0 (#151)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.76 (#157)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.77 (#158)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.79 (#159)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.14.0 (#162)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.7.0 (#161)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.81 (#160)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.82 (#163)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.83 (#164)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.16.0 (#168)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update endbug/add-and-commit action to v9 (#167)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency @commitlint/cli to v16.2.3 (#170)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.15.0 (#169)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.90 (#165)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/find-comment action to v2 (#175)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/create-or-update-comment action to v2 (#174)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.17.0 (#171)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.92 (#172)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.16.0 (#173)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint-import-resolver-typescript to v2.7.0 (#176)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.19.0 (#183)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.17.0 (#182)

Co-authored-by: Renovate Bot <[email protected]>

* feat: api for put-timetable lambda. (#179)

* feat: api for put-timetable lambda.

* feat: fixed syntax errors

* feat: fixed syntax error (2)

* chore(deps): update dependencies

* chore: add lint-staged

* chore(deps): update codecov/codecov-action action to v3 (#186)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.3.0 (#189)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.22.0

* chore(deps): update github/codeql-action action to v2 (#192)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.4.0 (#190)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependencies

* chore(deps): update amannn/action-semantic-pull-request action to v4.5.0

* chore(deps): update dependency husky to v8

* chore(deps): update dependency @commitlint/cli to v16.3.0

* chore(deps): update dependency standard-version to v9.5.0

* chore(deps): update aws-cdk monorepo to v2.27.0

* chore(deps): update dependency ts-jest to v28.0.4

* chore(deps): update dependency eslint to v8.17.0

* chore(deps): update dependency ts-node to v10.8.1

* chore(deps): update typescript-eslint monorepo to v5.27.1

* chore(deps): update jest monorepo

* chore(deps): update dependency constructs to v10.1.32

* chore(deps): update dependencies

* chore(deps): update pnpm/action-setup action to v2.2.2

* chore(deps): update dependency typescript to v4.7.3

* chore(deps): update dependencies

* f:added Put method into default Headers for new api function put-timetable (#216)

* feat: updated pnpm-lock file to latest

* feat: uploading updated package file

* feat: updating package-lock file

* fix: modified jest config file

* fix: update jest config

* fix: configured rest api settings  (#221)

* fix: config rest api

* fix: update jest config

* fix: jest types

* fix: update pnpm lock

* fix: deleted package-lock

* feat: creating only database and not API (#225)

* f:added Put method into default Headers for new api function put-timetable

* feat: adding table and api

* feat: for backup

* feat: updated pnpm-lock

* feat: initiating database creation

* feat: redoing databases

* feat: building database thread

* fix: fix git branch merging error (#226)

* fix: fix git branch merging error

* fix: fixing minor issues

* fix: hotfix

* fix: fixing db

* fix(deps): update dependency flatted to v3.2.7 (#215)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update jest monorepo (#210)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency husky to v8.0.2 (#227)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: renamed forum database and fixed multiple api (#230)

* feat: updated api get schema and renamed database

* fix: fix lambda function

* fix: fixed lambda get single thread and others

* fix: changed already existing db role name (#231)

* feat: updated api get schema and renamed database

* fix: fix lambda function

* fix: fixed lambda get single thread and others

* fix: fix already existing db role

* feat: editing forum restapi resources and added multiple CRUD lambda functions (#232)

* feat: altered api resources Trying to resolve multiple trigger issue in one lambda function

* feat: added lambdas delete patch and post fixed minor issues in other lambdas

* fix: erased unused library

* chore(deps): update dependency constructs to v10.1.205 (#206)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ts-jest to v28.0.8 (#208)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency ts-node to v10.9.1 (#234)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency constructs to v10.1.206 (#235)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency esbuild to ^0.16.0 (#233)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint-import-resolver-typescript to v3 (#214)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update commitlint monorepo to v17.3.0 (#213)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update jest monorepo to v29 (#239)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* feat: adding forum comment features (#240)

* feat: initiating forum comments function

* feat: added api gateway schemas for forum comment GET POST and PATCH

* feat: added Forum Comment Api Service

* feat: added GET POST PATCH DELETE lambda functions for forum comments

* feat: finishing fourm comment lambda functions Now capable of conducting simple curd operations

* fix: fix forum comment patch

* fix: re-configuring options resource for forum threads

* fix: renaming api resource

* fix: issue with post forum thread fixing issue (#242)

* fix: mistaken sortkey type

* fix: trying to solve a problem

* fix: changing db (#243)

* fix: solving database issue

* fix: still fixing issues

* fix: reverting error (#244)

* fix: fixing big time reverting whole thread feature

* fix: trying my best to fix

* fix: continuing fix

* fix: continuing

* fix: deleting lambda (#245)

* feat: reverting

* feat: idontknowwhatshappeningnow

* feat: fixing mistakes

* feat: retrieving db and api

* chore(deps): update dependency constructs to v10.1.210 (#241)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: fixing cross stack referencing (#247)

* fix: fixing cross stack referencing

* fix: fixing export value

* chore(deps): update dependency husky to v8.0.3 (#246)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: updating dependencies and syllabus structure (#249)

* fix: configuring-rest-api (#219)

* chore(deps): update dependency eslint to v8.9.0 (#141)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.2.0 (#140)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.70 (#138)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.71 (#145)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.0 (#142)

Co-authored-by: Renovate Bot <[email protected]>

* feat: lambda for put-timetable (#144)

* feat: lambda for put-timetable

* deleted newline for put-timetable.

* changed file name for consistency

* chore(deps): update actions/setup-node action to v3 (#148)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update pnpm/action-setup action to v2.2.1 (#147)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.72 (#146)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.12.1 (#143)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.14.0 (#133)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.74 (#150)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint to v8.10.0 (#149)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency typescript to v4.6.2 (#153)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.15.0 (#154)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.75 (#152)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.6.0 (#155)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update actions/checkout action to v3 (#156)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.13.0 (#151)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.76 (#157)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.77 (#158)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.79 (#159)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.14.0 (#162)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency ts-node to v10.7.0 (#161)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.81 (#160)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.82 (#163)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.83 (#164)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.16.0 (#168)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update endbug/add-and-commit action to v9 (#167)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency @commitlint/cli to v16.2.3 (#170)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.15.0 (#169)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.90 (#165)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/find-comment action to v2 (#175)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update peter-evans/create-or-update-comment action to v2 (#174)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.17.0 (#171)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency constructs to v10.0.92 (#172)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.16.0 (#173)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependency eslint-import-resolver-typescript to v2.7.0 (#176)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.19.0 (#183)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update typescript-eslint monorepo to v5.17.0 (#182)

Co-authored-by: Renovate Bot <[email protected]>

* feat: api for put-timetable lambda. (#179)

* feat: api for put-timetable lambda.

* feat: fixed syntax errors

* feat: fixed syntax error (2)

* chore(deps): update dependencies

* chore: add lint-staged

* chore(deps): update codecov/codecov-action action to v3 (#186)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.3.0 (#189)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update aws-cdk monorepo to v2.22.0

* chore(deps): update github/codeql-action action to v2 (#192)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update amannn/action-semantic-pull-request action to v4.4.0 (#190)

Co-authored-by: Renovate Bot <[email protected]>

* chore(deps): update dependencies

* chore(deps): update amannn/action-semantic-pull-request action to v4.5.0

* chore(deps): update dependency husky to v8

* chore(deps): update dependency @commitlint/cli to v16.3.0

* chore(deps): update dependency standard-version to v9.5.0

* chore(deps): update aws-cdk monorepo to v2.27.0

* chore(deps): update dependency ts-jest to v28.0.4

* chore(deps): update dependency eslint to v8.17.0

* chore(deps): update dependency ts-node to v10.8.1

* chore(deps): update typescript-eslint monorepo to v5.27.1

* chore(deps): update jest monorepo

* chore(deps): update dependency constructs to v10.1.32

* chore(deps): update dependencies

* chore(deps): update pnpm/action-setup action to v2.2.2

* chore(deps): update dependency typescript to v4.7.3

* chore(deps): update dependencies

* f:added Put method into default Headers for new api function put-timetable (#216)

* feat: updated pnpm-lock file to latest

* feat: uploading updated package file

* feat: updating package-lock file

* fix: modified jest config file

* fix: update jest config

* fix: config rest api

* fix: update jest config

* fix: jest types

* fix: update pnpm lock

* fix: deleted package-lock

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: AustinZhu <[email protected]>

* Revert "fix: configuring-rest-api (#219)" (#220)

This reverts commit 665e252.

* fix: chaning syllabus constants

* fix: fixing actions

* fix: adding pnpm command

* fix: reverting changes to original form

---------

Co-authored-by: Jason Park <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: AustinZhu <[email protected]>

* chore(deps): update dependency constructs to v10.1.279 (#250)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: establishing table (#252)

* fix: minor changes (#253)

* fix: renaming table (#254)

* fix: renaming table

* fix: might be an empty commit

* fix: exporting table arn (#255)

* fix: resolving already existing identifier (#256)

* fix: rereferencing export (#258)

* fix: removed conflicting service

* fix: removing exporting value

* fix: re connecting thread service

* fix: adding lsi to table exporting arn with tablename (#259)

* fix: deleting thread table (#260)

* fix: recreating thread table with proper lsi (#261)

* fix: recreating lambdas for forum threads (#262)

* chore(deps): update typescript-eslint monorepo to v5.55.0 (#207)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/node to v18 (#237)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update aws-cdk monorepo (#209)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: api service added (#266)

* chore(deps): update dependency typescript to v4.9.5 (#211)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint to v8.36.0 (#212)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update commitlint monorepo to v17.4.4 (#267)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: fixing error for get thread (#271)

* feat: adding amplify micro app forum (#272)

* feat: adding amplify app forums

* fix: deleting added micro app

* feat: readding amplify app forum

* chore(deps): update dependency esbuild to ^0.17.0 (#269)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: updating outdated pnpm lock file (#274)

* fix: reinstalling pnpm lock file to solve outdate issue

* fix: reinstalling pnpm and then reinstalling pnpm lock file

* chore(deps): update dependency constructs to v10.1.305 (#263)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @commitlint/cli to v17.5.1 (#275)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency constructs to v10.1.309 (#276)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency aws-cdk-lib to v2.74.0 (#277)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency constructs to v10.1.311 (#278)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update commitlint monorepo to v17.6.1 (#279)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency eslint to v8.38.0 (#280)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update jest monorepo to v29.5.0 (#281)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency constructs to v10.1.312 (#282)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update dependency @types/node to v18.15.12 (#273)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: adding response handler (#285)

* fix: fixing multiple lambda functions (#286)

* fix: fixing redundant data requirements described in the schema (#287)

* fix: fixing multiple lambda functions

* fix: fixing api schema

* fix: fixed schema and some lambdas (#288)

* fix: scraper and period location (#289)

* feat: adding new case for scrapper for instance multiple periods and multiple locations

* feat: adding case of multiple locations and periods devided with a slash

* feat: updated get single thread lambda role to all access to db (#290)

* feat: enabling multi-line evaluation criteria scraping (#291)

* feat: adding regex to scrape multiple eval criterias

* feat: enabling multiple line of criteria

* chore(deps): update dependency @types/jest to v29.5.1 (#284)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chore(deps): update typescript-eslint monorepo to v5.59.6 (#283)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* fix: applying hotfix changes to branch develop

* feat: adding case 3 for merging period and location for exceptions (#295)

* chore(deps): update pnpm/action-setup action to v2.2.4 (#228)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* chores: simple update

* fix: refactoring forum table keys (#298)

* fix: refactoring forum table keys

* fix: first deleting the table

* feat: exporting table arn

* feat: destroying table forum (#299)

* feat: destroying table forum

* feat: exporting table name and arn to disconnect api service

* feat: continue destorying the forum table (#300)

* feat: continue destorying the forum table

* feat: disconnecting endpoint and stop exporting table arn

* feat: finishing refactoring forum functionaility (#301)

* feat: changing parameters for uid (#302)

* feat: changing parameters for uid

* fix: fixing conditional statements

* feat: adding default value

* feat: github why are you doing this stop this please

* fix: small changes

* fix: fix get-course (#303)

* feat: fixing cron

* fix: fix get eval criteria (#306)

* fix-get-eval-criteria

* fix: fix get-eval-criteria

* fix: fixing pnpm version to 6 (#309)

* feat: adding oauth for flutter app (#310)

* feat: adding oauth for flutter app

* fix: fixing typo

* fix: hotfix for conditional (#311)

* fix: fixing the fucking delete and patch

* feat: i might have solved the fucking issue

* feat: add mod flag (#312)

* feat: adding mod flag to get all threads lambda

* feat: adding mod flag to board threads

* fix: multiple lambdas related forums (#313)

* fix: update node version

* feat: fixing get functionality

* fix: getting rid of default values

* fix: final fix please

* fix: taking out int

* fix: lets make it work

* feat: adding school filtering

* fix: adding contigency

* fix: fixing bool

* fix: fixing bull for starting index

* feat: adding some loggings

* fix: fixing indexing

* chore: adding logging for debug

* feat: adding end index to message response

* fix: fixing schema to array

* feat: adding tags filtering to lambda

* feat: adding filitering and pagination functionality to board thread api

* fix: fixing small typos

* feat: contacting two lambdas to one

* feat: fixing

* fix: adding default

* feat: adding loggings for debugging

* feat: fixing sorting logic

* feat: refactoring sorting method

* feat: adding builtin dynamo pagination

* feat: reverting changes back to original built in pagination requires more examination

* feat: returning the created thread item for smooth UX

* feat: popping uid for secruity measures

* feat: adding thread comment to retunred data without uid exposure

* feat: adding mod flag

* feat: adding backend functionality for like

* feat: passing thread id back to client

* fix: fixing like logic

* fix: fixing logic for likes

* fix: refixing the fucking likes feature

* feat: major update into main from develop

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Jason Park <[email protected]>
Co-authored-by: AustinZhu <[email protected]>
Co-authored-by: Y.H LIEN <[email protected]>
  • Loading branch information
6 people authored Sep 11, 2023
1 parent 3858dea commit 5d58bd9
Show file tree
Hide file tree
Showing 29 changed files with 1,091 additions and 797 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ description: "Workflow for installing dependencies"
runs:
using: "composite"
steps:
- uses: pnpm/[email protected].2
- uses: pnpm/[email protected].4
with:
version: latest
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: "pnpm"
- name: Setup CDK
shell: bash
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,6 @@ node_modules
# CDK asset staging directory
.cdk.staging
cdk.out

#vscode settings
.vscode/
41 changes: 19 additions & 22 deletions lib/configs/api-gateway/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export const forumThreadGetRespSchema: apigw.JsonSchema = {
type: apigw.JsonSchemaType.STRING,
},
tag_id: {
type: apigw.JsonSchemaType.STRING,
type: apigw.JsonSchemaType.ARRAY,
},
group_id: {
type: apigw.JsonSchemaType.STRING,
Expand All @@ -422,6 +422,12 @@ export const forumThreadGetRespSchema: apigw.JsonSchema = {
mod: {
type: apigw.JsonSchemaType.BOOLEAN,
},
userLiked: {
type: apigw.JsonSchemaType.BOOLEAN,
},
totalLikes: {
type: apigw.JsonSchemaType.INTEGER,
},
},
required: [
'univ_id',
Expand All @@ -435,6 +441,8 @@ export const forumThreadGetRespSchema: apigw.JsonSchema = {
'body',
'views',
'mod',
'userLiked',
'totalLikes',
],
},
},
Expand All @@ -452,12 +460,6 @@ export const forumThreadPostReqSchema: apigw.JsonSchema = {
data: {
type: apigw.JsonSchemaType.OBJECT,
properties: {
univ_id: {
type: apigw.JsonSchemaType.INTEGER,
},
board_id: {
type: apigw.JsonSchemaType.STRING,
},
tag_id: {
type: apigw.JsonSchemaType.STRING,
},
Expand All @@ -471,7 +473,7 @@ export const forumThreadPostReqSchema: apigw.JsonSchema = {
type: apigw.JsonSchemaType.STRING,
},
},
required: ['univ_id', 'board_id', 'tag_id', 'group_id', 'title', 'body'],
required: ['tag_id', 'group_id', 'title', 'body'],
},
},
required: ['data'],
Expand All @@ -484,13 +486,10 @@ export const forumThreadPatchReqSchema: apigw.JsonSchema = {
data: {
type: apigw.JsonSchemaType.OBJECT,
properties: {
board_id: {
type: apigw.JsonSchemaType.STRING,
},
tag_id: {
type: apigw.JsonSchemaType.STRING,
},
thread_id: {
group_id: {
type: apigw.JsonSchemaType.STRING,
},
title: {
Expand All @@ -500,10 +499,14 @@ export const forumThreadPatchReqSchema: apigw.JsonSchema = {
type: apigw.JsonSchemaType.STRING,
},
},
required: ['board_id', 'tag_id', 'thread_id', 'title', 'body'],
required: ['tag_id', 'group_id', 'title', 'body'],
},
action: {
type: apigw.JsonSchemaType.STRING,
enum: ['update', 'like', 'dislike'],
},
},
required: ['data'],
required: ['data', 'action'],
};

export const forumCommentGetRespSchema: apigw.JsonSchema = {
Expand Down Expand Up @@ -545,14 +548,11 @@ export const forumCommentPostReqSchema: apigw.JsonSchema = {
data: {
type: apigw.JsonSchemaType.OBJECT,
properties: {
thread_id: {
type: apigw.JsonSchemaType.STRING,
},
body: {
type: apigw.JsonSchemaType.STRING,
},
},
required: ['thread_id', 'body'],
required: ['body'],
},
},
required: ['data'],
Expand All @@ -565,14 +565,11 @@ export const forumCommentPatchReqSchema: apigw.JsonSchema = {
data: {
type: apigw.JsonSchemaType.OBJECT,
properties: {
thread_id: {
type: apigw.JsonSchemaType.STRING,
},
body: {
type: apigw.JsonSchemaType.STRING,
},
},
required: ['thread_id', 'body'],
required: ['body'],
},
},
required: ['data'],
Expand Down
19 changes: 16 additions & 3 deletions lib/configs/cognito/oauth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
export const GOOGLE_OAUTH_CLIENT_ID = process.env.GOOGLE_OAUTH_CLIENT_ID!;

export const GOOGLE_OAUTH_CLIENT_SECRET = process.env.GOOGLE_OAUTH_CLIENT_SECRET!;
export const GOOGLE_OAUTH_CLIENT_SECRET =
process.env.GOOGLE_OAUTH_CLIENT_SECRET!;

export const CALLBACK_URLS = ['https://wasedatime.com/verify', 'https://dev.wasedatime.com/verify', 'localhost:3000/verify'];
export const CALLBACK_URLS = [
'https://wasedatime.com/verify',
'https://dev.wasedatime.com/verify',
'localhost:3000/verify',
];

export const LOGOUT_URLS = ['https://wasedatime.com/', 'https://dev.wasedatime.com/', 'localhost:3000/'];
export const LOGOUT_URLS = [
'https://wasedatime.com/',
'https://dev.wasedatime.com/',
'localhost:3000/',
];

export const FLUTTER_CALLBACK_URL = ['wasedatime://verify'];

export const FLUTTER_LOGOUT_URL = ['wasedatime://'];
4 changes: 2 additions & 2 deletions lib/configs/event/schedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const syllabusSchedule: { [name: string]: events.Schedule } = {
'regular': events.Schedule.cron({
minute: '0',
hour: '16',
day: '1,2',
day: '1',
month: '*',
year: '*',
}),
Expand All @@ -18,7 +18,7 @@ export const syllabusSchedule: { [name: string]: events.Schedule } = {
'fall-reg1': events.Schedule.cron({
minute: '0',
hour: '16',
day: '4,7,10,13,15,17',
day: '4,7,10,13,15,17,19',
month: 'SEP',
year: '*',
}),
Expand Down
53 changes: 39 additions & 14 deletions lib/constructs/business/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import * as route53_targets from 'aws-cdk-lib/aws-route53-targets';
import { Construct } from 'constructs';
import {
CALLBACK_URLS,
FLUTTER_CALLBACK_URL,
GOOGLE_OAUTH_CLIENT_ID,
GOOGLE_OAUTH_CLIENT_SECRET,
LOGOUT_URLS,
FLUTTER_LOGOUT_URL,
} from '../../configs/cognito/oauth';
import { AUTH_CERT_ARN } from '../../configs/common/arn';
import { AUTH_DOMAIN } from '../../configs/route53/domain';
Expand Down Expand Up @@ -70,21 +72,24 @@ export class WasedaTimeUserAuth extends AbstractAuthProvider {
},
userPoolName: 'wasedatime-users',
lambdaTriggers: {
preSignUp: new PreSignupWasedaMailValidator(this, 'presign-up-handle').baseFunction,
preSignUp: new PreSignupWasedaMailValidator(this, 'presign-up-handle')
.baseFunction,
},
});

this.pool.registerIdentityProvider(new cognito.UserPoolIdentityProviderGoogle(this, 'google-idp', {
clientId: GOOGLE_OAUTH_CLIENT_ID,
clientSecret: GOOGLE_OAUTH_CLIENT_SECRET,
userPool: this.pool,
attributeMapping: {
email: cognito.ProviderAttribute.GOOGLE_EMAIL,
preferredUsername: cognito.ProviderAttribute.GOOGLE_NAME,
profilePicture: cognito.ProviderAttribute.GOOGLE_PICTURE,
},
scopes: ['email', 'openid', 'profile'],
}));
this.pool.registerIdentityProvider(
new cognito.UserPoolIdentityProviderGoogle(this, 'google-idp', {
clientId: GOOGLE_OAUTH_CLIENT_ID,
clientSecret: GOOGLE_OAUTH_CLIENT_SECRET,
userPool: this.pool,
attributeMapping: {
email: cognito.ProviderAttribute.GOOGLE_EMAIL,
preferredUsername: cognito.ProviderAttribute.GOOGLE_NAME,
profilePicture: cognito.ProviderAttribute.GOOGLE_PICTURE,
},
scopes: ['email', 'openid', 'profile'],
}),
);

this.clients['web-app'] = this.pool.addClient('web-app-client', {
userPoolClientName: 'web-app',
Expand All @@ -100,6 +105,20 @@ export class WasedaTimeUserAuth extends AbstractAuthProvider {
preventUserExistenceErrors: true,
});

this.clients['flutter-app'] = this.pool.addClient('flutter-app-client', {
userPoolClientName: 'flutter-app',
authFlows: {
custom: true,
userSrp: true,
},
generateSecret: false,
oAuth: {
callbackUrls: FLUTTER_CALLBACK_URL,
logoutUrls: FLUTTER_LOGOUT_URL,
},
preventUserExistenceErrors: true,
});

// todo add custom ses in us-east-1

// fixme cross region resource
Expand All @@ -110,12 +129,18 @@ export class WasedaTimeUserAuth extends AbstractAuthProvider {
this.domain = this.pool.addDomain('auth-domain', {
customDomain: {
domainName: AUTH_DOMAIN,
certificate: acm.Certificate.fromCertificateArn(this, 'auth-domain-cert', AUTH_CERT_ARN),
certificate: acm.Certificate.fromCertificateArn(
this,
'auth-domain-cert',
AUTH_CERT_ARN,
),
},
});
new route53.ARecord(this, 'alias-record', {
zone: zone,
target: route53.RecordTarget.fromAlias(new route53_targets.UserPoolDomainTarget(this.domain)),
target: route53.RecordTarget.fromAlias(
new route53_targets.UserPoolDomainTarget(this.domain),
),
recordName: AUTH_DOMAIN,
});
}
Expand Down
6 changes: 0 additions & 6 deletions lib/constructs/business/rest-api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -878,9 +878,6 @@ export class ForumThreadsApiService extends RestApiService {
patchIntegration,
{
operationName: 'UpdateThread',
requestParameters: {
'method.request.querystring.ts': true,
},
requestModels: { ['application/json']: patchReqModel },
methodResponses: [
{
Expand All @@ -897,9 +894,6 @@ export class ForumThreadsApiService extends RestApiService {
deleteIntegration,
{
operationName: 'DeleteThread',
requestParameters: {
'method.request.querystring.ts': true,
},
methodResponses: [
{
statusCode: '200',
Expand Down
2 changes: 1 addition & 1 deletion lib/constructs/common/lambda-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ export class ForumThreadFunctions extends Construct {
functionName: 'get-single-thread',
logRetention: logs.RetentionDays.ONE_MONTH,
memorySize: 128,
role: dynamoDBReadRole,
role: dynamoDBPutRole,
runtime: lambda.Runtime.PYTHON_3_9,
timeout: Duration.seconds(3),
environment: props.envVars,
Expand Down
2 changes: 1 addition & 1 deletion lib/constructs/persistence/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class DynamoDatabase extends Construct {
billingMode: dynamodb.BillingMode.PROVISIONED,
encryption: dynamodb.TableEncryption.DEFAULT,
removalPolicy: RemovalPolicy.DESTROY,
sortKey: { name: 'created_at', type: dynamodb.AttributeType.STRING },
sortKey: { name: 'thread_id', type: dynamodb.AttributeType.STRING },
tableName: 'forum-threads',
readCapacity: 15,
writeCapacity: 15,
Expand Down
5 changes: 5 additions & 0 deletions lib/stacks/persistence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ export class WasedaTimePersistenceLayer extends PersistenceLayer {
// syllabusSyncPipeline.dataWarehouse.tableName,
// );

// Note: These are the magic words to disconnect cross stack referencing.

// this.exportValue(dynamoDatabase.tables[Collection.THREAD].tableName);
// this.exportValue(dynamoDatabase.tables[Collection.THREAD].tableArn);

this.operationInterface.setEndpoint(OperationEndpoint.SYLLABUS, {
[syllabusDataPipeline.processor.stateMachineArn]: 'scraper',
});
Expand Down
1 change: 1 addition & 0 deletions lib/stacks/presentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class WasedaTimePresentationLayer extends PresentationLayer {
monoApp.addMicroApp('syllabus');
monoApp.addMicroApp('campus');
monoApp.addMicroApp('feeds');
monoApp.addMicroApp('forum');

monoApp.microApps.feeds.addEnvironment('DEPLOY_KEY', FEEDS_DEPLOY_KEY);

Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@
"lint": "eslint . --ext .ts"
},
"peerDependencies": {
"aws-cdk-lib": "2.69.0",
"constructs": "10.1.279"
"aws-cdk-lib": "2.74.0",
"constructs": "10.1.312"
},
"devDependencies": {
"@aws-cdk/assert": "2.68.0",
"@commitlint/cli": "17.3.0",
"@commitlint/config-conventional": "17.3.0",
"@types/jest": "29.2.5",
"@types/node": "18.15.3",
"@commitlint/cli": "17.6.1",
"@commitlint/config-conventional": "17.6.1",
"@types/jest": "29.5.1",
"@types/node": "18.15.12",
"@types/pluralize": "0.0.29",
"@typescript-eslint/eslint-plugin": "5.55.0",
"@typescript-eslint/parser": "5.55.0",
"aws-cdk-lib": "2.69.0",
"constructs": "10.1.279",
"esbuild": "^0.16.0",
"eslint": "8.17.0",
"@typescript-eslint/eslint-plugin": "5.59.6",
"@typescript-eslint/parser": "5.59.6",
"aws-cdk-lib": "2.74.0",
"constructs": "10.1.312",
"esbuild": "^0.17.0",
"eslint": "8.38.0",
"eslint-import-resolver-node": "0.3.6",
"eslint-import-resolver-typescript": "3.5.2",
"eslint-plugin-import": "2.26.0",
"husky": "8.0.3",
"jest": "29.3.1",
"jest": "29.5.0",
"standard-version": "9.5.0",
"ts-jest": "29.0.3",
"ts-node": "10.9.1",
Expand Down
Loading

0 comments on commit 5d58bd9

Please sign in to comment.