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

Add device detection hostcall #330

Merged
merged 5 commits into from
Nov 7, 2023
Merged

Conversation

silentbicycle
Copy link
Contributor

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.

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.
Copy link
Contributor

@acfoltzer acfoltzer left a 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

lib/src/config/unit_tests.rs Outdated Show resolved Hide resolved
@@ -1,13 +1,13 @@
use fastly::{Backend, Error, Request};
Copy link
Contributor

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

Copy link
Contributor

@acfoltzer acfoltzer left a comment

Choose a reason for hiding this comment

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

thank you!

@silentbicycle silentbicycle merged commit c4531d3 into main Nov 7, 2023
7 checks passed
@silentbicycle silentbicycle deleted the sv/add-device-detection-hostcall branch November 7, 2023 18:29
cmckendry pushed a commit to 1stdibs/Viceroy that referenced this pull request Feb 8, 2024
* 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.
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.

None yet

2 participants