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 response to SetGlobalProperties in case of UNSUPPORTED TTS #1574

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Fix response to SetGlobalProperties in case of UNSUPPORTED TTS #1574

wants to merge 1 commit into from

Conversation

pvvasilev
Copy link

For SetGlobalProperties RPC, which is split to TTS and UI requests,
if the response to TTS is UNSUPPORTED_RESOURCE and the response
to UI is SUCCESS, SDL should respond with success:true and
resultCode:WARNINGS. Added a check to verify this case.

@pvvasilev
Copy link
Author

Please review @AKalinich-Luxoft @anosach-luxoft @VProdanov

@@ -298,6 +298,14 @@ bool SetGlobalPropertiesRequest::PrepareResponseParameters(
ui_response_info_);
return result;
}
if (ui_properties_info.is_ok && tts_properties_info.is_unsupported_resource) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@pvvasilev I propose you to move all this if-s between 290-308 lines to overriden PrepareResultForMobileResponse/PrepareResultCodeForResponse functions as it's done in pull requests #1575, #1567 and #1562 for other RPCs with similar defect.

Copy link
Author

Choose a reason for hiding this comment

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

return true;
}
return result;
}
Copy link

@ghost ghost May 30, 2017

Choose a reason for hiding this comment

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

@pvvasilev Maybe
if (ui_info.is_ok && tts_info.is_unsupported_resource) {
return true;
}
return CommandRequestImpl::PrepareResultForMobileResponse(ui_info, tts_info);

Copy link
Author

Choose a reason for hiding this comment

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

@VProdanov No. The ui_info and tts_info are initialized in the CommandRequestImpl::PrepareResultForMobileResponse call.

Copy link

Choose a reason for hiding this comment

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

ok

}
if (HmiInterfaces::STATE_AVAILABLE == tts_info.interface_state &&
tts_info.is_unsupported_resource) {
tts_response_info_ = "Unsupported phoneme type sent in a prompt";
Copy link
Contributor

Choose a reason for hiding this comment

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

@pvvasilev please remove this assignment. According to APPLINK-19591 SDL should transfer info string received from HMI response but not generate it by itself.

Copy link
Author

Choose a reason for hiding this comment

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

@AKalinich-Luxoft I do not see any mention of this in the cited ticket.

Copy link
Contributor

Choose a reason for hiding this comment

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

@pvvasilev it's not mentioned but it should. Please also look at related requirement APPLINK-31653 which contains more detailed description. I hope it's applicable for all RPCs which contains TTSChunk element as well.

Copy link
Author

Choose a reason for hiding this comment

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

@AKalinich-Luxoft Again I do not see any mention of this. Please give me an exact requirement specifying this. Otherwise I do not agree with you. Also I think these requirements you are citing are not for the correct project.

Copy link
Contributor

Choose a reason for hiding this comment

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

@pvvasilev these requirements are applicable for GENIVI & Ford-Specific (specified in Commitment field of ticket). In cited APPLINK-31653:

SDL must:
...
respond with "WARNINGS, success:true" + info: <message_from_HMI> to mobile app IN CASE
HMI respond with UNSUPPORTED_RESOURCE

I think it is exactly this case.
And requirement regarding info parameter: SDLOPEN-1309 req 4 and 5.

Copy link
Author

Choose a reason for hiding this comment

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

@this is not the same case. The case you are referring to is the if above this one. There the info is forwarded.

If the response to `TTS` is `UNSUPPORTED_RESOURCE` and the response
to `UI` is `SUCCESS`, SDL should respond with `success`:`true` and
`resultCode`:`WARNINGS`. Added a check to verify this case.
@JenkinsSDLOnCloud
Copy link

Can one of the admins verify this patch?

2 similar comments
@JenkinsSDLOnCloud
Copy link

Can one of the admins verify this patch?

@JenkinsSDLOnCloud
Copy link

Can one of the admins verify this patch?

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