Commit Graph

164 Commits (main)

Author SHA1 Message Date
Lars Kappert d32e57813e
chore: update Knip to v5 (#56244) 2024-09-26 13:12:00 +02:00
Shaun Hamilton 552583df8a
feat(api-server): use unified topology (#55828) 2024-08-13 09:07:28 +02:00
Mrugesh Mohapatra daede0a8ff
chore: uninstall cross-env (#55224) 2024-06-20 11:26:10 +05:30
Mrugesh Mohapatra dabea4a904
chore: bump pnpm version 2024-05-18 17:23:23 +05:30
Ahmad Abdolsaheb 20b6b83e99
feat: remove paypal webhook listener (#54395) 2024-04-29 07:49:21 +02:00
Oliver Eyton-Williams ade2092e1f
feat: create Docker images for api-server (#51142) 2023-09-13 14:13:17 +05:30
Rene Pot df49297de2
feat(api): improve performance with profanity filter replacement (#51112)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
2023-08-08 15:27:41 -07:00
Tom 80dba8fd30
feat(api): create endpoints for exams (#51062)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-08-03 09:34:47 -05:00
Oliver Eyton-Williams e46386ddca
chore: remove old babel-core + plugins (#50671) 2023-06-14 13:14:46 +02:00
Mrugesh Mohapatra e5590e56d7
chore: use pnpm v8 for deps (#49892)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-29 20:18:49 +05:30
Oliver Eyton-Williams 0cd3f7671a
chore(deps): add missing dependencies (#49703)
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
2023-03-14 17:25:15 +05:30
Oliver Eyton-Williams d7848ae01a
feat: migrate to pnpm for better workspace DX (#49293)
* feat: npm -> pnpm 

This resolves the issues with the gatsby client (gatsby-plugin-pnpm
deals with the fact that gatsby is relying on its own dependencies
being de-duped)
and challenge-editor (which doesn't seem to want to automatically install
codemirror and needed its own eslint config)

* fix: correct mocha path for curriculum tests

* fix: use select workspace with -F not -w

* fix: reorganise packages and restrict hoisting

pnpm works best if the workspaces keep their own dependencies, since
dependencies are not flattened and then what node resolves from a
require is predictable.

@types seem to be a special case and more care is required to prevent
them getting smushed together in the root (hence the .npmrc)

* fix: add types for tools + root

* fix: decouple challenge-auditor from client

* fix: add ui-components types

* fix(client): use the latest types for react 16

* fix: prettify

* fix: prettierignore pnpm-lock

* fix: relax hoisting

Turns out pnpm works just fine with types. I don't know what was going
wrong before, but there are no-longer any type conflicts.

* fix: add @redux-saga/core to fix eslint issue

It seems to only be redux-saga that import/named can't cope with, so it
is probably okay to work around this one.

* chore: add chai to tools/scripts/build

* fix: add store to root for cypress

* fix: allow cypress to download binaries

If we want to keep preventing cypress from downloading binaries, we can
figure out a workaround, but I'm allowing it to ease the transition to
pnpm.

My guess about why this is happening is that npm triggers Cypress's
postinstall script, but pnpm does not (because pnpm install only
installs if necessary, perferring to link)

* chore: re-enable pre/post scripts

* fix: update build scripts for client

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>

* chore: update engines to use pnpm


* fix: enable choice of (super)block for tests

Only 'nix machines for now.

* chore: pin pnpm to version 7

* chore: remove last npms

Except web + curriculum-server. I'll update them when I start work on
them again.

* fix: lockfile check to catch any package-locks

* fix(action): install pnpm for upcoming tests

* chore: add nodemon to new api

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
2023-03-02 18:17:44 +00:00
Mrugesh Mohapatra 537ef39a8d
feat(tools): sentry apm and other telemetry (#49385)
* feat(tools): sentry apm and other telemetry

* fix: use middleware json to remove duplication

---------

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-02-17 18:23:18 +05:30
Mrugesh Mohapatra 96a821a2ac
revert(tools): sentry apm and other telemetry (#49383)
Revert "feat(tools): sentry apm and other telemetry (#49230)"

This reverts commit b4fa56be3e.
2023-02-14 20:20:01 +05:30
Mrugesh Mohapatra b4fa56be3e
feat(tools): sentry apm and other telemetry (#49230) 2023-02-13 14:32:49 +00:00
Mrugesh Mohapatra 9b6042e44d
feat: enable mobile auth endpoints (#49298
Reverts #49212
2023-02-09 14:01:13 +05:30
Mrugesh Mohapatra c3103bae3d
revert: mobile auth for unblocking deployments (#49212) 2023-01-31 22:06:17 +05:30
Niraj Nandish 96fc70db1d
feat: mobile auth (#48591)
Co-authored-by: sembauke <semboot699@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-01-27 13:35:48 +05:30
Shaun Hamilton 326e00fab8
fix(server): default to log `fcc` namespaces, unless env set (#48143) 2022-10-21 22:53:04 +05:30
Mrugesh Mohapatra 85131d7d7b
chore(api): update dependencies & apply audit (#46127) 2022-05-24 11:31:23 +05:30
Mrugesh Mohapatra 46cf96fbe1
chore(api): pin and update dependencies (#45282) 2022-02-28 21:59:15 +05:30
Oliver Eyton-Williams d501817207
chore(api): remove d3 (#45248) 2022-02-25 10:36:36 +01:00
Sem Bauke 9d7457557a
fix(api-server): npm run build on windows (#45120) 2022-02-15 13:09:26 +00:00
Oliver Eyton-Williams 7f027958af
chore: migrate to nanoid 3 (#44893) 2022-01-25 11:09:41 +05:30
Mrugesh Mohapatra 6fef483946 chore: update all packages to node v16 & npm v8 2021-11-03 15:06:19 +05:30
Micah Silverman 2b5c1ed712
chore(deps): updated versions to address vulnerabilities (#44075) 2021-11-02 15:55:05 +05:30
Mrugesh Mohapatra 0a3ce84e5a chore(api): update non-semver axios 2021-10-25 22:49:46 +05:30
Mrugesh Mohapatra 9780533fa4 chore(api,deps): housekeeping for patch updates 2021-10-25 22:49:46 +05:30
Ahmad Abdolsaheb b623c340a9
feat(client): add google pay (#43117)
* feat: initial button setup client

* feat: rename walletsButton to .tsx

* chore: typescriptize wallet component

* chore: re-add keys to config, env, etc + check in gatsby-node

* feat: refactor donate form and wallet component

* feat(client): set labels correctly

* chore: add stripe package back to server

* chore: add stripe back to allowed paths

* chore: copy donate.js code from PR #41924

* feat: attempt to make back end work

* feat: make redux work

* feat: clean up

* feat: hokify

* feat: add error handling

* fix: back-end should be working

* fix: type errors

* fix: clean up back-end

* feat:addd styles

* feat: connect the client to the api

* feat: display wallets button everywhere

* test: add stripe key for cypress action

* test: fix for cypress tests

* test: cypress tests again

* test: maybe?

* test: more

* test: more

* test: more

* test

* askdfjasklfj

* fix: tests finally?

* revert: remove space from cypress yaml action

* remove logs

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-08-08 23:22:25 +03:00
Mrugesh Mohapatra 9015ad3151 chore(api): update deps - major - @sentry/node 2021-06-28 19:00:55 +05:30
Mrugesh Mohapatra faa9996681 chore(api): update deps - minor 2021-06-28 19:00:55 +05:30
Mrugesh Mohapatra ba3a3f60e1 chore(api): update deps - patch 2021-06-28 19:00:55 +05:30
Mrugesh Mohapatra 6d8baddec0
chore: update api deps, apply npm audit fix (#42179)
* chore(api): bump minor and patch

* chore: apply npm audit fix across deps
2021-05-18 22:39:26 +05:30
Oliver Eyton-Williams 1c1d86922c
refactor: simplify jest config (#42136)
* refactor: bring api jest tests to root

* refactor: pull client tests to root

* fix: remove ancient curriculum babelrc

* feat: run all jest tests at once

* fix: remove unused babelrcRoot

* chore: remove more jests
2021-05-16 18:08:04 +05:30
Ahmad Abdolsaheb 27c8d564e4
fix(client): replace Stripe with PayPal (#41924)
* feat: remove stripe payment option from client

* feat: remove stripe completely

* fix: remove last Stripe remnants

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-03 11:45:23 +03:00
Oliver Eyton-Williams 300ff756ce
fix(api): stop ignored files (tests) being copied (#41926) 2021-04-27 10:40:01 -07:00
Mrugesh Mohapatra 87666a738d
chore: bump patch updates to api-server (#41833) 2021-04-16 11:50:04 +02:00
Mrugesh Mohapatra 42365dd172
fix: update package files, lerna config (#41599)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-03-27 07:46:20 -07:00
Mrugesh Mohapatra 0a53a1d7f0 chore(deps): upgrade lerna to v4 2021-03-11 12:19:42 +05:30
dependabot[bot] 94df0c1d85 Bump @babel/preset-env from 7.13.8 to 7.13.9 in /api-server
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.13.8 to 7.13.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.9/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-07 05:42:57 +00:00
Mrugesh Mohapatra cd40d47363
chore(api): remove unused code and endpoints (#41332) 2021-03-05 02:30:11 +05:30
dependabot[bot] 2e752551dc chore(deps-dev): bump @babel/plugin-proposal-class-properties
Bumps [@babel/plugin-proposal-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-class-properties) from 7.12.13 to 7.13.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.0/packages/babel-plugin-proposal-class-properties)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 06:59:42 +00:00
dependabot[bot] 1fc770f196 chore(deps-dev): bump @babel/node from 7.12.17 to 7.13.0 in /api-server
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.12.17 to 7.13.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.0/packages/babel-node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 06:39:33 +00:00
dependabot[bot] 385683ba09 chore(deps-dev): bump @babel/core from 7.12.17 to 7.13.8 in /api-server
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.17 to 7.13.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.8/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 06:18:50 +00:00
dependabot[bot] 31d02ea2f0 chore(deps-dev): bump @babel/register in /api-server
Bumps [@babel/register](https://github.com/babel/babel/tree/HEAD/packages/babel-register) from 7.12.13 to 7.13.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.8/packages/babel-register)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 06:18:20 +00:00
dependabot[bot] 8b3a711f1d chore(deps-dev): bump @babel/plugin-proposal-object-rest-spread
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread) from 7.12.13 to 7.13.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.8/packages/babel-plugin-proposal-object-rest-spread)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 06:00:30 +00:00
dependabot[bot] b3fe97408a chore(deps-dev): bump @babel/preset-env in /api-server
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.12.17 to 7.13.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.8/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 05:59:56 +00:00
dependabot[bot] 9cd97962a3 chore(deps): bump express-validator from 6.9.2 to 6.10.0 in /api-server
Bumps [express-validator](https://github.com/express-validator/express-validator) from 6.9.2 to 6.10.0.
- [Release notes](https://github.com/express-validator/express-validator/releases)
- [Commits](https://github.com/express-validator/express-validator/compare/v6.9.2...v6.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 05:28:10 +00:00
dependabot[bot] 40a1bc767f chore(deps-dev): bump @babel/cli from 7.12.17 to 7.13.0 in /api-server
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.17 to 7.13.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.0/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 05:25:13 +00:00
dependabot[bot] 0e1306eccf chore(deps-dev): bump @babel/plugin-proposal-optional-chaining
Bumps [@babel/plugin-proposal-optional-chaining](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-optional-chaining) from 7.12.17 to 7.13.8.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.13.8/packages/babel-plugin-proposal-optional-chaining)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-28 05:20:28 +00:00