Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Drop unknown FCM users #197

Merged
merged 7 commits into from
Jul 27, 2020
Merged

Conversation

AzureMarker
Copy link
Contributor

Major changes:

  • If FCM says the user does not exist (404, docs), then we drop the user from the router table.
  • DbClient is now abstracted via a trait and can be mocked with MockDbClient. Mocking library documentation.

Closes #173

@jrconlin
Copy link
Member

Heh, kinda burying the lede here that this also wraps in DbClient mocking.

jrconlin
jrconlin previously approved these changes Jul 27, 2020
Copy link
Member

@jrconlin jrconlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the tests that are failing are because of the VAPID header quotes.

# Conflicts:
#	autoendpoint/src/db/client.rs
# Conflicts:
#	autoendpoint/src/db/client.rs
jrconlin
jrconlin previously approved these changes Jul 27, 2020
autoendpoint/src/db/client.rs Show resolved Hide resolved
@AzureMarker AzureMarker mentioned this pull request Jul 27, 2020
@AzureMarker AzureMarker merged commit 068f54d into master Jul 27, 2020
@AzureMarker AzureMarker deleted the fix/drop-unknown-bridge-users branch July 27, 2020 19:45
This was referenced Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drop user routing information if bridge reports 404/410 or similar error
2 participants