-
Notifications
You must be signed in to change notification settings - Fork 374
fix: Prevent schema from being overwritten #3215
Conversation
| @@ -0,0 +1,24 @@ | |||
| #!/bin/bash | |||
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.
We probably want a set -e for this script.
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.
Currently bfdialog has two bugs
- On error it deletes the sdk.schema file and leaves the user with no schema file
- It returns the 0 code despite error in merging schemas
Both these are in GH. To overcome this I take a backup of the file and revert to the backup if the bfdialog process does not generate a new sdk.schema file.
Unless they fix both these issues adding set -e might be risky for us. Let's say they fix just the error code bug. That still leaves our shell script in an unstable state since on error, the script exits immediately. This leaves the user with no .schema file as the portion of the script where I revert back to the original schema file will be skipped. Let me know if Im missing something here
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.
That makes sense. Are those issues with the CLI being tracked? Is that what you mean by "Both these are in GH"?
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.
Correct.
microsoft/botframework-cli#806
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Scripts updated Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Powershell and bash updated Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Update to readme Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Redirect routes to base bot and create protocols updated Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Prevent null initialization Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Refactored code Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> fail on alert Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Lowercasing schemas Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com> Make sure exclude paths are handled Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
3b799d4 to
790b90c
Compare
Signed-off-by: Srinaath Ravichandran <srravich@microsoft.com>
| @@ -0,0 +1,24 @@ | |||
| #!/bin/bash | |||
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.
That makes sense. Are those issues with the CLI being tracked? Is that what you mean by "Both these are in GH"?
Description
This PR addresses the following
Task Item
refs #2322
Usages
update-schema.sh -runtime azurewebapp
update-schema.sh -runtime azurefunctions