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

Fix/ Postpone application activation if registration is not complete yet #3557

Merged
merged 3 commits into from
Oct 29, 2020

Conversation

LitvinenkoIra
Copy link
Contributor

Fixes #3549

This PR is [ready] for review.

Risk

This PR makes [no] API changes.

Testing Plan

Script from smartdevicelink/sdl_atf_test_scripts#2470

Summary

There was an issue when the SDL receives SDLActivateAppRequest from HMI and activates the app before the registration is completed and NONE HMI level is assigned. In this case, after the registration is complete SDL will assign NONE hmi level for the app that was in FULL so additional steps will be required to activate the application one more time.

To prevent such a situation additional check for app HMI level has been added during the app activation (SDLActivateAppRequest):
if the app HMI level is INVALID_ENUM - it means that the registration isn't complete yet - so we need to postpone the activation.
After the registration is completed and HMI level NONE is assigned - need to check if we have the postponed activation for the app and if yes - start the postponed activation.

CLA

@LitvinenkoIra
Copy link
Contributor Author

@theresalech This PR is ready for Livio review. Thank you!

@iCollin iCollin changed the base branch from release/7.0.0 to fix/none_full October 29, 2020 21:35
@iCollin iCollin merged commit 3eb6d6b into smartdevicelink:fix/none_full Oct 29, 2020
iCollin added a commit that referenced this pull request Oct 29, 2020
* remove cloud app exception from StateControllerImpl::OnApplicationRegistered

* Fix/ Postpone application activation if registration is not complete yet (#3557)

* Postpone application activation if registration is not complete yet

* fixup! Postpone application activation if registration is not complete yet

* fixup! Postpone application activation if registration is not complete yet

Co-authored-by: Andrii Kalinich <[email protected]>

* fix style

* fix unit tests

Co-authored-by: Ira Lytvynenko (GitHub) <[email protected]>
Co-authored-by: Andrii Kalinich <[email protected]>
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.

4 participants