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: Action flyout menu only shows defined $kinds in sdk.schema #4284

Merged
merged 7 commits into from
Sep 30, 2020

Conversation

yeze322
Copy link
Contributor

@yeze322 yeze322 commented Sep 28, 2020

Description

closes #4107

Problem: If a $kind is defined in uischema but not defined in sdk.schema, it will still be shown in the Action flyout menu.

Solution: This PR fixes that problem by filtering those $kinds not exist in sdk.schema, only when a $kind is defined correctly in both sdk.schema and uischema will it appear as a flyout option.

To validate this PR, try removing a $kind's definition in sdk.schema, you will find that the removed Action is also removed from Action flyout menu.

Task Item

#4107

Screenshots

@coveralls
Copy link

coveralls commented Sep 30, 2020

Coverage Status

Coverage increased (+0.02%) to 55.424% when pulling c768f2b on yeze322:uischema/menu-filter into 87477bc on microsoft:main.

@yeze322 yeze322 marked this pull request as ready for review September 30, 2020 05:44
@cwhitten cwhitten merged commit 1d272a8 into microsoft:main Sep 30, 2020
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…osoft#4284)

* filter $kinds not in sdk.schema from menu config

* update comment

* use forEach instead of reduce

* fix UT

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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Actions appears in the menu flyout even when it's not in sdk.schema
4 participants