Граф коммитов

23882 Коммитов

Автор SHA1 Сообщение Дата
Vijay Budhram 90b7f2049f
Merge pull request #11900 from mozilla/fxa-4311
feat(google): Add settings section for linked accounts
2022-02-14 18:33:50 -05:00
Vijay Budhram 791efdaba1
Merge pull request #11896 from mozilla/fxa-4549
fix(google): Delete linked accounts when user deletes FxA account
2022-02-14 17:19:06 -05:00
Vijay Budhram 69797644f8
feat(google): Add frontend screens for linked accounts 2022-02-14 17:16:27 -05:00
Vijay Budhram c9061e32ec
Merge pull request #11907 from mozilla/dependabot/npm_and_yarn/storybook/addon-controls-6.4.18
chore(deps-dev): bump @storybook/addon-controls from 6.4.14 to 6.4.18
2022-02-14 11:09:24 -05:00
Vijay Budhram dde60bb017
Merge pull request #11928 from mozilla/dependabot/npm_and_yarn/knex-1.0.3
chore(deps): bump knex from 1.0.2 to 1.0.3
2022-02-14 11:00:45 -05:00
Vijay Budhram d5dd7c138c
Merge pull request #11929 from mozilla/dependabot/npm_and_yarn/stripe-8.202.0
chore(deps): bump stripe from 8.200.0 to 8.202.0
2022-02-14 11:00:06 -05:00
fxa-bananafox[bot] 1c7f1da1c3
chore(deps): updated yarn.lock 2022-02-14 15:38:30 +00:00
fxa-bananafox[bot] 1ac1c9aa7c
chore(deps): updated yarn.lock 2022-02-14 15:38:22 +00:00
dependabot[bot] 9773210301
chore(deps): bump knex from 1.0.2 to 1.0.3
Bumps [knex](https://github.com/knex/knex) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits/1.0.3)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 15:38:20 +00:00
dependabot[bot] 6c2767c028
chore(deps): bump stripe from 8.200.0 to 8.202.0
Bumps [stripe](https://github.com/stripe/stripe-node) from 8.200.0 to 8.202.0.
- [Release notes](https://github.com/stripe/stripe-node/releases)
- [Changelog](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/stripe/stripe-node/compare/v8.200.0...v8.202.0)

---
updated-dependencies:
- dependency-name: stripe
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 15:38:11 +00:00
Lisa Chan c49a570f1f
fix(auth-server): FXA-4523 - revise email template stories (#11831)
Closes: #11830
2022-02-11 16:21:20 -05:00
Lauren Zugai 31061b0712
refactor(auth): Remove MJML feature flags, remove verifySecondary & logic, remove old templates (#11862)
Because:
* Our new MJML emails are being pushed to prod and we no longer need the MJML features flags or old templates. While working through these we also realized `verifySecondary` is never sent, and `verifySecondaryCode` is always sent instead.

This commit:
* Removes MJML feature flags
* Combs through `emails.js` and adds all missing tests to `mjml-emails.ts`, deletes `emails.js`, renames `mjml-emails.ts` to `emails.ts`
* Removes verifySecondary template and most logic around it, preferring verifySecondaryCode
* Bumps all email template versions up by 1
* Removes all email templates, but leaves the templates dir and templates/index.js renderer file since SMS still needs it for now

fixes #10032
2022-02-11 14:42:35 -06:00
Lisa Chan dbc29ebdbb
fix(auth-server): subscriptionUpgrade email includes variable when value is missing (#11912)
Closes: #11848
2022-02-11 13:41:25 -05:00
Lauren Zugai a57a4e3020
Merge pull request #11914 from mozilla/add-mailer-env-vars
feat(mailer): Add maxConnection and maxMessages env vars, re-enable isMetricsEnabled oauth client db calls
2022-02-11 12:39:59 -06:00
Lauren Zugai 6028093a08
feat(mailer): Add maxConnection and maxMessages env vars, re-enable isMetricsEnabled oauth client db calls
Because:
* We want these values to be configurable for easy changes on the ops side to investigate recent auth-server performance problems
* We temporarily disabled db calls for oauth clients to see if that was the problem, but it hasn't changed much

This commit:
* Creates SMTP_MAX_MESSAGES and SMTP_MAX_CONNECTIONS env vars with defaults to what we currently have
* Removes the previously commented out line temporarily disabling db calls for oauth clients
2022-02-11 11:06:05 -06:00
Ben Bangert a079e2edbd
Merge pull request #11857 from mozilla/train-225
Train 225.2
2022-02-11 08:53:44 -08:00
Vijay Budhram b78c50ae66
Merge pull request #11899 from mozilla/fxa-4584
fix(settings): Move change password to under security section in settings
2022-02-10 12:20:30 -05:00
Vijay Budhram 9fb8b24400
Merge pull request #11906 from mozilla/dependabot/npm_and_yarn/nestjs/schematics-8.0.6
chore(deps-dev): bump @nestjs/schematics from 8.0.5 to 8.0.6
2022-02-10 11:26:37 -05:00
Vijay Budhram 7cfd07eb2d
Merge pull request #11908 from mozilla/dependabot/npm_and_yarn/sharp-0.30.1
chore(deps): bump sharp from 0.29.3 to 0.30.1
2022-02-10 11:25:32 -05:00
fxa-bananafox[bot] 9f60031942
chore(deps): updated yarn.lock 2022-02-10 06:40:32 +00:00
dependabot[bot] 9e9c098ab7
chore(deps): bump sharp from 0.29.3 to 0.30.1
Bumps [sharp](https://github.com/lovell/sharp) from 0.29.3 to 0.30.1.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](https://github.com/lovell/sharp/compare/v0.29.3...v0.30.1)

---
updated-dependencies:
- dependency-name: sharp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 06:40:20 +00:00
fxa-bananafox[bot] f5d13baf5d
chore(deps): updated yarn.lock 2022-02-10 06:40:09 +00:00
fxa-bananafox[bot] d8552608c2
chore(deps): updated yarn.lock 2022-02-10 06:40:01 +00:00
dependabot[bot] 7f6c49d0fe
chore(deps-dev): bump @storybook/addon-controls from 6.4.14 to 6.4.18
Bumps [@storybook/addon-controls](https://github.com/storybookjs/storybook/tree/HEAD/addons/controls) from 6.4.14 to 6.4.18.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.18/addons/controls)

---
updated-dependencies:
- dependency-name: "@storybook/addon-controls"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 06:39:59 +00:00
dependabot[bot] 93cc139d39
chore(deps-dev): bump @nestjs/schematics from 8.0.5 to 8.0.6
Bumps [@nestjs/schematics](https://github.com/nestjs/schematics) from 8.0.5 to 8.0.6.
- [Release notes](https://github.com/nestjs/schematics/releases)
- [Changelog](https://github.com/nestjs/schematics/blob/master/.release-it.json)
- [Commits](https://github.com/nestjs/schematics/compare/8.0.5...8.0.6)

---
updated-dependencies:
- dependency-name: "@nestjs/schematics"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 06:39:49 +00:00
Barry Chen b829f15662
fix(subscriptions): stop cancellation email on failed PayPal payment (#11871)
Because:
 - when a PayPal user's initial payment failed while subscribing to a
   product through the "passwordless" flow, we erroneously send a
   cancellation email to the user, who hasn't successfully created an
   account or subscription yet

This commit:
 - skip the email if the subscription is a PayPal based one and the user
   isn't verified (has set a password)
2022-02-09 16:46:34 -06:00
Vijay Budhram 9b6f46c8f3
Merge pull request #11885 from mozilla/fxa-4312
feat(google): Add backend support to disconnect google linked account
2022-02-09 15:59:32 -05:00
Dan Schomburg 7b1c62eaab
patch(auth): Fixes build error in CI. (#11903)
This commit:
- Addresses build error in CI

Because:
- The command `yarn workspace fxa-auth-server build` was failing
- Switching to require statements in redis.js file clears typescript error saying the 'default export was not defined'.
2022-02-09 12:32:23 -08:00
Vijay Budhram 97686e4151
feat(google): Add backend support to disconnect goolge linked account 2022-02-09 15:32:17 -05:00
Vijay Budhram 932c998699
fix(settings): Move change password to under security section in settings 2022-02-09 14:39:27 -05:00
Ivo Plamenac 02aeb5165b
feat(payments): remove Coupons Feature Flag (#11576)
Because:

* We no longer need the ability to hide coupons

This commit:

* Removes the feature flag that hides the coupon feature

Closes #10853
2022-02-09 11:35:44 -08:00
Dan Schomburg 6b89206ffa
feature(shared,auth,admin): Refactor attached-clients so routines can be shared with admin panel (#11817)
Because:
-The admin panel needs access to the actual list of attached clients, and the logic to do this already exists in the auth server.

This commit:
- Introduces fxa-shared/connected-services/factories.ts. Classes therein contain the logic for building and merging attached clients from sessions, devices, and oauthClients.
- Introduces  fxa-shared/connected-services/accessors.ts. Classes therein contain the ‘accessors’ layer through which any database (Redis or MySql) interactions flow. Note that these are base classes and are designed to be extended from. Currently the OauthDB class and the OAuthRedisClass in fxa-auth-server are extensions. As more shared functionality is required, code can be hoisted to these base classes to provide shared functionality.
- Introduces fxa-shared/connected-services/formatters. Classes therein manipulate the state of attached clients so that various fields are formatted properly.
- Introduces fxa-shared/util.ts. This is a catch all for auxiliary methods that were generally useful and used in more than one place.
- Introduces fxa-shared/models. This is a catch all for types used by the connected services code. Hopefully this gives it more structure. Note that there are still some places where output format is defined. A follow up item has been added to supply types for all database structures.
- Introduces fxa-shared/auth. This holds a hash implementation that lived in the auth server in place that it can now be used more generally. Note that, all references to this in fxa-auth-server should be updated now.
- Introduces fxa-shared/db/redis.ts which provides a base class for Redis interactions that can be extended and shared across packages. Similarly to fxa-shared/connected-services/accessors.ts this class is designed to be extended from.
- Updates fxa-shared/db/mysql.ts to be more typescript-like. This means that MySqlStoreShared is now a proper class.
- Adds tests in fxa-shared/test/connected-services and get all code coverage into a green status.
- Updates fxa-shared/db/config.ts to include the ability to produce build configs.
- Fixes issue with ‘openHandles’ which was detected by jest in the admin panel. There were two occurrences where open handles, which are basically hanging async operations, existed.
- There was no way to close database connections. As a result, close methods have been added to MySqlStoreShared and RedisStoreShared which make sure underlying connections are terminated. During test tear down these close() calls are now invoked and waited on.
- In the redis implementation, there were lots of Promise.race invocacations, where a redis call was being raced against a timeout. The issue here was that nothing cancelled the setTimeouts, thereby leaving a bunch of hanging tasks. A small abstraction was added so that these timeouts could be cancelled.
- Updates the admin panel account.resolver to incorporate the ‘attached clients’ that are now accessible via fxa-shared/connected-services.
- Updates the admin panel GraphQL model to include support for attache clients.
- Standardize the config in the admin panel and relies on fxa-shared to produce the DB config thereby ensuring it’s consistent.
- Updates tests in the admin panel to ensure the database service is still accessible, and the ‘connected services db’ can be accessed. This required adding more tables to the  testAdmin database that gets constructed during testing.
- Added new table declarations to fxa-shared/test/db/models/auth.
- Other small tasks included making sure the source code terms were present in code files, and running TypeScript hero to make sure import statements were organized.

Closes: #11090
2022-02-09 10:20:21 -08:00
Vijay Budhram 920fc8eb8f
fix(google): Delete linked accounts when user deletes FxA account 2022-02-09 13:06:55 -05:00
Vijay Budhram d24ef4bbe3
Merge pull request #11893 from mozilla/dependabot/npm_and_yarn/keyv-4.1.1
chore(deps): bump keyv from 4.1.0 to 4.1.1
2022-02-09 10:26:15 -05:00
fxa-bananafox[bot] 880d2a87c7
chore(deps): updated yarn.lock 2022-02-09 15:01:03 +00:00
dependabot[bot] cacc24d8b4
chore(deps): bump keyv from 4.1.0 to 4.1.1
Bumps [keyv](https://github.com/jaredwray/keyv) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/jaredwray/keyv/releases)
- [Commits](https://github.com/jaredwray/keyv/commits)

---
updated-dependencies:
- dependency-name: keyv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-09 15:00:50 +00:00
dependabot[bot] b955eb8094
chore(deps): bump knex from 1.0.1 to 1.0.2 (#11892)
* chore(deps): bump knex from 1.0.1 to 1.0.2

Bumps [knex](https://github.com/knex/knex) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): updated yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fxa-bananafox[bot] <70546514+fxa-bananafox[bot]@users.noreply.github.com>
2022-02-09 08:58:39 -06:00
Lisa Chan f2d1f282bb
fix(admin-panel): FXA-4231 - missing Device type for desktop sessions (#11884)
Closes: #11089
2022-02-09 09:08:18 -05:00
Reino Muhl 058a7fd071
fix(subscriptions): allow zero dollar invoices (#11719)
* fix(subscriptions): allow zero dollar invoices
Because:

* For invoices where  the amount due is less than Stripe minimums, the
  subscription is successfully created, however the user is shown an
  error message on completion. This applies to both Stripe and PayPal.

This commit:

* Updates the PayPal zero amount invoice logic.
* Updates the Stripe logic not to expect a payment intent.

Closes #11573
2022-02-08 22:24:54 -05:00
Ben Bangert 6e1cee3e40
Merge pull request #11878 from mozilla/dependabot/npm_and_yarn/type-cacheable/ioredis-adapter-10.0.3
chore(deps): bump @type-cacheable/ioredis-adapter from 10.0.2 to 10.0.3
2022-02-08 09:59:07 -08:00
Ben Bangert 469242cf89
Merge pull request #11822 from mozilla/dependabot/npm_and_yarn/nestjs/core-8.2.6
chore(deps): bump @nestjs/core from 8.2.4 to 8.2.6
2022-02-08 09:37:00 -08:00
fxa-bananafox[bot] a7789ad5e1
chore(deps): updated yarn.lock 2022-02-08 06:31:39 +00:00
dependabot[bot] b084b11529
chore(deps): bump @type-cacheable/ioredis-adapter from 10.0.2 to 10.0.3
Bumps [@type-cacheable/ioredis-adapter](https://github.com/joshuaslate/type-cacheable) from 10.0.2 to 10.0.3.
- [Release notes](https://github.com/joshuaslate/type-cacheable/releases)
- [Changelog](https://github.com/joshuaslate/type-cacheable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/joshuaslate/type-cacheable/compare/@type-cacheable/ioredis-adapter@10.0.2...@type-cacheable/ioredis-adapter@10.0.3)

---
updated-dependencies:
- dependency-name: "@type-cacheable/ioredis-adapter"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 06:31:23 +00:00
Lauren Zugai 83e3832556
Merge pull request #11874 from mozilla/issues/11861
fix(emails): Add conditional around payment method
2022-02-07 17:16:57 -06:00
Lauren Zugai 3fd6197ad9
fix(emails): Add conditional around payment method
Because:
* cardType and lastFour are undefined when the user pays for the entire cost with a coupon

This commit:
* Checks for cardType and lastFour truthiness before displaying them
2022-02-07 14:53:59 -06:00
Bianca Danforth 9684eeb7c8
chore(docs): Replace erroneous 225.2 section in fxa-content-server changelog
Because:

* 225.2 didn't have any patches for the content-server
* Some commit hashes are different relative to what's in main, which may have thrown the release script off.

This commit:

* Replace the redundant section, which are commits from 225.1 with a "No changes." section.

Closes # No issue
2022-02-07 11:26:48 -05:00
dependabot[bot] 1a199eb163
chore(deps-dev): bump @storybook/addon-docs from 6.4.14 to 6.4.18 (#11858)
* chore(deps-dev): bump @storybook/addon-docs from 6.4.14 to 6.4.18

Bumps [@storybook/addon-docs](https://github.com/storybookjs/storybook/tree/HEAD/addons/docs) from 6.4.14 to 6.4.18.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.4.18/addons/docs)

---
updated-dependencies:
- dependency-name: "@storybook/addon-docs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): updated yarn.lock

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fxa-bananafox[bot] <70546514+fxa-bananafox[bot]@users.noreply.github.com>
2022-02-07 09:55:36 -06:00
Ben Bangert 6034e78d40
Release 1.225.2 2022-02-04 17:08:20 -08:00
Lisa Chan 03e921450d
fix(auth-server): subplat email images are at 100% width using the Mail app (#11840) 2022-02-04 18:15:47 -06:00
Ben Bangert cb47d5bdfc
Merge pull request #11856 from mozilla/train-225-uplift-2 2022-02-04 16:08:44 -08:00