We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Having this request:
{ "handler":{ "name":"Jovo" }, "intent":{ "name":"", "params":{ "selected_option":{ "original":"", "resolved":"1" } }, "query":"Calculus exam" }, "scene":{ "name":"Main", "slotFillingStatus":"COLLECTING", "slots":{ "selected_option":{ "mode":"REQUIRED", "status":"SLOT_UNSPECIFIED", "updated":true, "value":"1" } } }, "session":{ "id":"ABwppHF6PnY5FSGbDf492nnNzVrGeoZK0mF9FI0jHcCw9DoH6-IZ1d2jfv7eWoCwRJRbnRXGpv2N", "params":{ "state":[ { "component":"SomeComponent" }, { "resolve":{ "HELP":"HelpIntent", "BACK":"BackIntent" }, "component":"SomeComponent.NestedComponent" } ], "updatedAt":"2022-06-13T11:19:06.396Z", "isNew":false, "createdAt":"2022-06-13T10:56:12.660Z", "_GOOGLE_ASSISTANT_REPROMPTS_":{ "NO_INPUT_1":"Doesn't matter.", "NO_INPUT_2":"Doesn't matter.", "NO_INPUT_FINAL":"Doesn't matter." }, "id":"ABwppHF6PnY5FSGbDf492nnNzVrGeoZK0mF9FI0jHcCw9DoH6-IZ1d2jfv7eWoCwRJRbnRXGpv2N" }, "typeOverrides":[ ], "languageCode":"" }, "user":{ "locale":"en-GB", "params":{ "_GOOGLE_ASSISTANT_USER_ID_":"0f20db70-cb27-4901-b68b-9562c6addf99" }, "accountLinkingStatus":"NOT_LINKED", "verificationStatus":"VERIFIED", "packageEntitlements":[ ], "gaiamint":"", "permissions":[ ], "lastSeenTime":"2022-06-13T11:17:10Z" }, "home":{ "params":{ } }, "device":{ "capabilities":[ "SPEECH", "RICH_RESPONSE", "LONG_FORM_AUDIO" ], "timeZone":{ "id":"Europe/Madrid", "version":"" } } }
I expect Jovo to match it to this handler:
@Handle({ if: (jovo: Jovo) => jovo.$entities.selected_option?.id != null, platforms: ['googleAssistant'], }) Choose(): Promise<void> { ... }
It is routing the request to UNHANDLED handler in SomeComponent.NestedComponent.
SomeComponent.NestedComponent
No sense to me. If I restrict UNHANDLED with some decorators, then it goes to global UNHANDLED.
Using prioritizedOverUnhandled: true doesn't help.
prioritizedOverUnhandled: true
SomeComponent.NestedComponent doesn't require much code... only the Choose handler from above.
Choose
The Route object is always the same: UNHANDLED of SomeComponent.NestedComponent if it is not restricted, or Global UNHANDLED.
UPDATE:
This works, but why?
@Handle(GoogleAssistantHandles.onScene('Main')) @If( (jovo: Jovo) => jovo.$entities.selected_option?.id != null) Choose(): Promise<void> { ... }
To me, @if decorator should be enough.
@if
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm submitting a...
Expected Behavior
Having this request:
I expect Jovo to match it to this handler:
Current Behavior
It is routing the request to UNHANDLED handler in
SomeComponent.NestedComponent
.No sense to me. If I restrict UNHANDLED with some decorators, then it goes to global UNHANDLED.
Using
prioritizedOverUnhandled: true
doesn't help.SomeComponent.NestedComponent
doesn't require much code... only theChoose
handler from above.The Route object is always the same: UNHANDLED of
SomeComponent.NestedComponent
if it is not restricted, or Global UNHANDLED.UPDATE:
This works, but why?
To me,
@if
decorator should be enough.Your Environment
The text was updated successfully, but these errors were encountered: