OfficeDev / TeamsFx

Developer tools for building Teams apps
Other
427 stars 164 forks source link

Separate deployment of Bot and Tab #8745

Closed IAM5K closed 1 month ago

IAM5K commented 12 months ago

Project preface: I am developing a Bot that has tabs in it added as a feature In Teams Toolkit version 4, On clicking on deployment we used to get an option to choose Bot or tabs but in the latest update we cannot choose among them and it automatically deploys both of them.

If it is possible to bring back the option to select which app I want to deploy, it will be really helpful as sometimes changes in bot are not in a state to be deployed but we have to deploy tabs as things need to run in parallel.

Cannot even generate Screenshots as those options are no more available.

ghost commented 12 months ago

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

MuyangAmigo commented 11 months ago

Hey @IAM5K, In the Teams Toolkit v5 we have changed fundamentally how we orchestrate the provision and deployment process. To ensure maximum flexibility and transparency, we have moved to use teamsapp.yml to control what and how the deployment process should take place. You can refer to: https://github.com/OfficeDev/TeamsFx/wiki/Available-actions-in-Teams-Toolkit for more details of customizing the deployment life cycle.

IAM5K commented 11 months ago

Thanks for the details. I have cross-checked and now by modifying the file I am able to do separate deployments. But every time I have to modify teamsapp.yml. is there a way to get back to the UI mode or choose an option as we used to get earlier?

therealjohn commented 11 months ago

Thanks for the details. I have cross-checked and now by modifying the file I am able to do separate deployments. But every time I have to modify teamsapp.yml. is there a way to get back to the UI mode or choose an option as we used to get earlier?

Can you share an example of what you did to deploy separately and have to modify the file every time?

ghost commented 11 months ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

IAM5K commented 11 months ago

To deploy the bot and tab separately through a manual process you can follow these:

MuyangAmigo commented 11 months ago

@IAM5K Thanks for the information. We will discuss internally how we can better support this scenario, it might be either through allowing multiple yml files or conditional logics in the teamsapp.yml. Will get back to you on our plan.

IAM5K commented 2 months ago

Hi, It has been 9 months, any update?

MuyangAmigo commented 2 months ago

Hey @IAM5K, unfortunately we didn't get enough similar requests to prioritize this feature request. We will get back to you if we have new inputs to prioritize this support. Apologies for the inconvinence.

IAM5K commented 2 months ago

We don't even have an option to have a bot with a tab which was there in earlier version. If there is any documentation please share

jayzhang commented 2 months ago

@IAM5K We are considering adding an optional input like 'config-file-path' in 'teamsapp deploy' CLI command that you can specify the yml file to run such as teamsapp deploy --config-file-path teamsapp.bot.yml and teamsapp deploy --config-file-path teamsapp.tab.yml . Does this make sense for you?

IAM5K commented 2 months ago

Yeah that will help

IAM5K commented 2 months ago

@jayzhang is there a way how we can create a bot and then add a tab to it. Because we don't have any such options now.

jayzhang commented 2 months ago

@IAM5K Current version of TTK don't support doing this automatically, but you can follow the guide to add a tab on existing bot mannually: https://github.com/OfficeDev/TeamsFx/wiki/How-to-configure-Tab-capability-within-your-Teams-app

jayzhang commented 1 month ago

@IAM5K We are considering adding an optional input like 'config-file-path' in 'teamsapp deploy' CLI command that you can specify the yml file to run such as teamsapp deploy --config-file-path teamsapp.bot.yml and teamsapp deploy --config-file-path teamsapp.tab.yml . Does this make sense for you?

@IAM5K You could try this pre-release version of CLI: https://www.npmjs.com/package/@microsoft/teamsapp-cli/v/3.0.1-beta.2024031907.0