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

27 Коммитов

Автор SHA1 Сообщение Дата
Phil Booth d7bbd44d6d
fix(redis): fix broken zpoprangebyscore argument-marshalling 2019-03-27 20:08:33 +00:00
Phil Booth 9c57df4dfb
feat(redis): implement atomic zpoprangebyscore method for sorted sets 2019-03-27 09:05:48 +00:00
Phil Booth 7c8a7a74a1
feat(redis): add methods for managing sorted sets 2019-03-21 20:05:12 +00:00
Phil Booth a98b6d478c
fix(feature-flags): ensure terminate closes redis connections too 2019-03-14 16:37:58 +00:00
Phil Booth 7f181de4c9
refactor(feature-flags): validate flags using an external schema 2019-03-14 16:37:58 +00:00
Phil Booth 0d084bde07
refactor(feature-flags): remove the LaunchDarkly abstraction 2019-03-14 16:37:58 +00:00
Phil Booth b4ac4d1bfd
feat(scripts): write a script for managing feature flags in redis 2019-03-14 16:37:57 +00:00
Phil Booth 66e28e345a
feat(feature-flags): implement feature-flagging with redis 2019-03-13 16:42:06 +00:00
Phil Booth d2bdce452e
feat(feature-flags): implement LaunchDarkly abstraction 2019-03-05 12:05:53 +00:00
Phil Booth 77aebdcfad
feat(feature-flags): add a skeleton api to return feature flag state 2019-03-05 11:43:15 +00:00
Phil Booth cb49e9dee2
refactor(redis): extract the auth server's redis abstraction 2019-03-04 15:49:37 +00:00
Shane Tomlinson 420fcdcc99
fix(metrics): Add an entry to EVENT_PROPERTIES for `notify` group.
I missed this yesterday.
2019-02-06 07:08:39 +00:00
Shane Tomlinson dcca6e958b
feat(metrics): Add the `fxa_notify` group.
This will be used for generic notifications, such as when
a user clicks on a "Download Firefox" button from the
"Upgrade Firefox" screen.

issue mozilla/fxa-content-server#6895
2019-02-05 18:38:47 +00:00
Shane Tomlinson c39cdacd2c
revert(metrics): Revert "feat(metrics): Use the service name or client_id as the entrypoint if none given."
This reverts commit 6f2792b2c8.
2019-01-31 20:35:23 +00:00
Shane Tomlinson 6f2792b2c8
feat(metrics): Use the service name or client_id as the entrypoint if none given.
fixes mozilla/fxa-content-server#6757
2019-01-18 10:23:36 +00:00
Phil Booth a3dbf6130e
fix(l10n): ensure the correct language is selected in localizeTimestamp
The test of supportedLanguages.indexOf was mistakenly checking against 0
instead of -1. This meant that the first item in our list of supported
languages, arabic, was never being matched and other, unsupported ones
were being matched.

Furthermore, the accept-languages package assumes it is initialised with
an array of languages that are sorted in order of precedence. This meant
our defaultLanguage option was effectively being ignored because it was
not at the start of the list.

This change fixes both issues and tweaks the tests so that they'll fail
if either regresses in the future.
2018-09-24 14:30:43 +01:00
Ryan Kelly 84efa8cdae feat(scope): Implement shareable code for checking OAuth scopes. 2018-07-20 09:50:14 +10:00
Ryan Kelly da56913202 chore(lint): Enforce consistent semicolon style. 2018-07-19 13:39:15 +10:00
Shane Tomlinson b29f62fb08
feat(metrics): Allow a function for `event` in the fuzzy types.
If `event` in a fuzzy event is a function, the result
of the function will become the eventType. Function is passed
the `eventCategory` and `eventTarget`

ref https://github.com/mozilla/fxa-content-server/issues/6349
2018-07-11 14:44:46 +01:00
Phil Booth c06f84b61c
feat(metrics): add event properties for email sender and service
https://github.com/mozilla/fxa-shared/pull/29
r=philbooth
2018-07-09 15:12:03 +01:00
Phil Booth ccddcfd33f
refactor(metrics): pull email type definitions back up to the caller
https://github.com/mozilla/fxa-shared/pull/24
r=vbudhram
2018-05-16 18:11:24 +01:00
Vijay Budhram 94f0b6869e fix(emails): add `lowRecoveryCodesEmail` email template 2018-05-09 13:38:53 -04:00
Phil Booth d8e9379e72
feat(metrics): extract common code for emitting amplitude events
https://github.com/mozilla/fxa-shared/pull/20
r=shane-tomlinson
2018-04-09 16:00:11 +01:00
Phil Booth bb65ca64cf feat(email): define array of popular email domains (#18) r=@vladikoff 2018-04-03 09:49:35 -04:00
Phil Booth 208804ad6c chore(tests): migrate from tap to mocha+chai (#17) r=@vladikoff
Fixes #15
2018-04-03 06:39:14 -04:00
Vlad Filippov c747f2eab5 feat(l10n): add localize timestamp utility (#3) r=vbudhram 2016-08-16 15:29:30 -04:00
Vlad Filippov b11313287d feat(l10n): shared languages r=vbudhram
* feat(l10n): share the list of supported languages

* feat(l10n): export index path

* chore(docs): rename to fxa-shared
2016-08-12 20:03:14 -04:00