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: Update AppSettings obj to match new format set by new runtime #6774

Merged
merged 46 commits into from
Apr 14, 2021

Conversation

pavolum
Copy link
Contributor

@pavolum pavolum commented Apr 8, 2021

Description

New runtime anticipates AllowedCallers within appsettings JSON to be in runtimeSettings as opposed to within old runtimes skillsConfiguration obj.

This PR:

  • Updates appSettings type and defaults to match what is expected by the new runtime (i.e. adding runtimeSettings obj)
  • Updates AllowedCaller UI to interface with new location of allowed caller
  • Adding AllowedCaller UI to settings UI tab view

Task Item

fixes #6647

@coveralls
Copy link

coveralls commented Apr 8, 2021

Coverage Status

Coverage decreased (-0.004%) to 51.1% when pulling 4517888 on pavolum/appsettingsFix into 2803f4c on main.

@pavolum
Copy link
Contributor Author

pavolum commented Apr 12, 2021

So what happens for existing bots with the current settings object?

Thats a good question. My assumption is that the migration flow will ensure that the expected appsettings for all bots that hit this point in the flow are normalized to the new version. I will double check on this. @benbrown is my assumption correct?

@benbrown
Copy link
Contributor

a-b-r-o-w-n
a-b-r-o-w-n previously approved these changes Apr 13, 2021
a-b-r-o-w-n
a-b-r-o-w-n previously approved these changes Apr 13, 2021
@pavolum pavolum merged commit b3b083f into main Apr 14, 2021
@pavolum pavolum deleted the pavolum/appsettingsFix branch April 14, 2021 16:12
@cwhitten cwhitten mentioned this pull request May 20, 2021
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…icrosoft#6774)

* Updating AppSettings type obj to reflect new runtime appSettings structure

* Updating default appSettings obj per type update

* Updating allowedCallers Ui component to interface with new location of AllowedCallers

* Adding allowedCallers to tab settings UI view

* Adding allowedCallers null check

* Moving AdapterRecord type to types workspace

* Updating imports for adapter record

* Fixing runtimeSettings type

* Fix linting errors

* Fixing types definition

* Fixing typing...again

* Fixing imports

* Cleaning up typing of appsettings Obj

* Fixing type bug introduced in merging with latest main

* Fixing errors from merge

* removing unused import

Co-authored-by: Patrick Volum <pavolum@microsoft.com>
Co-authored-by: Andy Brown <asbrown002@gmail.com>
Co-authored-by: Ben Yackley <61990921+beyackle@users.noreply.github.com>
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.

allowedCaller add in wrong place.
6 participants