-
Notifications
You must be signed in to change notification settings - Fork 72
need help with migration #60
Comments
You should update your code to use botkit 0.7.5. This should be compatible with your starter kit code. If you want to update to the latest version, use the yeoman command |
Great. Thanks! |
Sorry! I forgot to mention a couple of things:
|
@pgoldweic you can check the changelog here: https://github.com/howdyai/botkit/blob/master/changelog.md#074 There were no major changes - just feature updates, bug fixes, etc. The middleware should still work as far as I know. No breaking changes were introduced. |
Yes, I was just looking into the change log myself, but not seeing what happened with 0.7.5 though. Thanks for confirming this! Glad that I can upgrade to that version and not have to rewrite my code. Thanks again! |
@pgoldweic 0.7.4 is actually the latest version. We will do a 0.7.5 at some point soon. An effort is currently underway. |
Sorry to resurrect this thread. I'm now considering a move to the latest Botkit version, and are wondering what are the components that I will need to install, given that I want to continue to have a web adapter with associated chat client (a la botkit-for-the-web, for botkit 0.7+) and not loose any functionality (while keeping it open sourc)e - although it would be great to gain in functionality, of course!- While I've seen the current documentation, it's non trivial to understand how to achieve these goals, and how the two options compare (both in features + open source nature, etc.). Any help with this will be appreciated. My current stack includes botkit 0.75, botkit-for-the-web, botkit-middleware-watson 1.8.2. Thanks! |
I don't remember specifics of how I upgraded to Botkit 4 anymore and I haven't touched any Botkit related code for almost a year, but here is what I see in the old pull request. I upgraded to botkit 4 and botkit-middleware-watson 2, and installed botbuilder-adapter-web. My bots were originally written in Typescript, so upgrading to Typescript based Botkit and middleware made my code cleaner. If your code is written in Javascript, your experience may differ. I kept the same frontend code, but I had to change In backend I had to use different Storage Adapter. I replaced my botkit initialization code with
Middleware initialization code has changed from
to
I used I replaced all promises with async/await, but not sure if it was because it was necessary or because I just wanted to use async/await. I used MemoryStorage adapter as replacement for Botkit's in-memory store originally (see code above)
I actually used fork published to private npm registry, because it took 4 months to merge my pull request and it isn't clear if ttl feature was actually released. |
Thanks so much @Naktibalda for your input once again! This should definitely help me a lot as I start the conversion work. Thanks again! |
Hi again @Naktibalda . Your code above does not show how you handled the Express instance with Botkit 4+ (I assume that your application was originally based on botkit-starter-web, correct? I am wondering about the peculiarities of using a custom Express instance given the lack of detailed documentation (e.g. are there any downsides, do I need to set 'disable_webserver' in Botkit's constructor?, etc.) . Take a look at my post at #63 . Do you have any comments on this? (BTW, I've also posted in the Botkit Slack Channel). |
I understand this repository has been deprecated, but I'm wondering what's the best way forward in order to update a (production) bot built with this starter kit (version 0.0.1, which depended on botkit 0.6.12) in order to avoid the associated vulnerabilities, and remain open source? (with minimal code redevelopment).
Also, if wanting to upgrade to current open source versions of the above packages/starter kit (with possibly more code redevelopment work involved), which ones should I use?
The text was updated successfully, but these errors were encountered: