-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add tag, translation, coursetag * added crud to tags and translations * add some tag tests; reshuffling some test stuff * add tag types; tag resolver logic; create validate plugin * some tag tests; some cleaning up * snapshot fixing, jest utilities * update eslint * revert to downloading codecov uploader * add missing prettier plugin to backend; nexus schema needs it * add missing prettier plugin to backend; nexus schema needs it * try moving import order plugin from dev deps to see if it helps * remove import sort plugin from backend dev * don't explicitly require the import sort plugin, should find if it is there * link prettierrc to backend * disable schema prettier for now
- Loading branch information
Showing
141 changed files
with
11,899 additions
and
5,640 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
version: 2.1 | ||
orbs: | ||
helm: circleci/helm@1.1.2 | ||
helm: circleci/helm@2.0.1 | ||
docker: circleci/[email protected] | ||
jq: circleci/[email protected] | ||
node: circleci/[email protected] | ||
node: circleci/[email protected] | ||
# codecov: codecov/[email protected] | ||
executors: | ||
backend_test: | ||
docker: | ||
|
@@ -132,10 +133,10 @@ jobs: | |
command: | | ||
curl https://uploader.codecov.io/latest/linux/codecov -o /tmp/codecov | ||
chmod +x /tmp/codecov | ||
/tmp/codecov -F backend | ||
#- run: | ||
# name: "Upload coverage" | ||
# command: bash <(curl -s https://codecov.io/bash) | ||
/tmp/codecov -F backend -n "${CIRCLE_BUILD_NUM}" | ||
### when codecov orb is enabled | ||
# - codecov/upload: | ||
# flags: backend | ||
# The resource_class feature allows configuring CPU and RAM resources for each job. Different resource classes are available for different executors. https://circleci.com/docs/2.0/configuration-reference/#resourceclass | ||
resource_class: large | ||
# could combine the artifacts in this step if needed, now the codecov/junit stuff combines automatically | ||
|
@@ -255,7 +256,6 @@ jobs: | |
resource_class: large | ||
|
||
workflows: | ||
version: 2 | ||
build-deploy: | ||
jobs: | ||
- code_style | ||
|
@@ -291,4 +291,4 @@ workflows: | |
branches: | ||
only: | ||
- master | ||
- staging | ||
- staging |
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 @@ | ||
../.prettierrc.js |
50 changes: 26 additions & 24 deletions
50
backend/api/routes/__test__/__snapshots__/completions.test.ts.snap
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,28 +1,30 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`API /api/register-completions creates registered completions 1`] = ` | ||
Array [ | ||
Object { | ||
"completion_id": "30000000-0000-0000-0000-000000000102", | ||
"course_id": "00000000-0000-0000-0000-000000000002", | ||
"created_at": Any<Date>, | ||
"id": Any<String>, | ||
"organization_id": "10000000-0000-0000-0000-000000000102", | ||
"real_student_number": "12345", | ||
"registration_date": null, | ||
"updated_at": Any<Date>, | ||
"user_id": "20000000-0000-0000-0000-000000000102", | ||
}, | ||
Object { | ||
"completion_id": "30000000-0000-0000-0000-000000000103", | ||
"course_id": "00000000-0000-0000-0000-000000000001", | ||
"created_at": Any<Date>, | ||
"id": Any<String>, | ||
"organization_id": "10000000-0000-0000-0000-000000000102", | ||
"real_student_number": "12345", | ||
"registration_date": null, | ||
"updated_at": Any<Date>, | ||
"user_id": "20000000-0000-0000-0000-000000000102", | ||
}, | ||
] | ||
{ | ||
"addedCompletions": [ | ||
{ | ||
"completion_id": "30000000-0000-0000-0000-000000000102", | ||
"course_id": "00000000-0000-0000-0000-000000000002", | ||
"created_at": Any<Date>, | ||
"id": StringMatching /\\[a-f\\\\d\\]\\{8\\}-\\[a-f\\\\d\\]\\{4\\}-\\[a-f\\\\d\\]\\{4\\}-\\[a-f\\\\d\\]\\{4\\}-\\[a-f\\\\d\\]\\{12\\}/i, | ||
"organization_id": "10000000-0000-0000-0000-000000000102", | ||
"real_student_number": "12345", | ||
"registration_date": null, | ||
"updated_at": Any<Date>, | ||
"user_id": "20000000-0000-0000-0000-000000000102", | ||
}, | ||
{ | ||
"completion_id": "30000000-0000-0000-0000-000000000103", | ||
"course_id": "00000000-0000-0000-0000-000000000001", | ||
"created_at": Any<Date>, | ||
"id": StringMatching /\\[a-f\\\\d\\]\\{8\\}-\\[a-f\\\\d\\]\\{4\\}-\\[a-f\\\\d\\]\\{4\\}-\\[a-f\\\\d\\]\\{4\\}-\\[a-f\\\\d\\]\\{12\\}/i, | ||
"organization_id": "10000000-0000-0000-0000-000000000102", | ||
"real_student_number": "12345", | ||
"registration_date": null, | ||
"updated_at": Any<Date>, | ||
"user_id": "20000000-0000-0000-0000-000000000102", | ||
}, | ||
], | ||
} | ||
`; |
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,10 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`API /api/temporary-stored-data get returns stored data from owned course 1`] = ` | ||
Array [ | ||
Object { | ||
"completions": Array [ | ||
Object { | ||
[ | ||
{ | ||
"completions": [ | ||
{ | ||
"certificate_id": null, | ||
"completion_date": "2000-01-01T08:00:00.000Z", | ||
"completion_language": null, | ||
|
@@ -22,14 +22,14 @@ Array [ | |
"user_upstream_id": 1, | ||
}, | ||
], | ||
"storedData": Object { | ||
"storedData": { | ||
"course_id": "00000000-0000-0000-0000-000000000001", | ||
"created_at": "1900-01-01T08:00:00.000Z", | ||
"data": "user1_foo", | ||
"updated_at": "1900-01-01T08:00:00.000Z", | ||
"user_id": "20000000-0000-0000-0000-000000000102", | ||
}, | ||
"user": Object { | ||
"user": { | ||
"administrator": false, | ||
"created_at": "1900-01-01T08:00:00.000Z", | ||
"email": "[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
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.