Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

fix: drop users with no router_type recorded #1065

Merged
merged 1 commit into from
Oct 28, 2017
Merged

Conversation

bbangert
Copy link
Member

Closes #1058

@codecov-io
Copy link

codecov-io commented Oct 27, 2017

Codecov Report

Merging #1065 into master will decrease coverage by 0.02%.
The diff coverage is 89.47%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1065      +/-   ##
==========================================
- Coverage   99.75%   99.73%   -0.03%     
==========================================
  Files          56       56              
  Lines        8888     8904      +16     
==========================================
+ Hits         8866     8880      +14     
- Misses         22       24       +2
Impacted Files Coverage Δ
autopush/web/webpush.py 100% <100%> (ø) ⬆️
autopush/tests/test_web_webpush.py 100% <100%> (ø) ⬆️
autopush/ssl.py 96.07% <50%> (-3.93%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d697f9...b7f667a. Read the comment docs.

@@ -54,6 +54,8 @@
# Base64 URL validation
VALID_BASE64_URL = re.compile(r'^[0-9A-Za-z\-_]+=*$')

VALID_ROUTER_TYPES = ["simplepush", "webpush", "gcm", "fcm", "apns"]
Copy link
Member

Choose a reason for hiding this comment

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

Really thought I had something like this before. There's a similar list in autopush.registration.conditional_token_check Wonder if it might make sense to have this list somewhere common and use it in both locations?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea, or heck, maybe a constants.py for the shared universal constants we end up using all over.

Copy link
Member

Choose a reason for hiding this comment

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

absolutely 👍 to a constants.py. I've got one for boto I put in __init__.py, but happy to move it in favor of just keeping version there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will open a separate PR to refactor some of the constants together.

@bbangert bbangert merged commit fa47b5c into master Oct 28, 2017
@bbangert bbangert deleted the feat/issue-1058 branch October 28, 2017 17:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants