Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

[Botskills] Sanitize appSettings properties for all the commands #3604

Conversation

Batta32
Copy link
Collaborator

@Batta32 Batta32 commented Aug 5, 2020

Depends on PR #3596.
Related to issue #3588.

Purpose

Botskills@1.0.16 doesn't work if there is an appsettings with connected Skill as it's case sensitive now and the casing of those properties were updated in the last version of the tool.

What is the context of this pull request? Why is it being done?
Botskills is running into retrocompatibility issues as the earlier versions was using the property BotFrameworkSkills with it properties inside, in uppercase. Now Botskills uses botFrameworkSkills in lowercase.

Changes

Are there any changes that need to be called out as significant or particularly difficult to grasp? (Include illustrative screenshots for context if applicable.)
We are using the method sanitizeAppSettingsProperties for every time the AppSettings file is read. This method takes the BotFrameworkSkills property with it properties inside and change them to lowercase.

Tests

Is this covered by existing tests or new ones? If no, why not?
We tested it manually and worked as expected. We added a unit test to check the sanitizeAppSettingsProperties method.

BotFrameworkSkills in uppert case along with its properties
image

botFrameworkSkills after update using the sanitizeAppSettingsProperties method
image

Feature Plan

Are there any remaining steps or dependencies before this issue can be fully resolved? If so, describe and link to any relevant pull requests or issues.
-

Checklist

General

  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the appropriate tests
  • I have updated related documentation

@Batta32 Batta32 force-pushed the feature/southworks/botskills-sanitize-appsettings branch from 7809c2f to 51e8940 Compare August 27, 2020 14:29
@Batta32 Batta32 changed the base branch from next to master August 27, 2020 14:29
@peterinnesmsft peterinnesmsft added PR: reviewed-approved Language: Typescript This issue is specifically related to C# implementations. and removed PR: unreviewed labels Aug 31, 2020
@peterinnesmsft peterinnesmsft merged commit 15688d2 into microsoft:master Oct 5, 2020
@pr-triage pr-triage bot added the PR: merged label Oct 5, 2020
@Batta32 Batta32 deleted the feature/southworks/botskills-sanitize-appsettings branch October 9, 2020 16:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Language: Typescript This issue is specifically related to C# implementations. PR: merged PR: reviewed-approved PR: unreviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants