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: trigger creation bug #2151

Merged
merged 40 commits into from
Mar 9, 2020
Merged

Conversation

liweitian
Copy link
Contributor

@liweitian liweitian commented Mar 3, 2020

Description

  1. fix bug which block users to create some kinds of trigger.
  2. update regEx UI.
  3. message received type is added

Task Item

Closes #2193
Closes #2158
Closes #1911

Screenshots

aaaaa

@liweitian liweitian changed the title fix bug fix: trigger creation bug Mar 3, 2020
@hibrenda
Copy link
Contributor

hibrenda commented Mar 4, 2020

#2158

@boydc2014
Copy link
Contributor

can you add a gif? how did you add regex back?

@a-b-r-o-w-n a-b-r-o-w-n linked an issue Mar 9, 2020 that may be closed by this pull request
@cwhitten
Copy link
Member

cwhitten commented Mar 9, 2020

nice work @liweitian & @alanlong9278 !


set(content, path, current);
export function createNewTrigger(dialog: DialogInfo, data: TriggerFormData): DialogInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

The return type DialogInfo I believe is an indexed dialog type, but here you didn't
reindex it, and seems no need to reindex it. So I would suggest return content: string.


return content;
export function createRegExIntent(dialog: DialogInfo, intent: string, pattern: string): DialogInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

see above.

@cwhitten cwhitten mentioned this pull request Mar 10, 2020
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.

Unable to create non OnIntent trigger
6 participants