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

PRO-1800 - set powertrain from device definition #183

Merged
merged 7 commits into from
Aug 16, 2023

Conversation

rhvivancoeffio
Copy link
Contributor

Proposed Changes

Impacted Routes

Caveats

@linear
Copy link

linear bot commented Aug 15, 2023

PRO-1800 Devices api user_device powertrain set from device definition

We currently set the user_device.metadata.powertrain in devices-api when it gets registered by calling NHTSA plus some logic. We want to remove this and have it be handled in the device definition side. Just set the powertrain based on what the device definitions comes back with for the powertrain.

Only tricky thing is that since the user device usually gets created after a vin decode call, we want to make sure the powertrain is coming set from that decode grpc call. If there is not Powertrain in Device Definitions, log a warning.

Copy link
Member

@JamesReate JamesReate left a comment

Choose a reason for hiding this comment

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

looks good but don't merge yet

@rhvivancoeffio rhvivancoeffio merged commit 75a76df into main Aug 16, 2023
2 checks passed
@rhvivancoeffio rhvivancoeffio deleted the devices-api-powertrain-set-from-dd branch August 16, 2023 18:57
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.

3 participants