-
Notifications
You must be signed in to change notification settings - Fork 243
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
[SDL 0173] - Read Generic Network Signal Data Implementation #2977
[SDL 0173] - Read Generic Network Signal Data Implementation #2977
Conversation
@atiwari9 please approve feature implementation |
Ford has reviewed and Approved the changes. Ready for Livio review |
60b281d
to
3ade2bc
Compare
...nents/application_manager/include/application_manager/policies/custom_vehicle_data_povider.h
Outdated
Show resolved
Hide resolved
...ger/rpc_plugins/sdl_rpc_plugin/src/commands/hmi/sdl_get_policy_configuration_data_request.cc
Outdated
Show resolved
Hide resolved
...c_plugins/vehicle_info_plugin/include/vehicle_info_plugin/custom_vehicle_data_manager_impl.h
Show resolved
Hide resolved
A few error flows that I found while testing
This issue seems to be tied to the following message in the Core logs, and as implied by the multiple restarts it only happens sometimes:
Edit: revised flow of issue 2 |
.../application_manager/rpc_plugins/vehicle_info_plugin/src/custom_vehicle_data_manager_impl.cc
Outdated
Show resolved
Hide resolved
.../application_manager/rpc_plugins/vehicle_info_plugin/src/custom_vehicle_data_manager_impl.cc
Outdated
Show resolved
Hide resolved
@jacobkeeler All other comments addressed |
Issue 1: SmartDeviceLinkCore.log Issue 2: SmartDeviceLinkCore.log |
Issue 1 is an HMI issue fixed in smartdevicelink/sdl_hmi@cb240f4 Issue 2: It is known SDL issue: #2282 |
@LuxoftAKutsan Issue 2 is a policy table corruption issue, which is completely unrelated to the HMI logic and #2282. Considering it is an existing issue, I will review #2501 separately, rather than including it in this feature |
@LuxoftAKutsan Are you still investigating the second issue?
|
@jacobkeeler we reproduced the issue, found the root cause. |
@jacobkeeler please see the fix for Issue 2 : Right now we are in progress of rebasing feature branch on the latest develop and resolve conflicts. Looks like all comments addressed. Please let me know if you have additional questions. |
@LuxoftAKutsan I'm fine with squashing and merging, I'd prefer to avoid force pushing before that though. |
@LuxoftAKutsan please fix merge conflicts |
6564f61
to
13465f4
Compare
@jacobkeeler Additional merge conflicts were found after delivery of RPC message protection to develop branch. Conflicts are rather significant and should be resolved carefully to avoid regression in both features. Conflicts resolving will be ready for tomorrow. |
Policy manager HMI level enum reorder
Set default version of custom vehicle data mapping
SQL storage implementation for VehicleDataItems Fix validation of double values in policy table Change isDouble to isNumeric during validation double values "0" should be validated as correct double value Add validation vehicle data during PTU Send in PT snapshot only version of custom VDI - During snapshot generation remove vehicle data items section - Add validation for Policy table depended on PT type Fix wrong check for vehicle data snapshot Allow empty vehicle data in PTU Change max value of string for URL from 255 to INT_MAX
Vehicle info params added to hmi commands
Allow unknown params for Subscribe VD
GetPolicyCOnfigurationData Implementation
Fixes : #2961 fix sending OnPermissionChanged after PTU with removing functional group. OnPermissionChange notification is now sent after applying PTU Replace ModuleConfig with Whole PT
Fixes #2962 Add additional check for functional group content before OnPermissionChangeNotification. * rename comparing functions to make more clear their return value sense * change variable names * extra check for null values in HasNewGroups() New unit test to cover changes within functional group
Change max value url for external policy fixes for external flow * since unti validation for the database * empty vehicle data validation
Introduces validation of vehicle_data_item name and key validation: * they should not contain spaces; * they should not be empty or consist only spaces; * they should not contain invalid chars like '!@#$%^&*'.
* Avoid converting to Json non object values Json::write adds additional `"` to string type as json value * Fix unit tests
to Subscribe, Unsubscribe vehicle data
Extract SMember from CObjectSchemaItem Add methods to ISchemaItem (Using composite pattern) - GetMemberSchemaItem - AddMemberSchemaItem Add implementation of VehicleDataItemSchema class Add appropriate unit tests Add creation of vehicle_data items schemes on policy event
13465f4
to
ce477b8
Compare
@jacobkeeler feature branch rebased on latest develop |
Fixes #2840
This PR is ready for review.
Risk
This PR makes major API changes.
Testing Plan
Manual testing is done with smartdevicelink/sdl_hmi#210
Automated testing is done with smartdevicelink/sdl_atf_test_scripts#2217
Testing reports attached : RGNSD_test_reports.zip
Summary
Implementation of SDL evolution issue: smartdevicelink/sdl_evolution#768
Enhancements
Implemented generating of Policy enums from RPC spec xml. This is done to avoid hight coupling of generated API schema to application manager and policies. Also was done the additional generation of schemas to validate enum string according to RPC spec.
VehicleInfo commands and command factory refactored to get struct with the list of dependencies in constructor.
Bug Fixes
Known issues
GetPolicyConfigurationData
is not able to provide access toConsumerFriendlyMessages:messages
section of the policy table,GetUserFriendlyMessage
RPC should be used for it. Quick fox is available Fix messages conversion to json #2985. But this fix has drawbacks describe in Fix messages conversion to json #2985 (comment). After merging feature PR minor but should be created and an appropriate solution should be discussed.CLA