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

feat: fixed syllabus scraper and initiating forum tables apis and lambdas #268

Merged
merged 135 commits into from
Mar 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
f37a426
chore(deps): update dependency eslint to v8.9.0 (#141)
renovate[bot] Feb 23, 2022
d77cb95
chore(deps): update amannn/action-semantic-pull-request action to v4.…
renovate[bot] Feb 23, 2022
566d7cd
chore(deps): update dependency constructs to v10.0.70 (#138)
renovate[bot] Feb 23, 2022
9dfd30d
chore(deps): update dependency constructs to v10.0.71 (#145)
renovate[bot] Feb 24, 2022
219de39
chore(deps): update pnpm/action-setup action to v2.2.0 (#142)
renovate[bot] Feb 24, 2022
e4d6430
feat: lambda for put-timetable (#144)
JasonNotJson Feb 25, 2022
ce8b00e
chore(deps): update actions/setup-node action to v3 (#148)
renovate[bot] Feb 25, 2022
fa36a02
chore(deps): update pnpm/action-setup action to v2.2.1 (#147)
renovate[bot] Feb 25, 2022
7c8d06a
chore(deps): update dependency constructs to v10.0.72 (#146)
renovate[bot] Feb 25, 2022
f858a4a
chore(deps): update typescript-eslint monorepo to v5.12.1 (#143)
renovate[bot] Feb 25, 2022
0b2200f
chore(deps): update aws-cdk monorepo to v2.14.0 (#133)
renovate[bot] Feb 25, 2022
2c3d9ad
chore(deps): update dependency constructs to v10.0.74 (#150)
renovate[bot] Feb 27, 2022
d2276f1
chore(deps): update dependency eslint to v8.10.0 (#149)
renovate[bot] Feb 27, 2022
064821a
chore(deps): update dependency typescript to v4.6.2 (#153)
renovate[bot] Mar 1, 2022
5fda850
chore(deps): update aws-cdk monorepo to v2.15.0 (#154)
renovate[bot] Mar 1, 2022
bb6ae80
chore(deps): update dependency constructs to v10.0.75 (#152)
renovate[bot] Mar 1, 2022
6cb318a
chore(deps): update dependency ts-node to v10.6.0 (#155)
renovate[bot] Mar 2, 2022
9bf92ac
chore(deps): update actions/checkout action to v3 (#156)
renovate[bot] Mar 2, 2022
8a1f057
chore(deps): update typescript-eslint monorepo to v5.13.0 (#151)
renovate[bot] Mar 2, 2022
46b062b
chore(deps): update dependency constructs to v10.0.76 (#157)
renovate[bot] Mar 2, 2022
303b891
chore(deps): update dependency constructs to v10.0.77 (#158)
renovate[bot] Mar 3, 2022
3164d59
chore(deps): update dependency constructs to v10.0.79 (#159)
renovate[bot] Mar 5, 2022
d5b8220
chore(deps): update typescript-eslint monorepo to v5.14.0 (#162)
renovate[bot] Mar 7, 2022
0c314e1
chore(deps): update dependency ts-node to v10.7.0 (#161)
renovate[bot] Mar 7, 2022
13d28e2
chore(deps): update dependency constructs to v10.0.81 (#160)
renovate[bot] Mar 7, 2022
ab7ed5a
chore(deps): update dependency constructs to v10.0.82 (#163)
renovate[bot] Mar 9, 2022
b18bb2d
chore(deps): update dependency constructs to v10.0.83 (#164)
renovate[bot] Mar 10, 2022
477a5db
chore(deps): update aws-cdk monorepo to v2.16.0 (#168)
renovate[bot] Mar 12, 2022
fc68529
chore(deps): update endbug/add-and-commit action to v9 (#167)
renovate[bot] Mar 12, 2022
b05ca2f
chore(deps): update dependency @commitlint/cli to v16.2.3 (#170)
renovate[bot] Mar 17, 2022
5ebd9a5
chore(deps): update typescript-eslint monorepo to v5.15.0 (#169)
renovate[bot] Mar 17, 2022
a10558e
chore(deps): update dependency constructs to v10.0.90 (#165)
renovate[bot] Mar 17, 2022
50448e9
chore(deps): update peter-evans/find-comment action to v2 (#175)
renovate[bot] Mar 22, 2022
4298aae
chore(deps): update peter-evans/create-or-update-comment action to v2…
renovate[bot] Mar 22, 2022
f6f4f5a
chore(deps): update aws-cdk monorepo to v2.17.0 (#171)
renovate[bot] Mar 22, 2022
d23acff
chore(deps): update dependency constructs to v10.0.92 (#172)
renovate[bot] Mar 23, 2022
26c1df8
chore(deps): update typescript-eslint monorepo to v5.16.0 (#173)
renovate[bot] Mar 23, 2022
966d40c
chore(deps): update dependency eslint-import-resolver-typescript to v…
renovate[bot] Mar 25, 2022
5ff8ca8
chore(deps): update aws-cdk monorepo to v2.19.0 (#183)
renovate[bot] Apr 1, 2022
2b463ee
chore(deps): update typescript-eslint monorepo to v5.17.0 (#182)
renovate[bot] Apr 2, 2022
bb3e6d6
feat: api for put-timetable lambda. (#179)
JasonNotJson Apr 8, 2022
50209ea
chore(deps): update dependencies
AustinZhu Apr 18, 2022
1337679
chore: add lint-staged
AustinZhu Apr 18, 2022
7d42059
chore(deps): update codecov/codecov-action action to v3 (#186)
renovate[bot] Apr 18, 2022
3fb4631
chore(deps): update amannn/action-semantic-pull-request action to v4.…
renovate[bot] Apr 18, 2022
88dac93
chore(deps): update aws-cdk monorepo to v2.22.0
renovate-bot Apr 28, 2022
65896f5
chore(deps): update github/codeql-action action to v2 (#192)
renovate[bot] Apr 29, 2022
80c4c6a
chore(deps): update amannn/action-semantic-pull-request action to v4.…
renovate[bot] Apr 29, 2022
2d7b18d
Merge remote-tracking branch 'origin/renovate/aws-cdk-monorepo' into …
AustinZhu Apr 29, 2022
bf82cba
chore(deps): update dependencies
AustinZhu Apr 29, 2022
9268119
chore(deps): update amannn/action-semantic-pull-request action to v4.5.0
renovate-bot May 4, 2022
2e31b9b
chore(deps): update dependency husky to v8
renovate-bot May 9, 2022
9e39ed4
chore(deps): update dependency @commitlint/cli to v16.3.0
renovate-bot May 14, 2022
a43faa2
chore(deps): update dependency standard-version to v9.5.0
renovate-bot May 15, 2022
84cb7da
chore(deps): update aws-cdk monorepo to v2.27.0
renovate-bot Jun 3, 2022
7965950
chore(deps): update dependency ts-jest to v28.0.4
renovate-bot Jun 3, 2022
0bc1c1a
chore(deps): update dependency eslint to v8.17.0
renovate-bot Jun 3, 2022
dafc809
chore(deps): update dependency ts-node to v10.8.1
renovate-bot Jun 4, 2022
f1ddd07
chore(deps): update typescript-eslint monorepo to v5.27.1
renovate-bot Jun 6, 2022
2cd784e
chore(deps): update jest monorepo
renovate-bot Jun 7, 2022
e2f59a1
chore(deps): update dependency constructs to v10.1.32
renovate-bot Jun 8, 2022
6815896
Merge remote-tracking branch 'origin/renovate/aws-cdk-monorepo' into …
AustinZhu Jun 8, 2022
2dcf357
Merge remote-tracking branch 'origin/renovate/commitlint-monorepo' in…
AustinZhu Jun 8, 2022
26e8c35
Merge remote-tracking branch 'origin/renovate/constructs-10.x' into d…
AustinZhu Jun 8, 2022
99a83c1
Merge remote-tracking branch 'origin/renovate/eslint-8.x' into develop
AustinZhu Jun 8, 2022
d6ca17a
Merge remote-tracking branch 'origin/renovate/husky-8.x' into develop
AustinZhu Jun 8, 2022
9b170ed
Merge remote-tracking branch 'origin/renovate/jest-monorepo' into dev…
AustinZhu Jun 8, 2022
9c3d691
Merge remote-tracking branch 'origin/renovate/standard-version-9.x' i…
AustinZhu Jun 8, 2022
9e57633
Merge remote-tracking branch 'origin/renovate/ts-jest-28.x' into develop
AustinZhu Jun 8, 2022
06c7ebe
Merge remote-tracking branch 'origin/renovate/ts-node-10.x' into develop
AustinZhu Jun 8, 2022
804f259
Merge remote-tracking branch 'origin/renovate/typescript-eslint-monor…
AustinZhu Jun 8, 2022
b7638f9
chore(deps): update dependencies
AustinZhu Jun 8, 2022
a791264
chore(deps): update pnpm/action-setup action to v2.2.2
renovate-bot Jun 8, 2022
6d90f99
chore(deps): update dependency typescript to v4.7.3
renovate-bot Jun 8, 2022
cccbc2e
chore(deps): update dependencies
AustinZhu Jun 8, 2022
8468ea0
f:added Put method into default Headers for new api function put-time…
JasonNotJson Nov 1, 2022
424f71f
feat: updated pnpm-lock file to latest
JasonNotJson Nov 5, 2022
36d17fb
feat: uploading updated package file
JasonNotJson Nov 5, 2022
6984ba5
feat: updating package-lock file
JasonNotJson Nov 5, 2022
519ae39
fix: modified jest config file
JasonNotJson Nov 5, 2022
5bdd0e7
fix: update jest config
JasonNotJson Nov 10, 2022
fb24be9
fix: configured rest api settings (#221)
JasonNotJson Nov 11, 2022
e0b6119
feat: creating only database and not API (#225)
JasonNotJson Dec 29, 2022
3b80a83
fix: fix git branch merging error (#226)
JasonNotJson Dec 29, 2022
4ea28bc
fix: hotfix
JasonNotJson Dec 29, 2022
d7dde4e
fix: fixing db
JasonNotJson Dec 30, 2022
ea906af
fix(deps): update dependency flatted to v3.2.7 (#215)
renovate[bot] Dec 30, 2022
ce141df
chore(deps): update jest monorepo (#210)
renovate[bot] Dec 30, 2022
d7e82e0
chore(deps): update dependency husky to v8.0.2 (#227)
renovate[bot] Dec 30, 2022
6620d99
feat: renamed forum database and fixed multiple api (#230)
JasonNotJson Dec 30, 2022
293cc06
fix: changed already existing db role name (#231)
JasonNotJson Dec 30, 2022
7ba8d25
feat: editing forum restapi resources and added multiple CRUD lambda …
JasonNotJson Dec 31, 2022
e54214d
chore(deps): update dependency constructs to v10.1.205 (#206)
renovate[bot] Dec 31, 2022
3352a2c
chore(deps): update dependency ts-jest to v28.0.8 (#208)
renovate[bot] Dec 31, 2022
e64d51d
chore(deps): update dependency ts-node to v10.9.1 (#234)
renovate[bot] Jan 1, 2023
8374467
chore(deps): update dependency constructs to v10.1.206 (#235)
renovate[bot] Jan 1, 2023
3ca8369
chore(deps): update dependency esbuild to ^0.16.0 (#233)
renovate[bot] Jan 1, 2023
aa9e01e
chore(deps): update dependency eslint-import-resolver-typescript to v…
renovate[bot] Jan 1, 2023
0f08fae
chore(deps): update commitlint monorepo to v17.3.0 (#213)
renovate[bot] Jan 1, 2023
f6986dd
chore(deps): update jest monorepo to v29 (#239)
renovate[bot] Jan 2, 2023
e7c0e71
feat: adding forum comment features (#240)
JasonNotJson Jan 2, 2023
df66aa8
fix: issue with post forum thread fixing issue (#242)
JasonNotJson Jan 2, 2023
299388a
fix: mistaken sortkey type
JasonNotJson Jan 2, 2023
ecc3ecc
Merge branch 'develop' of https://github.com/wasedatime/wasedatime-ba…
JasonNotJson Jan 2, 2023
288f111
fix: trying to solve a problem
JasonNotJson Jan 2, 2023
c276fa1
fix: changing db (#243)
JasonNotJson Jan 2, 2023
613d09b
fix: solving database issue
JasonNotJson Jan 2, 2023
e387941
fix: still fixing issues
JasonNotJson Jan 2, 2023
43f557d
fix: reverting error (#244)
JasonNotJson Jan 2, 2023
7b476fe
fix: deleting lambda (#245)
JasonNotJson Jan 2, 2023
e5ff0dd
feat: reverting
JasonNotJson Jan 2, 2023
56c9839
feat: idontknowwhatshappeningnow
JasonNotJson Jan 2, 2023
c9b3a53
feat: bringing back lambdas
JasonNotJson Jan 2, 2023
18e89f0
feat: fixing mistakes
JasonNotJson Jan 2, 2023
1e0b50b
feat: retrieving db and api
JasonNotJson Jan 2, 2023
e1e95da
chore(deps): update dependency constructs to v10.1.210 (#241)
renovate[bot] Jan 5, 2023
3b537af
fix: fixing cross stack referencing (#247)
JasonNotJson Mar 12, 2023
b4fb97f
chore(deps): update dependency husky to v8.0.3 (#246)
renovate[bot] Mar 16, 2023
c85d8e1
fix: updating dependencies and syllabus structure (#249)
JasonNotJson Mar 16, 2023
6432dec
chore(deps): update dependency constructs to v10.1.279 (#250)
renovate[bot] Mar 16, 2023
05740ac
fix: establishing table (#252)
JasonNotJson Mar 16, 2023
89d85c3
fix: minor changes (#253)
JasonNotJson Mar 16, 2023
0abcc54
fix: renaming table (#254)
JasonNotJson Mar 16, 2023
86c7867
fix: exporting table arn (#255)
JasonNotJson Mar 17, 2023
cb03e80
fix: resolving already existing identifier (#256)
JasonNotJson Mar 17, 2023
537bb5a
fix: rereferencing export (#258)
JasonNotJson Mar 17, 2023
7f35f8e
fix: adding lsi to table exporting arn with tablename (#259)
JasonNotJson Mar 17, 2023
9179913
fix: deleting thread table (#260)
JasonNotJson Mar 17, 2023
a79f43b
fix: recreating thread table with proper lsi (#261)
JasonNotJson Mar 17, 2023
d313c39
fix: recreating lambdas for forum threads (#262)
JasonNotJson Mar 17, 2023
377606a
chore(deps): update typescript-eslint monorepo to v5.55.0 (#207)
renovate[bot] Mar 17, 2023
78ea784
chore(deps): update dependency @types/node to v18 (#237)
renovate[bot] Mar 17, 2023
e5c784e
chore(deps): update aws-cdk monorepo (#209)
renovate[bot] Mar 17, 2023
440eee9
fix: api service added (#266)
JasonNotJson Mar 17, 2023
52b9009
chore(deps): update dependency typescript to v4.9.5 (#211)
renovate[bot] Mar 17, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/actions/install-deps/action.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: 'Install Dependencies'
description: 'Workflow for installing dependencies'
name: "Install Dependencies"
description: "Workflow for installing dependencies"
runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v2.0.1
- uses: pnpm/action-setup@v2.2.2
with:
version: latest
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'
cache: "pnpm"
- name: Setup CDK
shell: bash
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -67,7 +67,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -81,4 +81,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Setup AWS
uses: Fooji/create-aws-profile-action@v2
Expand All @@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ deploy ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: wasedatime/wasedatime.github.io
token: ${{ env.GITHUB_OAUTH_TOKEN }}
Expand All @@ -69,7 +69,7 @@ jobs:
aws apigateway get-export --rest-api-id 'anvonkl0fd' --stage-name 'dev' --export-type 'swagger' --accepts 'application/yaml' ./dev.yml
aws apigateway get-export --rest-api-id 'anvonkl0fd' --stage-name 'prod' --export-type 'swagger' --accepts 'application/yaml' ./prod.yml
- name: Push
uses: EndBug/add-and-commit@v7
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: [email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
permissions:
pull-requests: write
steps:
- uses: amannn/action-semantic-pull-request@v4.1.0
- uses: amannn/action-semantic-pull-request@v4.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Lint
run: pnpm run lint
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Synth
run: cdk synth
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ synth ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Test
run: pnpm test
Expand All @@ -62,7 +62,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Diff
id: diff
Expand All @@ -74,15 +74,15 @@ jobs:
LOG="${LOG//$'\r'/'%0D'}"
echo "::set-output name=log::$LOG"
- name: Find Comment
uses: peter-evans/find-comment@v1
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: "### Diff Output:"
- name: Comment
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Expand All @@ -93,7 +93,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update Comment
if: steps.fc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v1
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
edit-mode: replace
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Lint
run: pnpm run lint
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Build
run: pnpm run build
Expand All @@ -51,9 +51,9 @@ jobs:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: ./.github/actions/install-deps
- name: Test
run: pnpm test -- --coverage
- name: Test Coverage
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,3 @@ node_modules
# CDK asset staging directory
.cdk.staging
cdk.out

# husky
.husky/_/
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ if [ ! -z "$js_diff" ]; then
else
echo "Seems you haven't changed any JavaScript, skip checks. "
fi

npx lint-staged
3 changes: 2 additions & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Config } from '@jest/types';
import { Config } from '@jest/types';

const config: Config.InitialOptions = {
testEnvironment: 'node',
Expand All @@ -7,6 +7,7 @@ const config: Config.InitialOptions = {
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
moduleDirectories: ['<rootDir>/node_modules'],
};

export default config;
2 changes: 1 addition & 1 deletion lib/configs/api-gateway/cors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ export const allowHeaders = [

export const defaultHeaders = {
'Access-Control-Allow-Headers': '\'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token\'',
'Access-Control-Allow-Methods': '\'GET,POST,OPTIONS\'',
'Access-Control-Allow-Methods': '\'GET,POST,PUT,OPTIONS\'',
'Access-Control-Allow-Origin': '\'*\'',
};
Loading