botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Add delete/remove method in DialogSet class

Open orsharab-zz opened this issue 4 years ago • 8 comments

Is your feature request related to a problem? Please describe. We would like to be able to delete a dialog from a bot's DialogSet (by ID)

Describe the solution you'd like Add DialogSet.delete(dialogId) function to DialogSet class

Describe alternatives you've considered Disable typescript to be able to manipulate dialogs property in DialogSet

Additional context We're handling DialogSet state between nodes at runtime

orsharab-zz avatar Jan 18 '21 08:01 orsharab-zz

@orsharab I transferred this issue to the SDK repo as it touches all implementations of the SDK, not just Javascript.

joshgummersall avatar Jan 19 '21 17:01 joshgummersall

@orsharab-zz Thank you for your feature request. This is not something we have seen other requests for and therefore, before look to prioritize any changes, I would like to check with one of our engineers as to how you could achieve this without changes to the SDK.

@joshgummersall can you take a look and comment on the above please? Specifically it would be good to provide a workaround as to how the above can be achieved without requiring SDK changes.

garypretty avatar Jan 26 '21 10:01 garypretty

@garypretty, without the ability to mutate DialogSet in any way (aside from adding dialogs), the only option is to recreate a DialogSet completely. This does seem wasteful to me, but it is technically possible. Given that Set is in the name of this datatype, it seems like adding a remove or delete method doesn't seem out of the question. @orsharab-zz, have you considered recreating the DialogSet on demand?

joshgummersall avatar Jan 26 '21 17:01 joshgummersall

Hi @joshgummersall, this is what we're doing now and exactly what we're trying to avoid.

orsharab-yy avatar Feb 23 '21 09:02 orsharab-yy

@garypretty see above.

joshgummersall avatar Feb 23 '21 16:02 joshgummersall

Thanks @orsharab. I am adding this as a P2 to our current milestone. If we can get this done within that release then I think it would be a good one to take.

Assigning this one to @mrivera-ms for assignment to engineering.

garypretty avatar Mar 05 '21 09:03 garypretty

Moving to the next milestone.

mrivera-ms avatar Mar 23 '21 04:03 mrivera-ms

Any solution to this? It would be a good functionality for those of us who use the generation of dialogs at runtime, allowing us to edit/delete them

fabrifls avatar Apr 19 '22 00:04 fabrifls