Comments (7)
Thanks for flagging @fbublitz. What a coincidence, @aswetlow and I were just talking about this when the issue came in
We'll take a closer look and see how this happened!
from jovo-framework.
Amazing :)
Would really like to know how it happens, just out of curiosity.
from jovo-framework.
Hey i found something else, that is related to this i think (and a proper bug ).
i have two global handlers in two different components that handle the same intent, only one of them has an additional @if() decorator, checking on entity value
@Component()
class compA extends BaseComponent {
@Global()
@Intents( 'intentName' )
handlerA() {
// do something
};
}
@Component()
class compB extends BaseComponent {
@Global()
@Intents( 'intentName' )
@If( (jovo: Jovo) => jovo.$entities.entityType?.resolved === 'expectedValue' )
handlerB() {
// do something
};
}
- unit test makes a request that has intentName and entityType with value expectedValue . It fails because handlerA matches instead of handlerB. According to documentation the handler that satisfies the most conditions should match.
- When i put compB before compA in the app.ts component array, the test succeeds. So effect of ordering shows up here too.
from jovo-framework.
from jovo-framework.
@jankoenig Maybe we should add the ability to give a priority ordering to handlers that the router would use?
from jovo-framework.
Thank you for the details @fbublitz
from jovo-framework.
We published the update yesterday. v4.4.0
from jovo-framework.
Related Issues (20)
- Jovo Debugger UI - Copy button
- Feature Request: Support Multi-Valued Slots directly in Jovo HOT 1
- Please close this
- Return serialized concrete request/response instances in `$history?.prev?.request` and `$history?.prev?.response` to be able to use class methods. HOT 1
- Can't upload skill.json with included householdList API HOT 3
- Jovo client-web error, crypto.getRandomValues() not supported HOT 3
- Support Jovo v3 with alexa-verifier-middleware: 2.0.1 HOT 4
- Delete Reminder not working HOT 2
- CanFulfillIntentRequest failed with version 4.3.1 HOT 2
- Quick replies are set in the wrong directive on Alexa
- Jovo 4.5.0 Error in JovoDebugger dependency makes it unusable HOT 2
- Dependency Injection not working in AWS Lambda HOT 5
- Update jovo-db-mongodb v3 from mongodb:3.7.3 to mongodb:4.12.1 HOT 1
- Error using audioplayer events with UNHANDLED function in GlobalComponent HOT 2
- Error: Missing required argument #1 HOT 1
- Don't require package-lock.json HOT 1
- Jovo Debugger stopped showing $output HOT 1
- How to implement in a easy way a custom platform? HOT 1
- Cannot initialize Custom Platform. The custom platform is not seen as extended class of Plugin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jovo-framework.