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 · 1 comment · May be fixed by #19670
Open

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

a-wallen opened this issue Sep 21, 2024 · 1 comment · May be fixed by #19670

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.

@a-wallen
Copy link
Contributor Author

@Philzen could you assign this to me?

@a-wallen a-wallen linked a pull request Sep 25, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant