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

Update client code to receive and pass back a bot ID #1918

Closed
5 tasks done
benbrown opened this issue Jan 29, 2020 · 2 comments
Closed
5 tasks done

Update client code to receive and pass back a bot ID #1918

benbrown opened this issue Jan 29, 2020 · 2 comments
Assignees
Labels
R9 Release 9 - May 15th, 2020

Comments

@benbrown
Copy link
Contributor

benbrown commented Jan 29, 2020

The client code needs to be updated to manage the identify of the open bot project. Up to this point, that information was stored in the server, but responsibility will now move to the client code to enable multi-user scenarios.

Describe the solution you'd like

  • When a bot project is opened or created, capture the included bot id and make it easily available throughout the app
  • Amend the code for all actions that make API calls to the server to include the bot id as part of the payload (~ 15 endpoints)
  • Update client code to include bot ID in the routes such that /dialogs/main is now /bot/:ID:/dialogs/Main. This applies to all routes that refer to content from a bot project, including settings.
  • Ensure that, given a bot id in the url, the application is loads the appropriate content into the editor and provides the correct value to api calls
  • Handle errors resulting from an invalid bot id - redirect user to the home screen and/or the open bot dialog.
@benbrown benbrown added Type: Enhancement Needs-triage A new issue that require triage labels Jan 29, 2020
@cwhitten cwhitten removed the Needs-triage A new issue that require triage label Feb 1, 2020
benbrown added a commit that referenced this issue Feb 12, 2020
@benbrown
Copy link
Contributor Author

This is completed in #2023

benbrown added a commit that referenced this issue Feb 25, 2020
@hibrenda hibrenda added the R9 Release 9 - May 15th, 2020 label Mar 16, 2020
cwhitten added a commit that referenced this issue Mar 19, 2020
* first commit of working prototype for mongoDB storage

* change mechanism for creating zip file for syncing to runtime
now builds all the files loaded into project (from arbitrary source) rahter than zipping a folder on disk

* clean up console output

* plugin loader looks for plugins, finds them

* dynamically load in the storage provider via plugin loader
use custom storage if one is specified

* remove some debug traces

* clean up some minor code formatting things

* disable linter rule to allow for requiring in plugin modules

* slight refactor of plugin loader to encapsulate functionality
add sample web route plugin
first tiny stab at publish -- TIME TO BRANCH

* functioning auth implementattion using passportjs

* sample github auth

* first round of changes for multi-user support
Related to #1918 and #1917

* add in the bot project id into the route

* fix new bot

* fix save as

* rationalize all the URLS used in context of a project

* plumb user identity down through storage

* disable plugins

* add readme

* plugin readme

* plugin readme

* plugin readme

* plugin readme

* import publisher controller from other branch

* update to readme

* import prototype of publishing page

* updates

* delete environment and connector

* add error checking for missing project by id

* Better error handling for attempts to write to a missing or moved project
Should fix last remaining item in #1918

* add publish method with  localpublish plugin

* keep bot dir clean

* basic publish of localpublish plugin

* remove hostBot

* add gitignore file

* change unzip template into copy template folder

* Fix build script

* Fix default projectMap not exists

* change luis operation to match local plugin

* polish default setting

* use projectId

* clean up

* remove lib dir

* use projectId

* use limit 'currentBotProjects' cache

* remove unused

* Update copy

* return error response when publish failed

* update name initialization process

* fix some test,hide publish tab and change deploy script

* fix UT integrity check

* fix bf-cli version error

* update the version

* remove @microsoft/bf-cli-command@1.0.0

* try to fix todo e2e test

* fix lint

* fix lint

* remove some unused test and skip some failed unit tests

* feat: Prevent old content from overwriting newer changes (#2156)

* updates to write operations to prevent overwrite
not 100% working on LU files yet

* debounce lu

* remove comment

* remove some console logs

* address feedback from chris

* remove commented code

* change hint word deploy to publish

* fix lint

* fix some test syntax

* update the ui for notification page

* fix luis publish path not found

* fix some e2e tests

* fix onboarding when using projectId

* fix notification page bug

* Back out simple overwrite protection, will replace with less error prone mechanism

* add plugins volumn in docker

* fix docker up

* fix unit test

* fix the filesetting path

* change docker to map multi ports. in order to support multi runtime

* add projectId when create and delete dialog

* fix botstatus

* fix botstatus

* remove console log

* fix settings files path

* update the moke data

Co-authored-by: Wenyi Luo <wenyluo@microsoft.com>
Co-authored-by: Dong Lei <donglei@microsoft.com>
Co-authored-by: zhixzhan <zhixzhan@microsoft.com>
Co-authored-by: liweitian <liweitian93@outlook.com>
Co-authored-by: leilzh <leilzh@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
@cwhitten
Copy link
Member

addressed via #2023

lei9444 added a commit to lei9444/BotFramework-Composer-1 that referenced this issue Jun 15, 2021
* first commit of working prototype for mongoDB storage

* change mechanism for creating zip file for syncing to runtime
now builds all the files loaded into project (from arbitrary source) rahter than zipping a folder on disk

* clean up console output

* plugin loader looks for plugins, finds them

* dynamically load in the storage provider via plugin loader
use custom storage if one is specified

* remove some debug traces

* clean up some minor code formatting things

* disable linter rule to allow for requiring in plugin modules

* slight refactor of plugin loader to encapsulate functionality
add sample web route plugin
first tiny stab at publish -- TIME TO BRANCH

* functioning auth implementattion using passportjs

* sample github auth

* first round of changes for multi-user support
Related to microsoft#1918 and microsoft#1917

* add in the bot project id into the route

* fix new bot

* fix save as

* rationalize all the URLS used in context of a project

* plumb user identity down through storage

* disable plugins

* add readme

* plugin readme

* plugin readme

* plugin readme

* plugin readme

* import publisher controller from other branch

* update to readme

* import prototype of publishing page

* updates

* delete environment and connector

* add error checking for missing project by id

* Better error handling for attempts to write to a missing or moved project
Should fix last remaining item in microsoft#1918

* add publish method with  localpublish plugin

* keep bot dir clean

* basic publish of localpublish plugin

* remove hostBot

* add gitignore file

* change unzip template into copy template folder

* Fix build script

* Fix default projectMap not exists

* change luis operation to match local plugin

* polish default setting

* use projectId

* clean up

* remove lib dir

* use projectId

* use limit 'currentBotProjects' cache

* remove unused

* Update copy

* return error response when publish failed

* update name initialization process

* fix some test,hide publish tab and change deploy script

* fix UT integrity check

* fix bf-cli version error

* update the version

* remove @microsoft/bf-cli-command@1.0.0

* try to fix todo e2e test

* fix lint

* fix lint

* remove some unused test and skip some failed unit tests

* feat: Prevent old content from overwriting newer changes (microsoft#2156)

* updates to write operations to prevent overwrite
not 100% working on LU files yet

* debounce lu

* remove comment

* remove some console logs

* address feedback from chris

* remove commented code

* change hint word deploy to publish

* fix lint

* fix some test syntax

* update the ui for notification page

* fix luis publish path not found

* fix some e2e tests

* fix onboarding when using projectId

* fix notification page bug

* Back out simple overwrite protection, will replace with less error prone mechanism

* add plugins volumn in docker

* fix docker up

* fix unit test

* fix the filesetting path

* change docker to map multi ports. in order to support multi runtime

* add projectId when create and delete dialog

* fix botstatus

* fix botstatus

* remove console log

* fix settings files path

* update the moke data

Co-authored-by: Wenyi Luo <wenyluo@microsoft.com>
Co-authored-by: Dong Lei <donglei@microsoft.com>
Co-authored-by: zhixzhan <zhixzhan@microsoft.com>
Co-authored-by: liweitian <liweitian93@outlook.com>
Co-authored-by: leilzh <leilzh@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R9 Release 9 - May 15th, 2020
Projects
None yet
Development

No branches or pull requests

3 participants