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

18299 Коммитов

Автор SHA1 Сообщение Дата
Ben Bangert 2e7a318347
Merge pull request #6077 from mozilla/feat/issue-5987
feat(auth-server): send email on upgrade from cancelled
2020-07-29 11:56:06 -07:00
Ben Bangert 98ca2a16e0
feat(auth-server): send email on upgrade from cancelled
Because:

* We previously did not send an upgrade email if the prior subscription
  had been cancelled.

This commit:

* Sends the upgrade email if the subscription is not cancelled and was
  upgraded even if it was previously cancelled.

Closes #5987
2020-07-29 11:39:16 -07:00
Les Orchard 5397bac510
Merge pull request #6063 from mozilla/payment-server-fxa-shared-dep
fix(payments): add fxa-shared and fxa-react as CI dependencies for fxa-payments-server
2020-07-29 09:59:06 -07:00
Les Orchard dc77f5c3b8
fix(payments): add fxa-shared and fxa-react as CI dependencies for fxa-payments-server 2020-07-29 12:49:44 -04:00
Danny Coates 7be1e7be0e
Merge pull request #6069 from mozilla/abort-controller
feat(auth-client): add abort-controller support to server env
2020-07-29 07:37:01 -07:00
Jody Heavener 4b80ae3de5
chore(releases): add missing CHANGELOG files, mod release script to update them
Because:

- I noticed we were missing a few CHANGELOG.md files in our packages
- We were also missing entries for a few packages to update the CHANGELOG files in the release script

This commit:

- Add the files
- Update the script
2020-07-29 10:20:20 -04:00
Jody Heavener c872d3ef65
Merge pull request #6043 from mozilla/jh/6017/handle-aet-update-fail
feat(aet): handle generateEcosystemAnonId update failure
2020-07-28 23:45:54 -04:00
Jody Heavener ff592f0de1
feat(aet): handle generateEcosystemAnonId update failure
Because:

- When generateEcosystemAnonId calls updateEcosystemAnonId it can fail with a 412 error, which means we tried to update the anon id but another client beat us to it. We need to handle this scenario.

This commit:

- When updateEcosystemAnonId fails in this method, check if it's a 412 error, and retrieve the existing anon id from the auth server to store on the account instead
2020-07-28 22:43:48 -04:00
Jody Heavener f8247009d4
Merge pull request #6062 from mozilla/jh/6031/broken-profile-aet-post
fix(profile): aet call to auth server should be put, not get
2020-07-28 22:38:49 -04:00
Dave Justice 78d0ce89df
Merge pull request #6068 from mozilla/5351-aet-metrics
bug(aet): Add logging to profile-server get anon_id route
2020-07-28 22:22:09 -04:00
Jody Heavener 316dd5d770
fix(profile): aet call to auth server should be put, not get
Because:

- We were GETing to the auth server '/account/ecosystemAnonId' endpoint, when it should be PUTing

This commit:

- Fixes that, adds test to assert call happens
2020-07-28 22:07:06 -04:00
Danny Coates 9f105a4f9c
feat(auth-client): add abort-controller support to server env
because we want to be able to timeout requests on the server side as well

feat(auth-client): make auth-client request timeout configurable

because server timeouts should be lower than client ones
2020-07-28 17:55:04 -07:00
Jared Hirsch a571fcc826
bug(aet): Add logging to profile-server get anon_id route
Fixes #5351
2020-07-28 17:41:39 -07:00
Danny Coates 48d46c591c
Merge pull request #6067 from mozilla/stayin-alive
feat(auth-client): set keepAlive on globalAgent
2020-07-28 16:31:21 -07:00
Danny Coates b7f7a39b43
feat(auth-client): set keepAlive on globalAgent
because it'll help server clients not waste tcp connections and dns lookups
2020-07-28 15:31:08 -07:00
Danny Coates ec270f2635
Merge pull request #6066 from mozilla/l10000000ng-cat
fix(payments): filter "synthetic" locales out of the fetch list
2020-07-28 15:14:03 -07:00
Danny Coates bd0783199e
Merge pull request #5847 from clouserw/dependabot
Enable dependabot
2020-07-28 14:19:05 -07:00
Danny Coates 3c1e650de0
fix(payments): filter "synthetic" locales out of the fetch list
because they don't exist on the server, so create useless 404s

fixes #6048
2020-07-28 14:07:25 -07:00
Barry Chen ec2454f650
Merge pull request #6060 from chenba/2318-update-subs-title
chore(subscriptions): use just "Subscriptions"
2020-07-28 15:00:09 -05:00
Barry Chen 56ecd40afc
chore(subscriptions): use just "Subscriptions"
Because:
 - these mocks https://zpl.io/bAWMO9B

This commit:
 - change "Subscriptions & Payments" to just "Subscriptions"
2020-07-28 14:39:07 -05:00
Les Orchard 29f7bc3ff6
Merge pull request #6053 from mozilla/6005-download-tos-link
feat(payments): Add "Download Terms" link to terms and privacy component
2020-07-28 10:59:02 -07:00
Vijay Budhram 6bb03e7ec1
Merge pull request #6059 from mozilla/train-181-uplift2
Train 181 uplift
2020-07-28 13:47:49 -04:00
Vijay Budhram 46b0f8787a
Merge branch 'train-181' into train-181-uplift2 2020-07-28 12:28:50 -04:00
Vijay Budhram 07ae9e8036
Release 1.181.2 2020-07-28 12:26:14 -04:00
Vijay Budhram 41f73dee49
fix(emails): Fix translation test 2020-07-28 12:11:36 -04:00
Vijay Budhram 267ef165a4
Merge branch 'main' into train-181-uplift2 2020-07-28 11:59:36 -04:00
Vijay Budhram 404f945714
Release 1.181.1 2020-07-28 11:27:16 -04:00
Vijay Budhram ad4f9b5aa6
Merge pull request #6052 from mozilla/fix-ecoid, r=@LZoog
## Because

- We don't want to use the keyfetch token the browser will use, it will throw a 401 and not start syncing

## This pull request

- If a password is specified in `generateEcosystemAnonID` use the password to reauth and attempt to get a new keyfetch token
- Updated change password to not pass a password, this will make it use the `this.canFetchKeys()` if branch if possible

## Issue that this pull request solves

Closes: https://github.com/mozilla/fxa/issues/6047
2020-07-28 10:24:10 -04:00
byrw ef8d074f4f
fix(style): add active and hover effect to the warning buttons from settings
Because:

* The warning buttons did not have an effect.

This commit:

* Change the background color from the warning buttons, when the button receives hover or active.

Closes 5658
2020-07-28 10:36:43 -03:00
Jody Heavener c24c3f2db5
Merge pull request #6044 from mozilla/jh/6018/unverified-session-aet
feat(aet): bail out of set with password if session unverified
2020-07-28 09:10:22 -04:00
Ryan Kelly 3aba145d9e
Merge pull request #6054 from mozilla/email-header-length-includes-colon-and-space; r=jodyheavener,vladikoff
fix(emails): Account for formatting chars in max email header length.
2020-07-28 11:24:43 +10:00
Les Orchard e695bc9fbf
fix(payments): de-dupe and correct some differing types between fxa-shared and fxa-payments-server Redux store 2020-07-27 20:07:54 -04:00
Ryan Kelly 80074dad8a
fix(emails): Account for formatting chars in max email header length.
Because:

* Our email headers always contain ": " separating the name and value.
* We weren't accounting for these two extra characters when enforcing
  the maximum length of a header line.

This commit:

* Ensures that the header line length calculation includes the formatting
  characters.
2020-07-28 07:43:57 +10:00
Vijay Budhram 04fa3e90aa
fix(aet): On password reset reauth to get new keyfetch token to set ecosystem anon id 2020-07-27 17:42:54 -04:00
Les Orchard 1134fac2dd
feat(payments): Add "Download Terms" link to terms and privacy component
FXA-2327
fixes #6005
2020-07-27 17:36:57 -04:00
Vijay Budhram a59bf22f73
Merge pull request #6051 from mozilla/fix-l10n-test, r=@chenba
## Because

- Translation test broke
- Surprised the text changed because the equivalent English text didn't 🤷🏽‍♂️

## This pull request

- Uses new translation text in test.

## Issue that this pull request solves

Closes: NA
2020-07-27 15:54:28 -04:00
Vijay Budhram ee696c65ae
fix(emails): Fix translation test 2020-07-27 15:08:42 -04:00
Ben Bangert eb1b1a8e86
Merge pull request #6040 from mozilla/refactor/issue-6002
refactor(auth-server): convert subscriptions to TS
2020-07-27 08:03:28 -07:00
Jody Heavener 6ee1cae528
feat(aet): bail out of set with password if session unverified
Because:

- "Using sessionReauth to get keys could potentially pose some issues if the user is attempting to come from an unverified session. FxA only allows fetching keys from sessions that are verified (ex. performed some email verification loop)."

This commit:

- Checks that the flow's session is verified, and doesn't attempt to call sessionReauth if it's not, therefor not setting the anon ID at all in this flow

Additional comment from rfk:

> We should make our best effort to generate an anon_id, but not at the expense of RP user experience. Given that we have logic in AET clients to generate placeholder ids when the real one is missing, it doesn't seem too bad to leave the non_id empty in this case and just hope the user does a verified flow some time later to fill it in.
2020-07-26 10:44:20 -04:00
John Gruen cfcf8ca8f9
Merge pull request #6032 from mozilla/intl-currencies-123done
chore(test): add non-usd flows to 123 done
2020-07-26 12:36:38 +02:00
johngruen 860c70095e
chore(test): add non-usd flows to 123 done 2020-07-26 12:16:07 +02:00
Ben Bangert b94d0c99bb
refactor(auth-server): convert subscriptions to TS
Because:

* We find edge cases and want to move our code to TypeScript.

This commit:

* Converts subscription routes from JS to TS and updates other types
  where needed.

Closes #6002
2020-07-25 12:58:46 -07:00
Les Orchard 032c8fb9bc
Merge pull request #6030 from mozilla/5832-fxa-2215-sca-payment-update
feat(payments): use SetupIntent API for SCA payment update
2020-07-24 15:51:37 -07:00
Ben Bangert 6e6514866a
Merge pull request #6026 from mozilla/refactor/issue-6000
refactor(auth-server): use type-cacheable for caching
2020-07-24 10:55:32 -07:00
Jackie Munroe 9592b42337
feat(payments): use SetupIntent API for SCA payment update
Because:

* To support SCA we must migrate to using Stripe's SetupIntent API

This commit:

* Add call to auth server to create SetupIntent
* Use secret from SetupIntent result to confirm card prior to creating a subscription

Closes #5832

Co-authored-by: Jackie Munroe <jmunroe@mozilla.com>
Co-authored-by: Les Orchard <me@lmorchard.com>
2020-07-24 13:44:43 -04:00
Barry Chen de942e3c95
Merge pull request #6034 from chenba/2324-NO-EXCLAIM-MARK
chore(emails): remove ! from sub receipt email
2020-07-24 11:59:30 -05:00
Danny Coates 0f534e80b6
Merge pull request #6038 from mozilla/send-client
chore(oauth): add Firefox Send oauth client to local config
2020-07-24 09:35:35 -07:00
Danny Coates ec822aff01
chore(oauth): add Firefox Send oauth client to local config 2020-07-24 09:05:37 -07:00
Barry Chen bad8a59a8a
chore(emails): remove ! from sub receipt email
Because:
 - !s are bad for deliverability

This commit:
 - remove the ! from the receipt email
2020-07-24 09:52:47 -05:00
Ben Bangert db20d69957
refactor(auth-server): use type-cacheable for caching
Because:

* Using a library for caching provides a nicer UX with additional
  capabilities to rolling our own.
* require() imports always resolve to any.

This commit:

* Uses type-cacheable for decorator based caching and clearing instead
  of our DIY function.
* Switches config.ts to use imports for Config type-safety and updates
  use of config for proper typing.

Closes #6000
2020-07-23 15:35:34 -07:00