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

feat: move preflight logic into webpush validation #772

Merged
merged 1 commit into from
Jan 9, 2017

Conversation

bbangert
Copy link
Member

@bbangert bbangert commented Jan 6, 2017

The preflight logic only applies to webpush, and is now included in
the validation up-front to avoid a return trip immediately to the
thread-pool.

Closes #765

The preflight logic only applies to webpush, and is now included in
the validation up-front to avoid a return trip immediately to the
thread-pool.

Closes #765
@codecov-io
Copy link

Current coverage is 100% (diff: 100%)

Merging #772 into master will not change coverage

@@           master   #772   diff @@
====================================
  Files          46     46          
  Lines        9258   9232    -26   
  Methods         0      0          
  Messages        0      0          
  Branches        0      0          
====================================
- Hits         9258   9232    -26   
  Misses          0      0          
  Partials        0      0          

Powered by Codecov. Last update a622bf4...5e353c0

# Propagate the looked up user data back out
d["user_data"] = result

def _validate_webpush(self, d, result):
settings = self.context["settings"] # type: AutopushSettings
log = self.context["log"] # type: Logger
Copy link
Member

Choose a reason for hiding this comment

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

this Logger is ThreadedValidate's. I'm not sure we should bother passing it around, it's not too useful of a Logger source. WebPushNotification could have its own

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, though it is a validate's log messages so that seems ok. We don't use the origin log name anyways.

@bbangert bbangert merged commit d963d18 into master Jan 9, 2017
@bbangert bbangert deleted the feat/issue-765 branch January 9, 2017 20:34
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