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

feat: new validation pipeline - schema existence validation #6645

Merged
merged 24 commits into from
Apr 13, 2021

Conversation

yeze322
Copy link
Contributor

@yeze322 yeze322 commented Apr 1, 2021

Description

When a $kind is not defined in sdk.schema, raise a diagnostic error in debug panel and disable this Action.

Task Item

closes #5996
refs #6526

Screenshots

image

image
diagnostics-schema-dsiabled

@coveralls
Copy link

coveralls commented Apr 6, 2021

Coverage Status

Coverage decreased (-0.04%) to 51.111% when pulling caa2ba6 on yeze322:diagnostics/schema into b90b17b on microsoft:main.

@cwhitten cwhitten added this to the R13 milestone Apr 7, 2021
Copy link
Contributor Author

@yeze322 yeze322 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug to be triaged with new creation flow

const entries = Object.entries(schema.properties);
for (const entry of entries) {
const [propertyName, propertyDef] = entry;
const { type, items } = propertyDef as any;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here causes the bug

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to check the schema definition

@yeze322 yeze322 mentioned this pull request Apr 14, 2021
8 tasks
cwhitten added a commit that referenced this pull request Apr 14, 2021
@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
…t#6645)

* add placeholder for schema validator

* add schema validator pipeline with mocked fn

* add schema visitor

* display diagnostics data in debug panel

* revert sdk.ts

* decrease schema diagnostic severity to 'Warning'

* optmize path join logic

* impl a unified walker covers SwitchCondition

* fix lint error: use BaseSchema

* feat: disable actions without schema

* wrap in useEffect

* optimization: avoid frequent recoil submission

* optimization: aggregate paths rather than updatedDialog to reduce time complexity

* chore: comments & var name

* lint

* add comments

Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
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.

Advanced diagnostics - Action Policy, SDK schema validation
3 participants