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

0262 New vehicle data SeatOccupancy #1866

Conversation

yoooriii
Copy link
Contributor

@yoooriii yoooriii commented Dec 5, 2020

Fixes #1487

This PR is ready for review.

Risk

This PR makes minor API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior

Unit Tests

2 new tests added to test newly introduced structures

  • SDLSeatOccupancySpec
  • SDLSeatStatusSpec

Core version / branch / commit hash / module tested against: Core: sdl_0262_new_vehicle_data_seatOccupancy
HMI name / version / branch / commit hash / module tested against: HMI: sdl_0262_new_vehicle_data_seatOccupancy

Summary

Added new vehicle data SeatOccupancy to know if a vehicle seat is occupied and belted.
New structures are:

  • SDLSeatOccupancy
  • SDLSeatStatus
Breaking Changes

No breaking changes

CLA

@codecov
Copy link

codecov bot commented Dec 5, 2020

Codecov Report

Merging #1866 (aa3ae61) into develop (453d47f) will decrease coverage by 0.05%.
The diff coverage is 94.50%.

@@             Coverage Diff             @@
##           develop    #1866      +/-   ##
===========================================
- Coverage    84.75%   84.69%   -0.06%     
===========================================
  Files          422      420       -2     
  Lines        21156    21058      -98     
===========================================
- Hits         17931    17836      -95     
+ Misses        3225     3222       -3     

@yoooriii
Copy link
Contributor Author

yoooriii commented Dec 5, 2020

Hello @atiwari9, could you please review this PR? Thank you.

@atiwari9
Copy link

atiwari9 commented Dec 6, 2020

@standa1-ford - Please take note. @yoooriii - Please tag @standa1-ford for sdl_ios reviews.

Copy link
Contributor

@standa1-ford standa1-ford left a comment

Choose a reason for hiding this comment

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

Great Work! Approved!

@yoooriii yoooriii marked this pull request as ready for review December 21, 2020 09:17
@yoooriii
Copy link
Contributor Author

yoooriii commented Jan 6, 2021

Hello @NicoleYarroch @jordynmackool. Could you review please?

@NicoleYarroch NicoleYarroch linked an issue Jan 6, 2021 that may be closed by this pull request
@NicoleYarroch NicoleYarroch added proposal Accepted SDL Evolution Proposal rpc Relating to the RPC layer labels Jan 6, 2021
Copy link
Contributor

@joeljfischer joeljfischer left a comment

Choose a reason for hiding this comment

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

You are also missing changes to VehicleDataManager.swift

SmartDeviceLink/public/SDLGetVehicleData.m Outdated Show resolved Hide resolved
SmartDeviceLink/public/SDLGetVehicleDataResponse.m Outdated Show resolved Hide resolved
SmartDeviceLink/public/SDLOnVehicleData.m Outdated Show resolved Hide resolved
SmartDeviceLink/public/SDLSubscribeVehicleData.m Outdated Show resolved Hide resolved
SmartDeviceLink/public/SDLUnsubscribeVehicleData.m Outdated Show resolved Hide resolved
yoooriii and others added 2 commits January 15, 2021 12:21
…review-2 (remove assign self from init: self=[self initWww] to suppress warnings)
@yoooriii
Copy link
Contributor Author

Hello @joeljfischer. I have updated the PR. Could you please confirm it is ok ? Thank you.

Note: I had a few warnings like this: ${}/SDLUnsubscribeVehicleData.m:40:13: Although the value stored to 'self' is used in the enclosing expression, the value is never actually read from 'self' so I had to remove self= assignment from init methods.

Copy link
Contributor

@FrankElias77 FrankElias77 left a comment

Choose a reason for hiding this comment

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

  • PR Description tags the wrong issue number. (Fixes 0262 New vehicle data SeatOccupancy #1866)
  • SDLMaxProxyRPCVersion property in SDLGlobals.m should be set to 7.1.0
  • Warning in Swift example app. function getAllVehicleData implemented a deprecated init

@joeljfischer
Copy link
Contributor

Also note that there are merge conflicts on this PR

@jordynmackool
Copy link
Contributor

@yoooriii please see the review feedback from the Livio team above. Once the comments are addressed please tag @FrankElias77 and he can re-review.

Thanks!

…this, 2 conflicts in SmartDeviceLink-iOS.xcodeproj/project.pbxproj resolved (accepted both A+B)
@yoooriii
Copy link
Contributor Author

  • PR Description tags the wrong issue number. (Fixes 0262 New vehicle data SeatOccupancy #1866)
  • SDLMaxProxyRPCVersion property in SDLGlobals.m should be set to 7.1.0
  • Warning in Swift example app. function getAllVehicleData implemented a deprecated init

All fixed.

@yoooriii
Copy link
Contributor Author

Hello @FrankElias77. I have already fixed the PR. Could you please re-review? Thank you.

@yoooriii
Copy link
Contributor Author

Also note that there are merge conflicts on this PR

'develop' branch merged, conflicts resolved.

@yoooriii yoooriii requested a review from FrankElias77 January 26, 2021 23:22
Copy link
Contributor

@FrankElias77 FrankElias77 left a comment

Choose a reason for hiding this comment

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

@yoooriii SDLSubscribeVehicleDataSpec is missing one init function can you add it please

@yoooriii
Copy link
Contributor Author

Hello @FrankElias77. I have updated the PR, could you please proceed? Thank you.

@yoooriii yoooriii requested a review from FrankElias77 February 2, 2021 11:11
@yoooriii
Copy link
Contributor Author

yoooriii commented Feb 2, 2021

Hello @FrankElias77. I have updated the PR and also I merged develop into is so now unit tests work well. Could you please proceed? Thank you.

@NicoleYarroch NicoleYarroch merged commit b2f40f3 into smartdevicelink:develop Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Accepted SDL Evolution Proposal rpc Relating to the RPC layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SDL 0262] New vehicle data SeatOccupancy
7 participants