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(skills): fix subsequent call api #5628

Merged
merged 1 commit into from
Nov 1, 2021
Merged

fix(skills): fix subsequent call api #5628

merged 1 commit into from
Nov 1, 2021

Conversation

allardy
Copy link
Member

@allardy allardy commented Nov 1, 2021

Description

When using call api then a slot skill, the second usage wasn't working because of a variable collision. We used temp.valid in both skills. I've implemented the same logic we have on the choice skill (we use a random id for the validation variable),

Will not fix previous call api. Only applies when it will be saved the next time, and it will not break existing calls.

Fixes # https://linear.app/botpress/issue/DEV-1382/[bug]-successful-api-skill-breaks-follow-up-slot-skills-in-same-flow

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Copy link
Contributor

@sebburon sebburon left a comment

Choose a reason for hiding this comment

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

Looks good!

@allardy allardy merged commit 4f53ce8 into x-meta Nov 1, 2021
@franklevasseur franklevasseur mentioned this pull request Nov 3, 2021
This was referenced Dec 2, 2021
@allardy allardy deleted the ya-fix-call-api branch December 7, 2021 05:27
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.

None yet

2 participants