BotFlow icon indicating copy to clipboard operation
BotFlow copied to clipboard

Ignore empty questions when inserting/editing intents

Open rodmaia opened this issue 4 years ago • 7 comments

When inserting or editing an intent you can have text fields that are completely empty or that only have a [space] character inside. These balloons should be:

  • ignored by the front-end validation
  • not saved to the database
  • removed from the utter if present upon loading

With the exception of intents whose entire content is a single empty text field. In that case, validation should continue preventing to save that intent.

Different from the utters, intents can continue to show the empty textfields on screen to stimulate people to add more question examples.

Tasks

  • [x] TBD

Acceptance criteria

  • [x] Empty question examples are not saved to the database
  • [x] Empty question examples are not loaded from the database

rodmaia avatar Feb 11 '21 13:02 rodmaia

Nice! Working on it

Miguel-Alves avatar Feb 18 '21 19:02 Miguel-Alves

@Miguel-Alves assign the issue to yourself if you are working on it 😉

Let me know if you can expose your dev environment to the web. I’d like to test it to ensure the original idea on the issue makes sense.

rodmaia avatar Feb 19 '21 00:02 rodmaia

Done. Assigned it to myself and moved it to "In Progress" board.

About exposing my dev environment, how would you like me to do it?

Miguel-Alves avatar Feb 24 '21 20:02 Miguel-Alves

Reviewing this issue based on #153;

Miguel-Alves avatar Feb 25 '21 15:02 Miguel-Alves

About exposing my dev environment, how would you like me to do it?

As we agreed on Telegram, let's do a video call to go over this.

rodmaia avatar Feb 25 '21 17:02 rodmaia

Following the procedures from #153 , this issue was maintained;

Miguel-Alves avatar Mar 02 '21 13:03 Miguel-Alves

Solved this issue as described in #161

Miguel-Alves avatar Mar 02 '21 13:03 Miguel-Alves