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

[REQ] zapier: add a different predicate to qualify createActions #19636

Open
a-wallen opened this issue Sep 21, 2024 · 0 comments
Open

[REQ] zapier: add a different predicate to qualify createActions #19636

a-wallen opened this issue Sep 21, 2024 · 0 comments

Comments

@a-wallen
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Right now, actions are considered "createActions" by not being a "searchAction".

Users may have more complex predicates to qualify a new create action rather than "!searchAction".

createActions: () => Object.entries(actions).reduce((actions, [key, value]) => !isSearchAction(key) ? {...actions, [key]: value} : actions, {}),

Describe the solution you'd like

Generate a function called isCreateAction which returns true or false to qualify the createAction. It's default implementation can be "!searchAction" but at least the user can delete this behavior and provide their own.

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

No branches or pull requests

1 participant