-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Mobile Config] Add device_types filter to stream_gateways_info #880
Conversation
a419d30
to
ef9d21a
Compare
mobile_config/src/gateway_service.rs
Outdated
tracing::debug!("fetching all gateways' info"); | ||
tracing::debug!( | ||
"fetching all gateways' info. Device types: {:?} ", | ||
request.device_types |
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.
should this debug statement come after the map below? it would debug to a vec of i32s before that conversion, no?
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.
Good catch! Fixed
.bind( | ||
device_types | ||
.iter() | ||
.map(|v| format!("\"{}\"", v)) |
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.
I assume the escaping here is required ? A note to explain why would be useful for future readers, especially given the table schema is managed outside of the oracles
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.
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.
not sure it is a better idea but you can query the field normally like this
WHERE mhi.device_type #>> '{}' = 'wifiDataOnly'
d7cd30a
to
426a489
Compare
No description provided.