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

Fixed queued menu updates failing #1958

Closed

Conversation

NicoleYarroch
Copy link
Contributor

@NicoleYarroch NicoleYarroch commented Apr 6, 2021

Fixes #1957

Risk

This PR makes no API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Unit Tests

Test cases added to the SDLMenuManagerSpec to test sending the queued menu with dynamic updates turned on as well as off.

Core Tests

Updated the menu with new menu cells while the current menu is still uploading.

Core version / branch / commit hash / module tested against:

  • Manticore: SDL Core v7.0.0
  • SYNC 3.0: Build 17276_DEVTEST

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

  • Manticore: Generic HMI v0.9.0
  • SYNC 3.0: Build 17276_DEVTEST

Summary

Fixed menu updates failing if a new menu is sent while the current menu is still being uploaded. The new menu updates would be queued but when the current menu finished uploading, the current menu would be sent again instead of the queued menu.

Changelog

Bug Fixes
  • Fixed a new menu update failing if the current menu is still being updated.

Tasks Remaining:

  • Perform smoke tests with sdl_core (dynamic updates on)
  • Perform smoke tests with SYNC 3.0 (dynamic updates off)

CLA

@codecov
Copy link

codecov bot commented Apr 6, 2021

Codecov Report

Merging #1958 (e34c41f) into develop (e9ab509) will increase coverage by 0.01%.
The diff coverage is 81.25%.

@@             Coverage Diff             @@
##           develop    #1958      +/-   ##
===========================================
+ Coverage    83.65%   83.66%   +0.01%     
===========================================
  Files          441      441              
  Lines        22534    22546      +12     
===========================================
+ Hits         18851    18864      +13     
+ Misses        3683     3682       -1     

@NicoleYarroch NicoleYarroch linked an issue Apr 6, 2021 that may be closed by this pull request
@NicoleYarroch NicoleYarroch self-assigned this Apr 6, 2021
@NicoleYarroch NicoleYarroch added bug A defect in the library manager-screen Relating to the manager layer - screen managers labels Apr 6, 2021
Comment on lines +408 to +409
self.queuedAddMenuCells = addCells;
self.queuedDeleteMenuCells = deleteCells;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this not use self.waitingUpdateMenuCells instead?

@joeljfischer
Copy link
Contributor

Canceling work on this to work on the menu manager refactor instead #1901

@joeljfischer joeljfischer deleted the bugfix/issue_1954_queued_menu_updates_fail branch April 21, 2021 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library manager-screen Relating to the manager layer - screen managers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu updates fail if updates are queued
2 participants