-
Notifications
You must be signed in to change notification settings - Fork 21
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
[WM-2556] Show Literal Input Values #4729
Conversation
@@ -96,6 +96,10 @@ const SubmissionDetailsInputsTable = ({ configuredInputDefinition }: SubmissionD | |||
.source as RecordLookupInputSource; | |||
return h(TextCell, [source.record_attribute]); | |||
} | |||
if (inputTableData[rowIndex].source.type === 'literal') { |
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 don't remember the exact schema definition, but will this also work for Optional literal inputs? If not I wonder if we should also add support for that too?
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.
Hm, that's a good question. I'll try to find a workflow with an optional to try and see how this works.
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 think the fact that it's the source instead of the type means it'll either be a "none" or a "literal", there's no such thing as a "optional literal" source type... but I might be wrong and 100% worth testing!
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.
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.
One comment regarding addition of tests otherwise LGTM!
@@ -96,6 +96,10 @@ const SubmissionDetailsInputsTable = ({ configuredInputDefinition }: SubmissionD | |||
.source as RecordLookupInputSource; | |||
return h(TextCell, [source.record_attribute]); | |||
} | |||
if (inputTableData[rowIndex].source.type === 'literal') { |
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 am not sure what is the state of tests for this component, but it would be good to add some tests for this.
@@ -96,6 +96,10 @@ const SubmissionDetailsInputsTable = ({ configuredInputDefinition }: SubmissionD | |||
.source as RecordLookupInputSource; | |||
return h(TextCell, [source.record_attribute]); | |||
} | |||
if (inputTableData[rowIndex].source.type === 'literal') { |
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 think the fact that it's the source instead of the type means it'll either be a "none" or a "literal", there's no such thing as a "optional literal" source type... but I might be wrong and 100% worth testing!
Quality Gate passedIssues Measures |
Jira Ticket: https://broadworkbench.atlassian.net/browse/[WM-2556]
Summary of changes:
What
Why
Testing strategy