This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
feat: Allow importing bot content from an external source #4751
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hatpick
suggested changes
Nov 10, 2020
Composer/packages/client/src/components/CreationFlow/DefineConversation.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/client/src/components/CreationFlow/DefineConversation.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/client/src/components/CreationFlow/DefineConversation.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/client/src/components/ImportModal/ImportModal.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/server/src/externalContentProvider/powerVirtualAgentsProvider.ts
Show resolved
Hide resolved
Composer/packages/server/src/externalContentProvider/powerVirtualAgentsProvider.ts
Outdated
Show resolved
Hide resolved
Composer/packages/server/src/externalContentProvider/powerVirtualAgentsProvider.ts
Outdated
Show resolved
Hide resolved
| } | ||
| }; | ||
|
|
||
| public static backupProject = async (project: BotProject): Promise<string> => { |
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between this and backupProject defined under controller
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is another artifact from the larger feature branch. This same logic is used by the "Pull" feature which will be broken out into a separate PR following this one. I will delete this one for now until I open that PR.
Merged
alanlong9278
added a commit
to alanlong9278/BotFramework-Composer
that referenced
this pull request
Nov 16, 2020
* settingsPage: (22 commits) Refactoring function calls fix: remove special case for single-bot view in tree (microsoft#4803) fix bug fix UT code refine Removed other languages for now. (microsoft#4789) Made the default width for the property editor wider (microsoft#4788) pass csrf token to plugin hosts (microsoft#4787) Updated disability styles chore: rebase main onto bot-projects feature branch (microsoft#4780) fix: zip file can not be deleted (microsoft#4760) Remove enforce auto end dialog for skill bots (microsoft#4440) Several PVA integration improvements / bug fixes (microsoft#4776) Updated strings from building (microsoft#4762) feat: Implement pull from publish target (microsoft#4768) fix: Allowed 404 to fall through axios during import flow (microsoft#4770) increase unit tests timeout to 30 min (microsoft#4764) feat: Allow importing bot content from an external source (microsoft#4751) Localized resource files from OneLocBuild (microsoft#4730) force node extensions to only require commonjs (microsoft#4755) ...
lei9444
pushed a commit
to lei9444/BotFramework-Composer-1
that referenced
this pull request
Jun 15, 2021
…4751) * Added ability to parse "import" deeplinks * Server-side changes for import * Client changes for import * Added checkForPVASchema util * Token caching fix and bad import fix * Various refactors * Linting fixes * Client side refactors and PR comments * Server side PR comments and linting * Fix schema tests * Fixed bot project controller tests * Removed unused import * Added logic to auth against the correct PVA environment on import Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR allows Composer to accept a deep link with the following form:
bfcomposer://import?source={source}&payload={urlEncodedJSONWithMetadata}This will then display UI that allows the user to sign in to the external service -- if necessary -- and download the bot content to either be saved as a new bot project within Composer, or imported into an existing project with a matching identifier.
NOTES:
small refactors on the wayTask Item
Fixes #4125, #4131
Screenshots
Connecting to service
Update existing project
Import as new project