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

bug: Fix GCM handling #309

Merged
merged 12 commits into from
Jun 1, 2022
Merged

bug: Fix GCM handling #309

merged 12 commits into from
Jun 1, 2022

Conversation

jrconlin
Copy link
Member

@jrconlin jrconlin commented May 19, 2022

This patch improves GCM handling, using recently discovered docs of the discontinued protocol.

POST DEPLOY NOTE:
There is currently an ignore in place for Bridge authentication error that will need to be removed.

Closes: #308

@jrconlin jrconlin requested review from pjenvey and a team May 19, 2022 15:43
autoendpoint/src/routers/fcm/client.rs Outdated Show resolved Hide resolved
autoendpoint/src/routers/common.rs Show resolved Hide resolved
autoendpoint/src/error.rs Outdated Show resolved Hide resolved
autoendpoint/src/routers/mod.rs Outdated Show resolved Hide resolved
autoendpoint/src/routes/webpush.rs Outdated Show resolved Hide resolved
autoendpoint/src/routers/fcm/client.rs Outdated Show resolved Hide resolved
autoendpoint/src/error.rs Outdated Show resolved Hide resolved
autoendpoint/src/routes/webpush.rs Outdated Show resolved Hide resolved
autoendpoint/src/routers/fcm/client.rs Outdated Show resolved Hide resolved
autoendpoint/src/routers/fcm/client.rs Outdated Show resolved Hide resolved
@jrconlin jrconlin changed the title bug: remove undeliverable user records. bug: Fix GCM handling May 23, 2022
@jrconlin jrconlin requested a review from pjenvey May 23, 2022 23:56
pjenvey
pjenvey previously approved these changes May 24, 2022
autoendpoint/src/error.rs Outdated Show resolved Hide resolved
@@ -69,7 +69,7 @@ async fn validate_webpush_user(
}

/// Drop a user and increment associated metric
async fn drop_user(uaid: Uuid, ddb: &dyn DbClient, metrics: &StatsdClient) -> ApiResult<()> {
pub async fn drop_user(uaid: Uuid, ddb: &dyn DbClient, metrics: &StatsdClient) -> ApiResult<()> {
Copy link

Choose a reason for hiding this comment

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

Out of curiosity, why is pub added here?

Copy link
Member

Choose a reason for hiding this comment

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

It was needed on an earlier version of this PR, the pub can be removed now (though it's not terribly important)

@@ -69,7 +69,7 @@ async fn validate_webpush_user(
}

/// Drop a user and increment associated metric
async fn drop_user(uaid: Uuid, ddb: &dyn DbClient, metrics: &StatsdClient) -> ApiResult<()> {
pub async fn drop_user(uaid: Uuid, ddb: &dyn DbClient, metrics: &StatsdClient) -> ApiResult<()> {
Copy link
Member

Choose a reason for hiding this comment

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

It was needed on an earlier version of this PR, the pub can be removed now (though it's not terribly important)

@jrconlin jrconlin merged commit 96cef48 into master Jun 1, 2022
@jrconlin jrconlin deleted the bug/308-appid branch June 1, 2022 15:20
@jrconlin jrconlin mentioned this pull request Jun 2, 2022
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.

Resolve outstanding issues with GCM support
3 participants