Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

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 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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