Commit Graph

510 Commits

Author SHA1 Message Date
Oliver Eyton-Williams
e118dda13a
fix: order imports and remove circular dependencies (#41824)
* fix: remove circular dependency

redux depended on templates/Challenges/redux and vice versa.  This
meant that import order mattered and confusing bugs could arise.

(cherry picked from commit 7d67a4e70922bbb3051f2f9982dcc69e240d43dc)

* feat: require imports to be in alphabetical order

Import order generally does not matter, but there are edge cases
(circular  imports and css imports, for example) where changing order
changes behaviour

(cherry picked from commit b8d1393a91ec6e068caf8e8498a5c95df68c2b2c)

* chore: order imports

* fix: lift up challenge description + title comps

This brings the classic Show closer to the others as they
now all create the description and title components

* fix: remove donation-saga/index circular import

(cherry picked from commit 51a44ca668a700786d2744feffeae4fdba5fd207)

* refactor: extract action-types from settings

(cherry picked from commit 25e26124d691c84a0d0827d41dafb761c686fadd)

* fix: lint errors

* feat: prevent useless renames
2021-08-02 08:39:40 -05:00
Oliver Eyton-Williams
1ba9d03cb5
feat: remove csrf from the client (#42242) 2021-07-16 10:49:47 -05:00
Shaun Hamilton
6ca6d9950c
feat(client): improve SuperBlock cert claiming UX (#41147)
* feat(client): improve SuperBlock cert claiming UX

* broken: add certCard foundation

* broken: add TODO comments for scatter-brain

* restructure stepsToClaimSelector

* add api-server verifyCanClaimCert logic

* temp: correct verifyCanClaim URL

* move GET logic to CertificationCard, remove console.logs

* add error handling, and navigation logic

* correct verification logical flow

* fix completion-epic updates, fix cert verify

* update widget to button, disable button unless verified

* working: refactor CertChallenge with hook state

* add StepsType

* update Honesty snapshot

* add DonationModal to SuperBlockIntro

* disable Claim Cert button unless also isHonest

* prevent warning when viewing cert

* test: use navigate in Modal to return to hash

* test: replace gatsby.navigate with reach/router.navigate

* add propTypes

* fix: rename propTypes -> prop-types

* use react-scrollable-anchor to squash modal bug

* update location parser type

* open-source Oliver's suggestion

* fix superblock title

* add claim-cert-from-learn tests

* use larger tests

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>

* fix some cypress stuff

* fix ShowCertification cypress test

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-07-15 23:51:27 +09:00
Oliver Eyton-Williams
92d7ae1725
fix(client): remove extra slash when redirecting to client (#42588)
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-07-12 13:54:54 +05:30
Renovate Bot
7c2a4aff6e
chore(deps): update dependency jest to v27 2021-07-06 19:01:17 +05:30
Mrugesh Mohapatra
adc09ec180 chore: apply npm audit fix to all packages 2021-06-28 19:00:55 +05:30
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
Ahmad Abdolsaheb
b3f2c64de8
fix(client): remove algolia and hot keys modules from landing pages (#42394)
* fix(client): remove algolia and hot keys from landing pages

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-24 12:50:36 +03:00
Huyen Nguyen
2c16234853
chore: add jest global variables (#42573) 2021-06-20 09:14:42 +02:00
Nicholas Carrigan (he/him)
7857c3932b
fix: signout redirect (#42538)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-06-17 23:54:18 +05:30
Oliver Eyton-Williams
a555e013a0
refactor: remove unused env vars (#42500) 2021-06-15 09:57:10 -07:00
gikf
bc9e8a69de
fix(client): display legacy certs like current ones (#42038)
* fix: display legacy certs like the current ones

* fix: link projects in legacy certs to project pages

* fix: update tests to changed legacy cert display

* fix: update tests for removed legacy certs forms

* fix: display legacy certs like the current ones

* fix: submit projects for cert on projects pages

* fix: remove legacy certs form submitting handling

* fix: move claiming cert setup before both tests

* fix: remove legacy cert update props and actions

* fix: remove legacy cert updates from api

* fix: correct merge conflict
2021-06-11 17:06:46 +01:00
Mrugesh Mohapatra
2db594d318 chore: apply npm audit:fix 2021-06-08 21:16:56 +05:30
Oliver Eyton-Williams
3875c6e619
fix: use env.json in both client and server (#42359) 2021-06-08 13:12:44 +01:00
Oliver Eyton-Williams
7b65909522
feat: make api only return json (#42320)
* fix(api): return json for delete + reset-progress

* refactor(api): make .json calls explicit

These .send() calls had objects as arguments. Using .json() makes it
explicit without changing behaviour.

* fix: return json or redirectWithFlash

We should never be getting requests for plain text, but if we do they
should be redirected back to the client.

* fix: prioritize JSON responses

If accepted, respond with JSON.  If not, it's probably a bad request.
2021-06-05 13:20:40 +01:00
Oliver Eyton-Williams
802273cf8a
refactor: remove sinon (#42337) 2021-06-02 21:03:05 +05:30
Oliver Eyton-Williams
2648f75df6
fix: remove redundant babel plugin (#42234)
@babel/plugin-proposal-class-properties is now included in preset-env
2021-05-24 13:30:09 -07:00
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
Mrugesh Mohapatra
83943de719
chore: rollback CSRF token generation (#42082)
This reverts commit e1c00138a9.
2021-05-11 00:27:08 +05:30
Oliver Eyton-Williams
e1c00138a9
fix: generate csrf tokens on server (#41968)
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2021-05-10 21:40:42 +05:30
renovate[bot]
21dd80c47a
chore(deps): update dependency prettier to v2.3.0 (#42074)
* chore(deps): update dependency prettier to v2.3.0

* chore: apply formating per prettier

* fix: correctly disable import/no-unresolved

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mrugesh Mohapatra <hi@mrugesh.dev>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-10 08:48:49 -07:00
Mrugesh Mohapatra
81d8d3f294
fix(npm-audit): improve audit and fix run-scripts (#42050)
* fix(npm-audit): improve audit and fix run-scripts

* fix: include --no-bail

Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-05-07 23:48:11 +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
Mrugesh Mohapatra
341fe76f0f chore: roll back CSRF changes for the weekend
This reverts commit 00193858a0.
2021-04-30 23:57:28 +05:30
Oliver Eyton-Williams
00193858a0
fix: generate csrf tokens on server not client (#41908)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2021-04-30 09:42:26 +03:00
Oliver Eyton-Williams
300ff756ce
fix(api): stop ignored files (tests) being copied (#41926) 2021-04-27 10:40:01 -07:00
Shaun Hamilton
d3f59e6d5d
fix(dev): rename superBlock with v7 to certSlug (#41738)
* fix(dev): rename superBlock with v7 to slug

* improve name slug -> certSlug

* superBlockTitle -> superBlock

* correct teeny, tiny mistake

* fix: correct slug to certSlug in certLocation

* refactor currentCerts

* rename showCert cert -> certSlug and various
2021-04-23 22:29:17 +03:00
Oliver Eyton-Williams
5d46e2830a
feat: add Docker build (#41187)
* feat(docker): build and use client and api images

* feat: always use .env

dotenv fails without throwing if the .env file is missing and never
overwrites variables if they already exist. As such, we can use it in
build pipelines.

* fix: remove quotes from env vars

dotenv normalises quoted and unquoted strings (X=x, X='x' and
X="x") all become the same .env object {X: 'x'}. However, Docker's
env_file does not (the three cases are distinct).  As a result, we
should use unquoted strings for consistency.

* fix: provide custom warning when .env is missing

* feat(docker): include client-config

* fix(docker): remove build packages from api image

* fix(docker): run script from correct dir

* fix(docker): correct permissions and dests

* fix(docker): consolidate run steps

This is standard practice, but did not have a noticable affect on the
image size

* fix(docker): clean the npm cache

Prior to this step the image was 1.11GB uncompressed and we got a modest
saving, 1.09GB after.

* refactor(docker): regexless COPY directives

* feat(docker): use alpine

This shrinks the image down to 259MB

* fix(docker): update build scripts

* fix: correct the server Dockerfile RUNs

* DEBUG: expose mysql port for seeding

* chore: update client Dockerfile's node versions

* fix: remove executable permissions from index.js

It's not a cli, so I don't think it needs to be executable.

* chore: update node and remove stale comments

* feat: use ENTRYPOINT + CMD to allow runtime config

* fix: add CURRICULUM_LOCALE arg

* feat: allow client port configuration

* feat: allow api port to be configured

* refactor: use unique variable names for ports

* fix: add default CLIENT_PORT

* refactor: clean up
2021-04-20 19:29:31 +05:30
Mrugesh Mohapatra
87666a738d
chore: bump patch updates to api-server (#41833) 2021-04-16 11:50:04 +02:00
Ahmad Abdolsaheb
d5d786049e
feat(api): stripe checkout integration (#41666)
* feat: add api stripe checkout integration

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-04-02 15:33:34 +09: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
ad9b1f89d8
fix(api, client): update Gatsby, webpack & related things (#41452)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-03-25 12:13:43 -07:00
Oliver Eyton-Williams
e9b1247688
test(api): suppress expected log (#41502) 2021-03-16 09:53:08 -06:00
Mrugesh Mohapatra
6c91f81b0e chore(deps): upgrade eslint, prettier & related packages 2021-03-11 12:19:42 +05:30
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
Mrugesh Mohapatra
b5f4754e2a
fix: re-revert the API decoupling (#41263)
* fix(api): decouple api from curriculum

This reverts commit 8f0e441644 and
introduces the implementations from #40703.

* fix(gitpod): add curriculum build to GitPod

This reverts commit 706d70f58d and
introduces implementations from #41234.

* docs: update DevOps manual for api change (#41259)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-25 12:02:35 -08:00
Mrugesh Mohapatra
a3316f2f88 chore: remove extraneous files on revert
This commit removes now unused files reverted (added back)
by d8f764fee1
2021-02-25 03:40:09 +05:30
Mrugesh Mohapatra
8f0e441644 revert(api): decouple api from curriculum
This reverts commit c077ffe4b9
via PR #40703
2021-02-25 03:40:09 +05:30
Ahmad Abdolsaheb
3bf52faeaa
fix: dry certification config (#40927)
* fix: move cert config to config

* fix: move gitHubUserAgent to misc

* feat: rename maps

* feat: relocate oldDataVizId

* fix: correct path for gitHubUserAgent

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-22 20:38:38 -08:00
Oliver Eyton-Williams
f8699a8d55
refactor: simplify challenge.block usage (#41185) 2021-02-23 09:52:48 +05:30
Oliver Eyton-Williams
c077ffe4b9
feat(api): decouple api from curriculum (#40703) 2021-02-22 12:23:59 +05:30
dependabot[bot]
113ad71889 chore(deps-dev): bump @babel/core from 7.12.16 to 7.12.17 in /api-server
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.16 to 7.12.17.
- [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.12.17/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-21 06:21:52 +00:00
dependabot[bot]
d7fee838d7 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.16 to 7.12.17.
- [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.12.17/packages/babel-plugin-proposal-optional-chaining)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-21 06:07:59 +00:00
dependabot[bot]
a3f00d5436 chore(deps-dev): bump @babel/cli from 7.12.16 to 7.12.17 in /api-server
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.16 to 7.12.17.
- [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.12.17/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-21 05:57:41 +00:00
dependabot[bot]
5b9b792652 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.16 to 7.12.17.
- [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.12.17/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-21 05:46:20 +00:00
dependabot[bot]
d847ba5a0c chore(deps): bump lodash from 4.17.20 to 4.17.21 in /api-server
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-21 05:46:07 +00:00
dependabot[bot]
d014b2c166 chore(deps-dev): bump @babel/node from 7.12.16 to 7.12.17 in /api-server
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.12.16 to 7.12.17.
- [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.12.17/packages/babel-node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-21 05:32:28 +00:00
Mrugesh Mohapatra
51ec477329
chore: pin mongodb for warnings - again (#41163) 2021-02-18 16:01:22 +05:30
dependabot[bot]
1017f420b5 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.13 to 7.12.16.
- [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.12.16/packages/babel-plugin-proposal-optional-chaining)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-14 07:21:50 +00:00
dependabot[bot]
4936f9d9af 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.13 to 7.12.16.
- [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.12.16/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-14 06:07:20 +00:00
dependabot[bot]
41d46ac13f chore(deps-dev): bump @babel/cli from 7.12.13 to 7.12.16 in /api-server
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.13 to 7.12.16.
- [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.12.16/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-14 06:01:06 +00:00
dependabot[bot]
88f8c33ab2 chore(deps-dev): bump @babel/node from 7.12.13 to 7.12.16 in /api-server
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.12.13 to 7.12.16.
- [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.12.16/packages/babel-node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-14 06:00:42 +00:00
dependabot[bot]
49399736fe chore(deps): bump query-string from 6.13.8 to 6.14.0 in /api-server
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.8 to 6.14.0.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.13.8...v6.14.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-14 05:33:02 +00:00
dependabot[bot]
19337b6993 chore(deps): bump mongodb from 3.6.3 to 3.6.4 in /api-server
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/3.6/CHANGES_3.0.0.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v3.6.3...v3.6.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-14 05:28:54 +00:00
dependabot[bot]
2c951de6e2 chore(deps-dev): bump @babel/core from 7.12.13 to 7.12.16 in /api-server
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.13 to 7.12.16.
- [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.12.16/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-14 05:23:57 +00:00
Mrugesh Mohapatra
bc59d3c63c
fix(api): pin mongodb for warnings (#41018) 2021-02-10 00:47:55 +05:30
dependabot[bot]
15047f2d90 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.1 to 7.12.13.
- [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.12.13/packages/babel-plugin-proposal-object-rest-spread)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 06:57:19 +00:00
dependabot[bot]
c47ca3c6a1 chore(deps-dev): bump @babel/cli from 7.12.10 to 7.12.13 in /api-server
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.10 to 7.12.13.
- [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.12.13/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 06:39:43 +00:00
dependabot[bot]
21f2467896 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.7 to 7.12.13.
- [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.12.13/packages/babel-plugin-proposal-optional-chaining)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 06:36:05 +00:00
dependabot[bot]
e042816c4a chore(deps-dev): bump @babel/core from 7.12.10 to 7.12.13 in /api-server
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.10 to 7.12.13.
- [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.12.13/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 06:18:58 +00:00
dependabot[bot]
204c773c8f 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.11 to 7.12.13.
- [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.12.13/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 06:14:28 +00:00
dependabot[bot]
a89135ffab chore(deps): bump moment-timezone from 0.5.32 to 0.5.33 in /api-server
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.32 to 0.5.33.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.32...0.5.33)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 05:59:47 +00:00
dependabot[bot]
f5f4bdd3fa chore(deps-dev): bump @babel/node from 7.12.10 to 7.12.13 in /api-server
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.12.10 to 7.12.13.
- [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.12.13/packages/babel-node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 05:59:25 +00:00
dependabot[bot]
d2a2a0c101 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.10 to 7.12.13.
- [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.12.13/packages/babel-register)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 05:55:04 +00:00
dependabot[bot]
7a07438159 chore(deps): bump mongodb from 3.6.3 to 3.6.4 in /api-server
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 3.6.3 to 3.6.4.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/3.6/CHANGES_3.0.0.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v3.6.3...v3.6.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 05:31:12 +00:00
dependabot[bot]
923f5adb18 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.1 to 7.12.13.
- [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.12.13/packages/babel-plugin-proposal-class-properties)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-07 05:23:47 +00:00
Tom
421c05e652
fix: set hours to claim certs to 300 (#40910) 2021-02-06 00:33:20 +05:30
Tom
30ff9b1202
fix: show username on cert if name is private (#40897)
Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
2021-02-04 13:30:48 +05:30
Tom
14ca6beb0a fix: naming scheme for messages in translation files (#40642)
Co-authored-by: Nicholas Carrigan (he/him) <nhcarrigan@gmail.com>
2021-01-31 12:15:38 +05:30
Tom
072a7ce6c6 feat(i18n): translate server messages (#40626) 2021-01-31 12:15:38 +05:30
Oliver Eyton-Williams
77022b8a56 fix: redirect correctly in development (#40594)
* fix: redirect correctly in development

* fix: prevent // appearing in path

* refactor: remove old comments

* fix: remove trailing slash for redirection
2021-01-31 12:15:38 +05:30
Mrugesh Mohapatra
2f525de24c fix(api): validate url before use 2021-01-31 12:15:37 +05:30
Oliver Eyton-Williams
a076547d43 fix(api): only use homeLocation as a fallback (#40517) 2021-01-31 12:15:36 +05:30
Mrugesh Mohapatra
77c46dba2c fix(i18n): redirect based on Referer header (#40512)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:34 +05:30
Oliver Eyton-Williams
412938890a fix(api): use English slugs for all challenges 2021-01-31 12:15:33 +05:30
Tom
3978c6be28 feat: i18n user interface (#40306)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-01-31 12:15:32 +05:30
dependabot[bot]
8fb84ecd4d chore(deps): bump @sentry/node from 5.29.2 to 5.30.0 in /api-server
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 5.29.2 to 5.30.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/5.29.2...5.30.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-17 05:21:45 +00:00
dependabot[bot]
a1a113dc66 chore(deps): bump express-validator from 6.9.0 to 6.9.2 in /api-server
Bumps [express-validator](https://github.com/express-validator/express-validator) from 6.9.0 to 6.9.2.
- [Release notes](https://github.com/express-validator/express-validator/releases)
- [Commits](https://github.com/express-validator/express-validator/compare/v6.9.0...v6.9.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-10 05:23:24 +00:00
dependabot[bot]
be43de2a57 chore(deps-dev): bump nodemon from 2.0.6 to 2.0.7 in /api-server
Bumps [nodemon](https://github.com/remy/nodemon) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v2.0.6...v2.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-10 05:21:05 +00:00
dependabot[bot]
3a39de24c2 chore(deps): bump query-string from 6.13.7 to 6.13.8 in /api-server
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.7 to 6.13.8.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.13.7...v6.13.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-03 05:21:13 +00:00
dependabot[bot]
6bb0df4748 chore(deps): bump mongodb from 3.6.2 to 3.6.3 in /api-server
Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 3.6.2 to 3.6.3.
- [Release notes](https://github.com/mongodb/node-mongodb-native/releases)
- [Changelog](https://github.com/mongodb/node-mongodb-native/blob/3.6/CHANGES_3.0.0.md)
- [Commits](https://github.com/mongodb/node-mongodb-native/compare/v3.6.2...v3.6.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 07:54:41 +00:00
dependabot[bot]
11471b413e chore(deps): bump loopback from 3.27.0 to 3.28.0 in /api-server
Bumps [loopback](https://github.com/strongloop/loopback) from 3.27.0 to 3.28.0.
- [Release notes](https://github.com/strongloop/loopback/releases)
- [Changelog](https://github.com/strongloop/loopback/blob/master/CHANGES.md)
- [Commits](https://github.com/strongloop/loopback/compare/v3.27.0...v3.28.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 06:31:11 +00:00
dependabot[bot]
4367307490 chore(deps): bump axios from 0.21.0 to 0.21.1 in /api-server
Bumps [axios](https://github.com/axios/axios) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.0...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 06:30:56 +00:00
dependabot[bot]
730ff3d993 chore(deps): bump passport-auth0 from 1.3.3 to 1.4.0 in /api-server
Bumps [passport-auth0](https://github.com/auth0/passport-auth0) from 1.3.3 to 1.4.0.
- [Release notes](https://github.com/auth0/passport-auth0/releases)
- [Changelog](https://github.com/auth0/passport-auth0/blob/master/CHANGELOG.md)
- [Commits](https://github.com/auth0/passport-auth0/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 06:19:26 +00:00
dependabot[bot]
8eb8d30cbf 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.11.0 to 7.12.7.
- [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.12.7/packages/babel-plugin-proposal-optional-chaining)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 06:14:42 +00:00
dependabot[bot]
0720a9dce0 chore(deps): bump @sentry/node from 5.27.4 to 5.29.2 in /api-server
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 5.27.4 to 5.29.2.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/5.27.4...5.29.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 06:04:47 +00:00
dependabot[bot]
77d056457b chore(deps): bump moment-timezone from 0.5.31 to 0.5.32 in /api-server
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.31 to 0.5.32.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.31...0.5.32)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 05:29:54 +00:00
dependabot[bot]
011584fe23 chore(deps-dev): bump @babel/node from 7.12.6 to 7.12.10 in /api-server
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.12.6 to 7.12.10.
- [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.12.10/packages/babel-node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 05:28:53 +00:00
dependabot[bot]
287b1585a3 chore(deps): bump bad-words from 3.0.3 to 3.0.4 in /api-server
Bumps [bad-words](https://github.com/web-mech/badwords) from 3.0.3 to 3.0.4.
- [Release notes](https://github.com/web-mech/badwords/releases)
- [Changelog](https://github.com/web-mech/badwords/blob/master/CHANGELOG.md)
- [Commits](https://github.com/web-mech/badwords/compare/v3.0.3...v3.0.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 05:25:28 +00:00
dependabot[bot]
98fd1008e3 chore(deps): bump express-validator from 6.7.0 to 6.9.0 in /api-server
Bumps [express-validator](https://github.com/express-validator/express-validator) from 6.7.0 to 6.9.0.
- [Release notes](https://github.com/express-validator/express-validator/releases)
- [Commits](https://github.com/express-validator/express-validator/compare/v6.7.0...v6.9.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 05:25:18 +00:00
dependabot[bot]
567d8c5139 chore(deps): bump query-string from 6.13.6 to 6.13.7 in /api-server
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.6 to 6.13.7.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.13.6...v6.13.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 05:21:18 +00:00
dependabot[bot]
819245a789 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.1 to 7.12.10.
- [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.12.10/packages/babel-register)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-27 05:19:19 +00:00
dependabot[bot]
5458b586f0 chore(deps-dev): bump cross-env from 6.0.3 to 7.0.3 in /api-server
Bumps [cross-env](https://github.com/kentcdodds/cross-env) from 6.0.3 to 7.0.3.
- [Release notes](https://github.com/kentcdodds/cross-env/releases)
- [Changelog](https://github.com/kentcdodds/cross-env/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kentcdodds/cross-env/compare/v6.0.3...v7.0.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 15:33:16 +00:00
dependabot[bot]
aae5c8bfb2 chore(deps-dev): bump jest from 26.6.1 to 26.6.3 in /api-server
Bumps [jest](https://github.com/facebook/jest) from 26.6.1 to 26.6.3.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v26.6.1...v26.6.3)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 14:14:07 +00:00
dependabot[bot]
5e45d9bb1f 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.1 to 7.12.11.
- [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.12.11/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 13:53:25 +00:00
dependabot[bot]
9aae267d79 chore(deps-dev): bump @babel/cli from 7.12.1 to 7.12.10 in /api-server
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.1 to 7.12.10.
- [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.12.10/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 13:52:22 +00:00
dependabot[bot]
7f40f17d18 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.10.4 to 7.12.1.
- [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.12.1/packages/babel-plugin-proposal-class-properties)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 13:32:30 +00:00
dependabot[bot]
e3deae08ec chore(deps-dev): bump @babel/core from 7.12.7 to 7.12.10 in /api-server
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.7 to 7.12.10.
- [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.12.10/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-21 13:10:03 +00:00
Oliver Eyton-Williams
4f4bbfbb6c
chore(api): migrate from express-validator 5 to 6 (#40363) 2020-12-03 21:17:38 +05:30
Shaun Hamilton
1ef12d5605
feat(dev): update GitPod testing (#40328)
* feat(dev): update GitPod testing
2020-12-01 14:37:10 +01:00
Oliver Eyton-Williams
c1436445a7
chore(api): remove unused packages (#40271) 2020-11-28 12:41:33 +05:30
Kristofer Koishigawa
f7943d0ad5
fix(api): expand blocked usernames list (#40313) 2020-11-25 18:58:49 +05:30
dependabot[bot]
a267a23888 chore(deps-dev): bump @babel/core from 7.11.6 to 7.12.7 in /api-server
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.11.6 to 7.12.7.
- [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.12.7/packages/babel-core)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-22 05:42:04 +00:00
dependabot[bot]
ef6cbb4da5 chore(deps): bump shortid from 2.2.15 to 2.2.16 in /api-server
Bumps [shortid](https://github.com/dylang/shortid) from 2.2.15 to 2.2.16.
- [Release notes](https://github.com/dylang/shortid/releases)
- [Changelog](https://github.com/dylang/shortid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dylang/shortid/compare/2.2.15...2.2.16)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-22 05:22:06 +00:00
dependabot[bot]
35119cc71a chore(deps): bump @sentry/node from 5.26.0 to 5.27.4 in /api-server
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 5.26.0 to 5.27.4.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/5.26.0...5.27.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-15 05:38:04 +00:00
dependabot[bot]
0434c1e118 chore(deps-dev): bump @babel/node from 7.12.1 to 7.12.6 in /api-server
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.12.1 to 7.12.6.
- [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.12.6/packages/babel-node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-15 05:21:42 +00:00
dependabot[bot]
91017f9cbf chore(deps): bump axios from 0.19.2 to 0.21.0 in /api-server
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-08 05:38:42 +00:00
dependabot[bot]
237ea6c69f chore(deps-dev): bump @babel/register in /api-server
Bumps [@babel/register](https://github.com/babel/babel/tree/HEAD/packages/babel-register) from 7.11.5 to 7.12.1.
- [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.12.1/packages/babel-register)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-08 05:20:51 +00:00
Oliver Eyton-Williams
b2e2f33cf1
feat(api): allow redirects with a returnTo param (#40161) 2020-11-07 13:35:25 +05:30
Mrugesh Mohapatra
5f67843e50
revert: allow user to redirect after signin (#40160)
This reverts commit a7eba00690.
2020-11-02 19:24:24 +05:30
Ahmad Abdolsaheb
0a2f01c9d8
fix: keep unsubscribed donors as isDonating (#40103) 2020-11-02 15:45:03 +05:30
Oliver Eyton-Williams
a7eba00690
feat: allow user to redirect after signin (#40069)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2020-11-02 15:40:43 +05:30
dependabot[bot]
2d69fcb787 chore(deps-dev): bump @babel/node from 7.10.5 to 7.12.1 in /api-server
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.10.5 to 7.12.1.
- [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.12.1/packages/babel-node)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-01 06:03:24 +00:00
dependabot[bot]
ff1bf54073 chore(deps-dev): bump @babel/cli from 7.11.6 to 7.12.1 in /api-server
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.11.6 to 7.12.1.
- [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.12.1/packages/babel-cli)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-01 05:43:36 +00:00
dependabot[bot]
a29ecfdc1a chore(deps): bump query-string from 6.13.5 to 6.13.6 in /api-server
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.5 to 6.13.6.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.13.5...v6.13.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-01 05:39:36 +00:00
dependabot[bot]
82bda9e57d chore(deps-dev): bump jest from 24.9.0 to 26.6.1 in /api-server
Bumps [jest](https://github.com/facebook/jest) from 24.9.0 to 26.6.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v24.9.0...v26.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-25 09:57:26 +00:00
dependabot[bot]
a7971f3bda chore(deps-dev): bump nodemon from 1.19.4 to 2.0.6 in /api-server
Bumps [nodemon](https://github.com/remy/nodemon) from 1.19.4 to 2.0.6.
- [Release notes](https://github.com/remy/nodemon/releases)
- [Commits](https://github.com/remy/nodemon/compare/v1.19.4...v2.0.6)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-25 09:36:15 +00:00
dependabot[bot]
342713e03b 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.11.5 to 7.12.1.
- [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.12.1/packages/babel-preset-env)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-25 05:23:55 +00:00
dependabot[bot]
044ce10d13 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.11.0 to 7.12.1.
- [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.12.1/packages/babel-plugin-proposal-object-rest-spread)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-18 05:50:27 +00:00
dependabot[bot]
7aec6d53be chore(deps): bump @sentry/node from 5.25.0 to 5.26.0 in /api-server
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 5.25.0 to 5.26.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/5.25.0...5.26.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-18 05:28:15 +00:00
Mrugesh Mohapatra
40c16e6f44 chore(api): drop unused react related packages 2020-10-14 19:09:33 +02:00
Oliver Eyton-Williams
216b78f9eb chore(api): minor version bumps 2020-10-12 15:23:05 +05:30
Mrugesh Mohapatra
ab9699a66c chore(deps): update packages on api-server 2020-10-10 23:46:24 +05:30
dependabot[bot]
2b466ec43e chore(deps): bump passport from 0.4.0 to 0.4.1 in /api-server
Bumps [passport](https://github.com/jaredhanson/passport) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/jaredhanson/passport/releases)
- [Commits](https://github.com/jaredhanson/passport/compare/v0.4.0...v0.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-10 17:36:49 +00:00
dependabot[bot]
d97aec50f9 chore(deps): bump query-string from 6.13.2 to 6.13.5 in /api-server
Bumps [query-string](https://github.com/sindresorhus/query-string) from 6.13.2 to 6.13.5.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v6.13.2...v6.13.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-10 17:13:57 +00:00
Mrugesh Mohapatra
5b335fd62e chore(api): wrap req logs in debug format 2020-10-09 17:29:55 +02:00
Mrugesh Mohapatra
977d411a97 chore:(deps): apply npm audit fix to all packages 2020-09-24 16:29:55 +05:30
Mrugesh Mohapatra
d623ca0053 chore:(deps): server - update minor and patch 2020-09-24 16:29:55 +05:30
Randell Dawson
0f5832b562
fix: project 25 + 5 (#39526) 2020-09-09 13:28:12 +05:30
Mrugesh Mohapatra
c23c4ef8e4
fix: negative sentiment → neutral language (#39522)
The existing terminology carries negative sentiment that can be
interpreted in a racial or sense. Updating the name to have no
potential for such a connection.

Co-authored-by: Justin Rogers <justrog@gmail.com>
2020-09-07 11:04:44 +05:30
Oliver Eyton-Williams
c772382d59 fix: remove remnants of servicebot
None of the code was still in use.
2020-09-04 00:14:24 +05:30
Oliver Eyton-Williams
1ad5f756e0 fix(api): remove redirects from api
They should be handled either by nginx or by the client. Turned out a
lot of code, including the path migration, existed to support them.
Hence the large number of removals
2020-09-01 11:35:44 +05:30
Oliver Eyton-Williams
8c70ea6b62
fix(client): format cert date in user's timezone (#39440) 2020-08-20 16:46:10 +05:30
Ahmad Abdolsaheb
b1da66b80d
feat: add intro text to email sign up page (#39409)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2020-08-16 02:31:18 +05:30
Oliver Eyton-Williams
3dbe69707f fix: redirect to email sign up on first login 2020-08-05 14:01:47 +05:30
Manish Giri
08d4811df3
feat(client, api): Add Camper Join Date to Profile (#38408) 2020-08-04 13:08:13 +05:30
Mrugesh Mohapatra
b58704a5ce
fix: harden username blocklist (#39281)
* fix: harden username blocklist

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-07-28 10:35:56 +02:00
Oliver Eyton-Williams
bf9837c1da
chore: remove unused library (#39270) 2020-07-27 18:10:22 +05:30
Oliver Eyton-Williams
31f9211016
refactor(api): clean up certification logic (#39196) 2020-07-15 21:28:26 +05:30
Oliver Eyton-Williams
57a39d47ab
refactor: remove old curriculum map from api 2020-06-23 11:27:16 +02:00
Oliver Eyton-Williams
2da8eb23e9
feat(api): get challenges directly from /curriculum 2020-06-23 11:27:16 +02:00
Oliver Eyton-Williams
5a80b83579
fix(api): csrf over http in development (#39114) 2020-06-22 15:57:20 +05:30
Kristofer Koishigawa
6e5988da4e
fix(learn): versioning for new certificate slugs (#39087) 2020-06-17 20:30:31 +05:30
Oliver Eyton-Williams
b3d5cde75e
fix(api): csurf to SameSite 'strict', https only (#39077)
Lax and http are probably sufficient, but if the stricter versions work
there's no harm using them.
2020-06-16 20:48:48 +05:30
Kristofer Koishigawa
77df0e32cd
feat(learn): rename certificates, cert slugs, and cert flags (#39026) 2020-06-15 21:51:30 +05:30
rdm100
885538d9e1
fix: updated and consolidated quotes (#39069)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-06-15 18:42:27 +05:30
Oliver Eyton-Williams
b4926052f4
chore: refactor and simplify testing (#39050) 2020-06-13 14:57:15 +05:30
Oliver Eyton-Williams
6b8c2e74b6
fix(client): sync Redux store and DB (#39034) 2020-06-10 12:24:19 +05:30
Kris Koishigawa
89d5c891e3 feat(learn): add full stack certificate md and handle errors
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-06-06 14:45:12 +05:30
Mrugesh Mohapatra
a02ff7b08e
fix(certs): add year to certs introduced in 2020 (#38912) 2020-06-04 13:13:07 +05:30
matbub
4af28cf12c
fix(client): update report user verbiage and link (#38954) 2020-06-01 18:37:24 +05:30
Huyen Nguyen
727ae4b932
fix(api): update url in email template (#38970) 2020-06-01 18:00:26 +05:30
Beau Carnes
256ed00fb9 feat(learn): split InforSec and QA into individual certs (#38347)
Co-authored-by: Mrugesh Mohapatra <me@raisedadead.com>
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
2020-05-27 13:19:12 +05:30
Beau Carnes
e776529ed0 feat(learn): add python video challenges (#38424) 2020-05-27 13:19:09 +05:30
mrugesh
22afc2a0ca feat(learn): python certification projects (#38216)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: Kristofer Koishigawa <scissorsneedfoodtoo@gmail.com>
Co-authored-by: Beau Carnes <beaucarnes@gmail.com>
2020-05-27 13:19:08 +05:30
Oliver Eyton-Williams
8f239cb3e5 refactor(api): remove unused map util 2020-05-25 18:32:18 +05:30
Oliver Eyton-Williams
0c771b7000 refactor(api): remove unused url-utils 2020-05-25 18:32:18 +05:30
Mrugesh Mohapatra
ed08ec088a
fix(api): use mongodb+srv url protocol (#38831) 2020-05-19 21:52:05 +05:30
Mrugesh Mohapatra
61e791ffda
revert(api): bump minor & patch versions of deps (#38816) 2020-05-14 14:35:13 +05:30
Mrugesh Mohapatra
c76e855ff1 chore(api): bump minor & patch versions of deps 2020-05-11 22:53:55 +05:30
Oliver Eyton-Williams
9451328a85
fix(api): show most recent date for FullStack cert (#38736) 2020-05-06 18:54:12 +05:30
Shaun Hamilton
b1ea426f51
fix(api): add toLowerCase method to email (#38586) 2020-04-24 16:23:29 +05:30
Oliver Eyton-Williams
f0da5e712e
chore: update deps (#38562) 2020-04-17 22:16:31 +05:30
Mrugesh Mohapatra
13b248d464 chore: npm audit fix in all packages 2020-04-07 14:24:34 +05:30
Oliver Eyton-Williams
4300ce44db
fix: prevent 403 reporting (#38449) 2020-03-26 22:22:57 +05:30
Oliver Eyton-Williams
c9084aea2c DEBUG: create dedicated debug endpoints 2020-03-26 16:51:18 +05:30
Oliver Eyton-Williams
38e7369b92 chore: remove rollbar, bump deps 2020-03-26 16:51:17 +05:30
Oliver Eyton-Williams
87ae387ecb fix: put error filtering in the handler 2020-03-26 16:51:17 +05:30
Oliver Eyton-Williams
f378f54ac3 feat: enhance dev error reports 2020-03-26 16:51:16 +05:30
Oliver Eyton-Williams
10a6622546 feat(api): enable Sentry reporting 2020-03-26 16:51:16 +05:30
Mrugesh Mohapatra
61e5bf942b feat(api): integrate sentry for log reporting 2020-03-26 16:51:16 +05:30
Ahmad Abdolsaheb
4c14e3f396
fix: add a fallback for fullstack cert (#37065)
* fix: add a fallback for fullstack cert completion

* fix: optimize loop over completedChallengs

* fix: try to make more declarative

* fix: move variable to config

* fix: use node exports

Co-authored-by: moT01 <tmondloch01@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2020-03-26 09:57:15 +01:00
Mrugesh Mohapatra
ef39ab0e20 fix(donate): allow calls to the API without auth
This is also dependent on 170e3dbf4f
2020-03-21 01:58:07 +05:30
Mrugesh Mohapatra
170e3dbf4f fix(donate): remove isSigned in check temporarily 2020-03-19 23:55:47 +05:30
Mrugesh Mohapatra
585527d145 feat: add paypal donation to modals and certificates 2020-03-19 23:55:47 +05:30
Mrugesh Mohapatra
4ee032d664 feat(api): add and update webhooks routing 2020-03-19 17:18:53 +05:30
Mrugesh Mohapatra
d8e5f3ebc8 feat(tools): add helper for testing webhooks locally 2020-03-19 17:18:53 +05:30
mrugesh
6f90efb20c
fix(api): update routes for authorization bypass (#38387) 2020-03-18 18:05:42 +01:00
Oliver Eyton-Williams
802f9f68ba
fix: use flash before auth (#38385) 2020-03-18 17:51:14 +05:30
mrugesh
933e289617
fix(api): add /auth paths to whitelist (#38383) 2020-03-18 13:19:42 +01:00
Oliver Eyton-Williams
23b899f50f fix(csrf): remove all csrf bypass 2020-03-17 23:28:23 +05:30
Oliver Eyton-Williams
de124c4386 chore: update api-server 2020-03-17 11:09:12 +05:30
Mrugesh Mohapatra
f9277b4fec fix(env): make PayPal env config dynamic 2020-03-16 18:35:52 +05:30
Ahmad Abdolsaheb
6c6eadfbe4 feat(donate): PayPal integration 2020-03-16 18:35:51 +05:30
mrugesh
ac922ac04e
fix: add pass thru for some subdomains (#38315)
* fix: add passthru for some subdomains

* fix: export whitelist correctly
2020-03-04 00:02:04 +09:00
Josh Soref
004b99bf8f chore: fix typos in spelling (#38100)
* spelling: accidentally

* spelling: announce

* spelling: assembly

* spelling: avoid

* spelling: backend

* spelling: because

* spelling: claimed

* spelling: candidate

* spelling: certification

* spelling: certified

* spelling: challenge

* spelling: circular

* spelling: it isn't

* spelling: coins

* spelling: combination

* spelling: compliant

* spelling: containers

* spelling: concise

* spelling: deprecated

* spelling: development

* spelling: donor

* spelling: error

* spelling: everything

* spelling: exceed

* spelling: exist

* spelling: falsy

* spelling: faulty

* spelling: forward

* spelling: handle

* spelling: indicates

* spelling: initial

* spelling: integers

* spelling: issealed

* spelling: javascript

* spelling: length

* spelling: maximum

* spelling: minimum

* spelling: mutable

* spelling: notifier

* spelling: coordinate

* spelling: passport

* spelling: perform

* spelling: permuter

* spelling: placeholder

* spelling: progressively

* spelling: semantic

* spelling: submission

* spelling: submit

* spelling: translations

* spelling: turquoise

* spelling: visualization

* spelling: without

* spelling: registration

* spelling: representation
2020-02-08 23:59:10 +05:30