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

Improve UI/UX related to Call Interceptor Service Policy by supporting an Enum Array input type #12854

Open
ashera96 opened this issue Apr 15, 2022 · 0 comments
Labels

Comments

@ashera96
Copy link
Contributor

Describe your problem(s)

Currently, the Call Interceptor Service policy has an attribute named Includes to Payload. This policy attribute is of type String (refer to [1]). Instead of expecting the user to type in the expected input as a comma-separated list, give an option to select the values from a dropdown menu.

image

[1] https://github.com/wso2/product-apim/blob/master/modules/distribution/resources/operation_policies/specifications/ccCallInterceptorService_v1.json#L21

Describe your solution

To achieve this we need to introduce a new policy attribute type named Enum Array (right now we only support String, Integer, Boolean, and Enum). With this improvement, the user should be able to select from a list of checkboxes rather than typing in a comma-separated list of values. You can re-use a UI component like so to improve the policy related UI/UX.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant