-
Notifications
You must be signed in to change notification settings - Fork 103
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 0180 - Fix to support broaden choice cell uniqueness #1886
SDL 0180 - Fix to support broaden choice cell uniqueness #1886
Conversation
Use uniqueText instead of text property
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.
This also needs to affect MenuCell and the MenuManager
Codecov Report
@@ Coverage Diff @@
## develop #1886 +/- ##
===========================================
- Coverage 85.41% 84.98% -0.43%
===========================================
Files 434 428 -6
Lines 22091 21511 -580
===========================================
- Hits 18868 18282 -586
- Misses 3223 3229 +6 |
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.
Additional missing pieces:
SDLMenuCellSpec
,SDLChoiceCellSpec
,SDLPreloadChoicesOperationSpec
updates
@@ -160,41 +162,39 @@ - (void)setMenuConfiguration:(SDLMenuConfiguration *)menuConfiguration { | |||
} | |||
|
|||
- (void)setMenuCells:(NSArray<SDLMenuCell *> *)menuCells { | |||
NSArray<SDLMenuCell *> *cells = menuCells; |
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.
Is this necessary? It doesn't seem to be doing anything.
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 think this needs to be brought up again. I don't think this is doing anything in the current scheme. All references to cells
below seem that they can be changed to menuCells
.
@@ -160,41 +162,39 @@ - (void)setMenuConfiguration:(SDLMenuConfiguration *)menuConfiguration { | |||
} | |||
|
|||
- (void)setMenuCells:(NSArray<SDLMenuCell *> *)menuCells { | |||
NSArray<SDLMenuCell *> *cells = menuCells; |
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 think this needs to be brought up again. I don't think this is doing anything in the current scheme. All references to cells
below seem that they can be changed to menuCells
.
…eCell-uniqueness # Conflicts: # SmartDeviceLink-iOS.xcodeproj/project.pbxproj # SmartDeviceLink/private/SDLMenuManager.m # SmartDeviceLink/public/SDLMenuCell.h # SmartDeviceLinkTests/DevAPISpecs/SDLMenuCellSpec.m # SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
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 did not check unit tests or core tests due to the changes needed here.
* Simplify dynamicHash method * Move the menuCells documentation to the SDLScreenManager.h file * Fix menu manager using instance properties to handle recursive searches, instead passing pointers * Add tests for dynamicHash method * Fix test for duplicate cells
* Choice sets with identical items would sometimes present out of order because they preloaded out of order
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 found a couple of edge case issues.
* Add better SDLFile logging
…cate voice commands * Fix some spelling
…eCell-uniqueness # Conflicts: # SmartDeviceLink-iOS.xcodeproj/project.pbxproj # SmartDeviceLink/private/SDLMenuManager.m # SmartDeviceLinkTests/DevAPISpecs/SDLChoiceSetManagerSpec.m # SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
Fixes #1024
Risk
This PR makes no API changes.
Testing Plan
Unit Tests
Unit test update to support cells with same title
Core Tests
N/A
Core version / branch / commit hash / module tested against: N/A
HMI name / version / branch / commit hash / module tested against: N/A
Summary
broadens choice and sub-menu uniqueness to allow PerformInteraction and sub-menu AddCommand primary text to be identical.
Changelog
Breaking Changes
Enhancements
Bug Fixes
Tasks Remaining:
N/a
CLA