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

15 Коммитов

Автор SHA1 Сообщение Дата
Danny Coates 1dd1b038d4
refactor(config): replace 127.0.0.1 with localhost
why, after all these years?

because there's a few annoying cases where the loopback
makes dev harder. When you try to test a flow from a not
local machine, like a tv, mobile device, or a saucelabs
proxy session. With localhost it's easy enough to forward
but loopback not so much

enough is enough
2020-04-15 13:55:42 -07:00
Ben Bangert d7da2deaf9
refactor(event-broker): update deps and move to src
Because:

* Not using a src/ dir meant that ts-node-dev couldn't be used and
  other tools that worked directly against TypeScript souce since
  their source location was not at the same depth as the compiled
  Javascript.
* Dependencies were stale.

This commit:

* Moves the TypeScript source into a src/ directory.
* Updates all the dependencies, with minor tweaks for the dep updates.
2020-03-09 19:56:04 -07:00
Ben Bangert 1e266b2172
feat(event-broker): telegraf opts & sentry info
Because:

* Sentry was not including the release version.
* hot-shots defults to statsd, and telegraf has some options we
  may want to use at some point.

This commit:

* Includes the Sentry release version.
* Uses telegraf format for hot-shots metrics reporting.

Closes #3285
2019-11-08 18:59:21 -08:00
Ben Bangert 53b509aab0
refactor(event-broker): use esModuleInterop
Because:

* esModuleInterop is default for new projects as its been generally
  recommended for use.

This commit:

* Turns on esModuleInterop and updates imports as needed.
2019-11-08 17:21:38 -08:00
John Morrison ca7a03d7bc
fix(events): set default `metrics.prefix` to have trailing `.` 2019-10-30 20:13:09 -07:00
Ben Bangert 1e00dc4aba
feat: add queue prefix config and fix login validation
Because:

* The queue prefix is not configurable and FxA reuses client ID's in
  the dev/stage environment.
* Login messages don't always include a service property.

This commit:

* Allows the queue prefix to be configured.
* Makes the service property optional for login messages.

Closes #2819
2019-10-09 17:10:14 -07:00
Ben Bangert 5a4ebcab61
feat(event-broker): add performance metrics
Closes #739
2019-09-19 14:02:15 -07:00
Ben Bangert 150df6ab5d
feat(event-broker): add config flag to allow capability check to fail
Closes #2363
2019-09-04 08:30:48 -07:00
Ben Bangert c438e9b7d7
fix(event-broker): fix Query.select and event-broker startup issues
Issue #1599

Closes #1586
2019-06-24 15:42:19 -07:00
Ben Bangert 660aa3293c
feat(event-broker): use firestore collection prefix
Closes #1557
2019-06-24 15:13:29 -07:00
Ben Bangert c1cf036334
feat: add proxy for RPs and integration test utils
Closes #1269
2019-06-24 09:34:44 -07:00
Ben Bangert 90d4bf7533
feat(event-broker): add GCP pub/sub storing of subscription changes
Also adds:
* Caching abstraction for automatically refreshed data.
* Cached services for webhook urls and the client capabilities.
* Dockerfile for CI integration.

Closes #1268, #1267
2019-06-05 08:34:08 -07:00
Ben Bangert 095360cbaf
feat(event-broker): add database tests
Adds local google cloud pubsub/firestore emulator and rigs tests into
it.

Issue #1267

Closes #1266
2019-05-29 07:39:13 -07:00
Ben Bangert c940100d26
feat: initial Typescript based fxa event broker
Implements the message receiving portion of the event broker in a new
TypeScript based Node app.

Closes #682
2019-05-28 14:35:49 -07:00
Phil Booth dc8c0b7f6c
feat(broker): copy settings-related types from fxa-email-service 2019-04-11 13:16:08 +01:00