Commit Graph

477 Commits

Author SHA1 Message Date
Shaun Hamilton
c7a8b183d3
fix(api): 400 for exam-challenge route with no params (#62404) 2025-09-29 18:56:29 +05:30
Shaun Hamilton
35d05d2c05
feat(client): add exam attempts to exam-download page (#61361)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2025-09-25 21:27:31 +02:00
Oliver Eyton-Williams
51eba06a7d
refactor: remove jest and lint vitest (#62330) 2025-09-24 09:27:03 +02:00
Sonu
093f99d5e4
fix(api): cleanup props from get public profile endpoint (#62007) 2025-09-23 08:58:22 -07:00
Tom
e6066a1d50
feat(api): daily challenge by month endpoint (#61400) 2025-09-23 14:49:37 +02:00
Oliver Eyton-Williams
bed3811952
feat(api): migrate to esm (#61915) 2025-09-19 13:28:06 +05:30
Shaun Hamilton
92d6901c2f
feat(api): add exam->challenge map and routes (#61683)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-09-18 15:32:44 +02:00
Oliver Eyton-Williams
91e4c05b9f
fix(api): handle termination signals (#61171) 2025-09-16 20:07:09 +05:30
Ahmad Abdolsaheb
09dc696c29
feat: add email sign up alert (#61218)
Co-authored-by: Niraj Nandish <nirajnandish@icloud.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-09-11 10:14:00 +02:00
Shaun Hamilton
ebd17c473b
fix(api): throw during exam generation if empty config (#62044) 2025-09-04 10:49:07 +00:00
Oliver Eyton-Williams
8cd2efe570
feat: base64 encode file contents when making api requests (#62006)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-09-02 16:20:48 +02:00
Oliver Eyton-Williams
d781102513
feat(api): add more debug logging (#61980) 2025-08-29 03:55:16 -07:00
Mrugesh Mohapatra
0c1498a84d
fix(environment): Use DEPLOYMENT_ENV and DEPLOYMENT_TLD (#61925)
Some checks failed
CI - E2E - 3rd party donation tests / Build Client (22) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Build API (Container) (push) Has been cancelled
CI - Node.js / Lint (22) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Run Playwright 3rd Party Donation Tests (chromium, 22) (push) Has been cancelled
CI - Node.js / Build (22) (push) Has been cancelled
CI - Node.js / Test (22) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (22) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 22) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 22) (push) Has been cancelled
2025-08-27 22:47:21 +05:30
Mrugesh Mohapatra
45c098d506
feat(api): s/jest/vitest/g (#61863)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2025-08-25 22:57:56 +05:30
Shaun Hamilton
3d78a31bc6
fix(api): DEPLOYMENT_ENV not same as client (#61893)
Some checks failed
i18n - Build Validation / Validate i18n Builds (22) (push) Has been cancelled
CI - Node.js / Lint (22) (push) Has been cancelled
CI - Node.js / Build (22) (push) Has been cancelled
CI - Node.js / Test (22) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (22) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 22) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 22) (push) Has been cancelled
i18n - Upload Client UI / Client (push) Has been cancelled
i18n - Upload Curriculum / Learn (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, dev) (push) Has been cancelled
CD - Docker - DOCR Cleanup Container Images / Delete Old Images (learn-api, org) (push) Has been cancelled
2025-08-21 06:58:05 +05:30
Shaun Hamilton
a33bc0b4b5
chore(api): rename ExamEnvironmentTempExam -> ExamCreatorExam (#61868) 2025-08-19 12:46:02 +02:00
Shaun Hamilton
db9b7d2358
chore(api): prevent non-staff exam authz token gen on staging (#61786)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
2025-08-13 21:03:14 +05:30
Shaun Hamilton
6adc98a426
feat(api): add version to exam collections (#61644)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-08-12 02:39:07 -07:00
Shaun Hamilton
8405f24a40
chore(api): add collections related to exam creator (#61773) 2025-08-12 08:36:39 +02:00
Shaun Hamilton
143565ce63
feat(api): add attempt id and exam id to response (#61637) 2025-08-04 11:12:46 -05:00
Shaun Hamilton
76c9fa9d48
feat(api): add attempts routes to user (#61362)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2025-07-31 14:54:29 +00:00
Oliver Eyton-Williams
55fbe40152
fix(api): more informative auth errors (#61607) 2025-07-31 09:13:39 -05:00
Shaun Hamilton
500342b24f
fix(api): shuffle generated exam answers each time (#61352)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2025-07-31 15:50:59 +02:00
Oliver Eyton-Williams
4448bcbd92
Revert "fix(api): use lowercase email address (#61490)" (#61608) 2025-07-30 20:39:36 +05:30
Shaun Hamilton
ad7b0748d9
fix(api): return usernameDisplay (#61567)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-07-29 08:04:31 -07:00
Shaun Hamilton
f662b64a37
fix(api): use lowercase email address (#61490)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-07-29 09:46:50 +02:00
Shaun Hamilton
10c8733641
fix(api): check attempts and moderations records for available exams (#61302)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2025-07-28 12:05:28 +02:00
Shaun Hamilton
d88691bc8a
breaking(api): remove screenshot api (#61300)
Some checks failed
CI - E2E - 3rd party donation tests / Build Client (22) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Build API (Container) (push) Has been cancelled
CI - Node.js / Lint (22) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Run Playwright 3rd Party Donation Tests (chromium, 22) (push) Has been cancelled
CI - Node.js / Build (22) (push) Has been cancelled
CI - Node.js / Test (22) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (22) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 22) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 22) (push) Has been cancelled
2025-07-22 08:28:13 -07:00
Tom
29cd2d227d
feat(api): daily challenge api (#61346)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
2025-07-17 02:34:46 -07:00
Shaun Hamilton
92b6ca5343
feat(api): add exam env attempts endpoints and fields (#59634)
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2025-07-16 11:35:12 -05:00
Tom
5ae2e3eca7
chore(deps,api): update date-fns and add date-fns-tz (#61048) 2025-06-25 18:49:04 +02:00
Mrugesh Mohapatra
6848da8320
Merge commit from fork
httpOnly (invisible to JS) and secure (https only) are now used. In
order to update existing users without requiring them to
re-authenticate, each request sets those properties on the cookie.

Finally, the maxAge is now 30 days and is also updated on each request.
i.e. it's a rolling 30 days.

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-06-25 19:43:44 +05:30
Oliver Eyton-Williams
87c274a9ef
feat(api): allow HOME_LOCATION origin in development (#61003) 2025-06-25 12:00:24 +05:30
Oliver Eyton-Williams
722131407b
fix(api): duplicate reply on error in /daily-coding-challenge-completed (#60999) 2025-06-23 08:15:26 -05:00
Clarence Bakosi
ec764ef7cb
chore(curriculum): change to US spelling (#60852) 2025-06-17 09:32:03 -07:00
Mrugesh Mohapatra
44e734398f
fix(env): remove unused keys (#60878) 2025-06-15 19:16:30 +05:30
Oliver Eyton-Williams
a9dc3bdeef
chore(api): add user's id to errors sent to Sentry (#60725) 2025-06-09 22:21:02 +02:00
Oliver Eyton-Williams
89402caa9d
chore(api): migrate to fastify v5 (#57576) 2025-06-02 08:07:57 +05:30
Oliver Eyton-Williams
85bda9c63d
fix: handle when userinfo has no email address (#60557) 2025-05-30 22:32:55 +05:30
Oliver Eyton-Williams
22724d5dda
test: inform devs when db connection not established (#60539) 2025-05-28 10:52:11 -05:00
Oliver Eyton-Williams
3cde3e17d6
refactor: remove unused format rules from response schema (#60538) 2025-05-27 09:16:32 -07:00
Oliver Eyton-Williams
50c0194ee4
test(api): stop reporting request logs during testing (#60546) 2025-05-27 21:35:25 +05:30
Mrugesh Mohapatra
16e461385e
chore(api-server): bye-bye you served us well (#60520)
Some checks failed
CI - E2E - 3rd party donation tests / Build Client (20) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Build API (Container) (push) Has been cancelled
CI - Node.js / Lint (20) (push) Has been cancelled
CI - E2E - 3rd party donation tests / Run Playwright 3rd Party Donation Tests (chromium, 20) (push) Has been cancelled
CI - Node.js / Build (20) (push) Has been cancelled
CI - Node.js / Test (20) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (20) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 20) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 20) (push) Has been cancelled
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2025-05-27 09:56:46 +05:30
Shaun Hamilton
a90e2757ac
chore(api): add exam-env test script (#60445) 2025-05-27 09:53:51 +05:30
Oliver Eyton-Williams
0b1db2b9c6
fix(api): handle expected Auth0 errors (#60499) 2025-05-27 09:51:03 +05:30
Oliver Eyton-Williams
8138f086aa
fix(api): handle string challengeType (#60491)
Some checks failed
i18n - Build Validation / Validate i18n Builds (20) (push) Has been cancelled
CI - Node.js / Lint (20) (push) Has been cancelled
DOCR - Cleanup Container Images / Delete Old Images (learn-api, dev) (push) Has been cancelled
DOCR - Cleanup Container Images / Delete Old Images (learn-api, org) (push) Has been cancelled
CI - Node.js / Build (20) (push) Has been cancelled
CI - Node.js / Test (20) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (20) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 20) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 20) (push) Has been cancelled
i18n - Download Client UI / Client (push) Has been cancelled
2025-05-23 18:26:18 +05:30
Oliver Eyton-Williams
848ae3aacf
fix(api): handle users without email addresses (#60467) 2025-05-22 11:28:56 +02:00
Oliver Eyton-Williams
8f6a8d0401
fix(api): handle null picture (#60468) 2025-05-21 09:50:29 -07:00
Shaun Hamilton
5e836cbdb4
dev(api): track sentry releases (#60444) 2025-05-21 17:28:03 +05:30
Oliver Eyton-Williams
7003362fef
fix(api): handle concurrent deletion requests (#60430)
Some checks failed
CI - E2E - 3rd party donation tests / Build & Test (20) (push) Has been cancelled
CI - Node.js / Lint (20) (push) Has been cancelled
CI - Node.js / Build (20) (push) Has been cancelled
CI - Node.js / Test (20) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (20) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 20) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 20) (push) Has been cancelled
2025-05-19 19:55:22 +05:30