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/fix rai default timeout #108

Conversation

AKalinich-Luxoft
Copy link

@AKalinich-Luxoft AKalinich-Luxoft commented Aug 14, 2020

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

Covered by ATF test scripts

Summary

As RAI request does not depend on any HMI response there is no need to track any timeout for it. RAI request will be removed from/ RequestController queue upon RAI response which will be sent anyway.

CLA

As RAI request does not depend on any HMI response
there is no need to track any timeout for it. RAI
request will be removed from/ RequestController
queue upon RAI response which will be sent anyway
@AKalinich-Luxoft AKalinich-Luxoft force-pushed the fix/fix_rai_default_timeout branch from 8f8dc97 to c0eeb73 Compare August 14, 2020 16:21
@AKalinich-Luxoft AKalinich-Luxoft merged commit 746f855 into feature/sdl_0190_resumption_data_error_handling Aug 14, 2020
SNiukalov pushed a commit that referenced this pull request Sep 4, 2020
…celink#3475)

* Add changes to RAI request

* Add new class ResumptionDataProcessor

* Add new class SDLAppExtension

* Add new class ExtensionPendingResumptionHandler

* Add new class SDLPendingResumptionHandler

* New class VehicleInfoPendingResumptionHandler

* Add changes related to ApplicationManager class

* Add changes related to MessageHelper class

* Add changes related to StateController class

* Add changes related to ResumeController class

* Add changes related to PolicyHandler class

* Add changes related to SDLRPCPlugin

* Add changes related to VehicleInfoPlugin

* Add changes related to AppServiceAppExtension and SystemCapabilitiesAppExtension

* Add changes related to ResetGlobalProperties request

* Add changes related to VehicleInfoAppExtension

* Add changes related to AppExtension and RCAppExtension

* Change OnTimeOut() method in affected requests

* Add changes related to method IsAppSubscribedForWayPoints

* Fix problem with multiple definitions during building of unit tests

* Add changes related to ApplicationHelper class

* Add changes related to EventDispatcher

* Add changes related to OnSystemCapabilitiesUpdated notification

* Fix/fix rai default timeout (#108)

Fix RAI default timeout

As RAI request does not depend on any HMI response
there is no need to track any timeout for it. RAI
request will be removed from/ RequestController
queue upon RAI response which will be sent anyway
Update UT

* Do not unsubscribe from pending VD

Update SDL logic to avoid sending of unsubscribeVD
to HMI during vehicle data resumption for case
when another application is also have pending
subscription for the same vehicle data.

* Fill subscription data for all pending requests

Changed SDL logic to update subscription results for
each pending subscription request before notifying
resumption processor about current subscription is
processed.
This should be done beforehand because after raising
event to processor it can finish resumption process
and if it has failed then it can trigger sending of
the next subscription request. So at that point, each
subscription request should contain updated subscriptions
status, otherwise some redundant requests might be sent.

* fixup! Add new class ResumptionDataProcessor

* fixup! Add new class SDLPendingResumptionHandler

* fixup! Add new class ExtensionPendingResumptionHandler

* fixup! New class VehicleInfoPendingResumptionHandler

* fixup! Add changes to RAI request

* fixup! Add new class ResumptionDataProcessor

* fixup! Add new class SDLAppExtension

* fixup! Add new class SDLPendingResumptionHandler

* fixup! New class VehicleInfoPendingResumptionHandler

* fixup! Add changes related to ApplicationManager class

* fixup! Add changes related to MessageHelper class

* fixup! Add changes related to ResumeController class

* fixup! Add changes related to SDLRPCPlugin

* fixup! Add changes related to AppExtension and RCAppExtension

* fixup! Add changes related to AppServiceAppExtension and SystemCapabilitiesAppExtension

* fixup! Add changes related to OnSystemCapabilitiesUpdated notification

* fixup! Add changes related to ResumeController class

* fixup! Change OnTimeOut() method in affected requests

* fixup! fixup! Add new class SDLAppExtension

* Filter RC subscriptions in vehicle data plugin

* Timeout process for reset global properties

* Use ResumptionDataProcessor interface instead of subscriber function

* Rename ExtensionPendingResumptionHandler

* Rename SDLAppExtension

* Revert "Filter RC subscriptions in vehicle data plugin"

This reverts commit f35e573.

* Rename resumption_data_processor.cc

* Rename SDLPendingResumptionHandler

* fixup! fixup! Add changes related to OnSystemCapabilitiesUpdated notification

* fixup! fixup! Add changes related to AppServiceAppExtension and SystemCapabilitiesAppExtension

* fixup! Use ResumptionDataProcessor interface instead of subscriber function

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

1 participant