-
Notifications
You must be signed in to change notification settings - Fork 13k
chore: prune the token whenever we receieve a 403 #33885
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
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: f0edc99 The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #33885 +/- ##
============================================
+ Coverage 59.17% 75.00% +15.82%
============================================
Files 2822 517 -2305
Lines 68069 22757 -45312
Branches 15136 5523 -9613
============================================
- Hits 40283 17069 -23214
+ Misses 24956 5025 -19931
+ Partials 2830 663 -2167
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Proposed changes (including videos or screenshots)
Whenever we try to send a push notification to a stale token, we get the SENDER_ID_MISSMATCH, and we should prune it from our database so we don't keep trying to send to those tokens.
This happens when the user has to regenerate their credentials, which had to happen in order to migrate the legacy push notification provider to FCM.
Here the approach is similar to: thingsboard/thingsboard#10679
Related issue on that codebase: thingsboard/thingsboard#10602 (comment)
Issue(s)
Steps to test or reproduce
Further comments
CONN-376