profile (dot) theguardian (dot) com
Gateway is the frontend to sign-in and registration at the Guardian at profile.theguardian.com.
Team - P&E/Identity & Trust
Having issues with authentication, or would like to report an issue?
Contact our customer service team at signinsupport@theguardian.com
See the architecture doc.
A detailed setup guide can be found in docs/setup.
Populate a .env file by using the examples from .env.example, or follow the instructions in docs/setup to download one from S3.
The .env file should never be committed.
- Install dependencies and start development server:
$ make devOn the first run, you may see errors in your console, this is because the build folder and project haven't finished compiling yet, just wait for a while for webpack to finish the bundling process.
Need help? Check the development guide first!
Other documentation in the docs folder.
- Branch off of
main, name your branch related to the feature you're implementing, prefix with your initials (e.g.mm/feature-name) - Do your thing
- Ensure tests pass:
make cior./ci.sh- This runs linting, type-check, unit tests, build checks
make cypress-mockedor./cypress-mocked- This runs Cypress integration tests against a mocked version of the Okta API
make cypress-eteor./cypress-ete- This runs Cypress end-to-end tests against the Okta environment defined in
.env - Be sure to use sparingly, this relies on Mailosaur which has a limited number of emails we can test with it each day
- This runs Cypress end-to-end tests against the Okta environment defined in
- You can add
-devto the end of any of the above commands to run the tests against the development server. e.g.make cypress-ete-dev
- Make sure your branch is up to date with
main
- By merging or (preferably, if possible) rebasing onto
main - This makes sure any conflicts are resolved prior to code review
- If possible, please clean up the commit history to make each commit a clean change to make it more readable
- e.g. for example when fixing things from a previous commit, or combining multiple commits into a single feature commit
git rebase -i <starting commit/branch name>e.g.git rebase -i origin/main
- Open a pull request
- The template can be used for guidance on how to structure the PR, but you don't have to follow it.
- Draft pull requests, and open pull requests with further pushed commits will not run the
Chromaticandcypress-eteon each push/by default.- You have to manually opt into running these tests by either marking the draft PR as "Ready for review", or re-requesting a review (usually from "guardian/identity" or a previous reviewer)
- This change was made to limit the number of builds to Chromatic and emails with Mailosaur to reduce costs with those products
- Code will be reviewed and require a 👍 from a team member before it will be merged
- When a PR is merged with
mainbranch, it will ensure that the change is deployed to production.