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

feat(schema): Add steadyState property on FieldSchema #721

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

kola-er
Copy link
Contributor

@kola-er kola-er commented Nov 6, 2023

Adds an optional property steadyState on the FieldSchema to be used with outputFields of polling triggers.

Ticket: https://zapierorg.atlassian.net/browse/PDE-4362

@@ -120,6 +120,10 @@ module.exports = makeSchema(
'Does the value of this field affect the definitions of other fields in the set?',
type: 'boolean',
},
steadyState: {
description: 'Prevents triggering on new output until all values for fields with this property remain unchanged for 2 polls. Can be used to, e.g., not trigger on a new contact until the contact has completed typing their name.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it would be worthwhile to include a note about how this only applies to "Polling Triggers"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it would be helpful. Will include it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@kola-er kola-er merged commit 2b527f1 into main Nov 8, 2023
@kola-er kola-er deleted the PDE-4362 branch November 8, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants