-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add device detection hostcall #330
Conversation
This is closely patterned on the geolocation hostcall. The new test that executes the hostcall needs a new SDK, so this will be followed by a separate commit that comments it out. That can be reverted once the new SDK is available.
These tests depend on a new SDK for the device_detection hostcall, comment them out for now. This is in its own commit to make it easy to revert.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small copypaste fix, then ready to go
@@ -1,13 +1,13 @@ | |||
use fastly::{Backend, Error, Request}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, the formatting step in CI must be missing these if rustfmt changed these despite previous successful commits. Something to worry about later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
* Add hostcall for device_detection. This is closely patterned on the geolocation hostcall. The new test that executes the hostcall needs a new SDK, so this will be followed by a separate commit that comments it out. That can be reverted once the new SDK is available. * device_detection: Temporarily comment out tests that need new SDK. These tests depend on a new SDK for the device_detection hostcall, comment them out for now. This is in its own commit to make it easy to revert. * Minor changes from cargo fmt. * Fix copy/pasted identifier.
Add hostcall for device detection, closely patterned on geolocation.
The test that executes the hostcall needs a new SDK, so a second commit comments them out for now. The tests pass locally when built with the new SDK.