-
Notifications
You must be signed in to change notification settings - Fork 7
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(zeebe): allow number and boolean everywhere #132
Conversation
"optional", | ||
"staticValue" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can't this be "feel": "required"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's because the number/boolean controls wouldn't be displayed, but in that case the template developer may want to express the semantics of the field: "This has to be an expression which returns boolean" for which { type: "Boolean", feel: "required" }
makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My initial reasoning was that "feel": "required"
will always result in just a FEEL editor without further validation. It does no longer offer the Restrictions/UI of Number or Boolean fields. Therefore I think we should disallow it if the result we display would be a Text Input anyway.
You make a valid point and I see how this can offer more options, so I'll add adjust it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we consider static
as a simpler version of staticValue
? I'd imagine both would need explanation anyway, and in these cases I'd prefer the shorter form.
@@ -20,61 +20,16 @@ export const template = { | |||
'type': 'zeebe:input', | |||
'name': 'bar' | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fixture name is now misleading. Let's add some absurd type instead, e.g. type: Car
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missed that one, I adjusted it for every other test. No idea why I did not do it with this one 🙈
adjusted and squashed with previous commits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix the remaining issue and feel free to merge this right away.
97699ca
to
c7c02ad
Compare
staticValue
option for feel, only valid on Number and Booleanrelated to camunda/camunda-modeler#3622