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

feat: handling a randomized reprompt #59

Merged

Conversation

zhihil
Copy link
Contributor

@zhihil zhihil commented May 22, 2020

Adds randomization for the reprompts.

@linear
Copy link

linear bot commented May 22, 2020

CORE-978 Implement No Match 1-3 in clients

Add support for no match to alexa and google clients

View original issue in Jira

@effervescentia
Copy link
Contributor

effervescentia commented May 27, 2020

Codecov Report

Merging #59 into leart/CORE-978 will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           leart/CORE-978      #59   +/-   ##
===============================================
  Coverage           97.68%   97.69%           
===============================================
  Files                  89       89           
  Lines                1601     1602    +1     
  Branches              264      264           
===============================================
+ Hits                 1564     1565    +1     
  Misses                 27       27           
  Partials               10       10           
Impacted Files Coverage Δ
lib/services/voiceflow/handlers/interaction.ts 100.00% <ø> (ø)
lib/services/voiceflow/handlers/noMatch.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1b0eac...d0de979. Read the comment docs.

@zhihil zhihil marked this pull request as ready for review May 27, 2020 18:48
@@ -24,6 +24,7 @@ describe('noMatch handler unit tests', () => {
const block = {
blockID: 'block-id',
noMatches: ['the counter is {counter}'],
randomize: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

we're testing with a boolean already in the next unit test, let's remove randomize altogether here to test undefined

refactor: removed randomize from one unit test to test undefined case instead
@leartgjoni-voiceflow leartgjoni-voiceflow merged commit 7b6307c into leart/CORE-978 May 28, 2020
leartgjoni-voiceflow pushed a commit that referenced this pull request May 28, 2020
* feat: handling a randomized reprompt

* feat: unit tests for no match randomize

* feat: added randomize property to test object

* Update noMatch.unit.ts

refactor: removed randomize from one unit test to test undefined case instead
leartgjoni-voiceflow added a commit that referenced this pull request Jun 1, 2020
* wip: handle no matches

* chore: comments

* refactor: new handler

* wip: add full speak capabitilies

* chore: comments

* test: fix old

* test: new unit

* chore: rename test

* feat: handling a randomized reprompt (#59)

* feat: handling a randomized reprompt

* feat: unit tests for no match randomize

* feat: added randomize property to test object

* Update noMatch.unit.ts

refactor: removed randomize from one unit test to test undefined case instead
@frankgu968 frankgu968 deleted the brennan/randomize-reprompt/core-978 branch June 5, 2020 15:43
DecathectZero pushed a commit that referenced this pull request Sep 8, 2020
* wip: handle no matches

* chore: comments

* refactor: new handler

* wip: add full speak capabitilies

* chore: comments

* test: fix old

* test: new unit

* chore: rename test

* feat: handling a randomized reprompt (#59)

* feat: handling a randomized reprompt

* feat: unit tests for no match randomize

* feat: added randomize property to test object

* Update noMatch.unit.ts

refactor: removed randomize from one unit test to test undefined case instead
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.

3 participants