-
Notifications
You must be signed in to change notification settings - Fork 95
[OCRVS-11571] Metadata fields #11759
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
base: release-v1.9.8
Are you sure you want to change the base?
Conversation
|
Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:
|
| id: 'identity.certificateId', | ||
| type: FieldType.TEXT, | ||
| parent: field('identity.http-fetch'), | ||
| parent: event.declaration('identity.http-fetch'), |
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.
This is not part of event declaration. It is a separate action form field.
| { | ||
| type: ConditionalType.SHOW, | ||
| conditional: not(field('identity.certificateId').isFalsy()) | ||
| conditional: not( |
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.
This is not part of event declaration. It is a separate action form field.
| { | ||
| type: ConditionalType.SHOW, | ||
| conditional: field('identity.http-fetch') | ||
| conditional: event |
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.
This is not part of event declaration. It is a separate action form field.
makelicious
left a comment
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.
Overall looks good.
Does it feel ergonomic? Do we anticipate that everyone just destructs the event and goes forward with
const { declaration, metadata } = event
stylistic thing, so no biggie.
I commented on few places where I noticed that the ambiguity of previous field() method went unnoticed.
I dug deeper and it seems to be more recent change, reviewed by yours truly:
#11380
I did not remember that, so that's on me. However, we are in a situation where event.declaration is used for items that are not part of event declaration.
parent: event.declaration('identity.http-fetch'),
@naftis what was the need for this, is there a way around it, or to create a separate helper?
|
Thanks @makelicious. I'm also thinking is there a need to distinguish between a field reference and a declaration value reference would then be more a reference. Or is it always just depending on context? |
|
@makelicious The fix was to allow custom action form fields to depend on custom action form fields. So for example you can now have a custom action with a "fetch NID" -button that populates a text field. Before the PR, the I did not consider new helpers etc, in my mind: field = a field in the FormFieldGenerator |
|
Let's list down the references we want to provide for configuration purposes:
Any other use cases come to mind? We probably need to maintain clear boundaries among them |
Description
Clearly describe what has been changed. Include relevant context or background.
Explain how the issue was fixed (if applicable) and the root cause.
Link this pull request to the GitHub issue (and optionally name the branch
ocrvs-<issue #>)Checklist