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: Added in-code default bot project file to use for old bots #8181

Merged
merged 1 commit into from Jun 23, 2021

Conversation

tonyanziano
Copy link
Contributor

@tonyanziano tonyanziano commented Jun 23, 2021

Description

In a recent change #7870, all the existing bot templates that existed in /extensions/samples/assets/projects were removed. There was a piece of code inside of BotProject.init() that would use the .botproj file of the first bot template in that directory as a skeleton to be filled out for old bots that needed to create a project file.

Since there are no longer any bot templates in that directory, this piece of code always returns undefined and no .botproj file is created for old bots. This was causing bots imported from PVA to throw an error when being opened because of a missing project file

This PR takes the old .botproj skeleton that was present in the EchoBot sample and puts it into the code to be referenced by old bots.

#minor

@tonyanziano tonyanziano changed the title minor: Added in-code default bot project file to use for old bots fix: Added in-code default bot project file to use for old bots Jun 23, 2021
@cypress
Copy link

cypress bot commented Jun 23, 2021



Test summary

16 0 1 0Flakiness 0


Run details

Project Composer
Status Passed
Commit 829bd14
Started Jun 23, 2021 9:16 PM
Ended Jun 23, 2021 9:22 PM
Duration 06:25 💡
OS Linux Ubuntu - 20.04
Browser Electron 89

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@coveralls
Copy link

Coverage Status

Coverage remained the same at 54.863% when pulling 829bd14 on toanzian/project-file-default into 801eaa0 on main.

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.

None yet

3 participants