-
Notifications
You must be signed in to change notification settings - Fork 26
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
Create a prefill plugin to prefill with values from an external reference (initially only for Objects API) #4396
Comments
This was referenced Jun 17, 2024
vaszig
added a commit
that referenced
this issue
Jul 26, 2024
vaszig
added a commit
that referenced
this issue
Aug 22, 2024
vaszig
added a commit
that referenced
this issue
Aug 22, 2024
vaszig
added a commit
that referenced
this issue
Aug 23, 2024
vaszig
added a commit
that referenced
this issue
Aug 23, 2024
vaszig
added a commit
that referenced
this issue
Aug 23, 2024
vaszig
added a commit
that referenced
this issue
Aug 23, 2024
vaszig
added a commit
that referenced
this issue
Aug 23, 2024
9 tasks
vaszig
added a commit
that referenced
this issue
Aug 23, 2024
vaszig
added a commit
that referenced
this issue
Aug 23, 2024
vaszig
added a commit
that referenced
this issue
Aug 26, 2024
vaszig
added a commit
that referenced
this issue
Aug 26, 2024
This will be used to store all the needed configuration-options for the prefill plugin
vaszig
added a commit
that referenced
this issue
Aug 26, 2024
This is based on retrieving the specific objecttype version and based on the JsonSchema we define the available attributes.
vaszig
added a commit
that referenced
this issue
Aug 27, 2024
This is not the whole prefill plugin functionality. This commit handles the procedures in order to be able to send to the frontend the available attributes (for mapping the form variable with the objecttype attribute) depending on the selected objecttype's version.
vaszig
added a commit
that referenced
this issue
Aug 27, 2024
vaszig
added a commit
that referenced
this issue
Aug 27, 2024
This is not the whole prefill plugin functionality. This commit handles the procedures in order to be able to send to the frontend the available attributes (for mapping the form variable with the objecttype attribute) depending on the selected objecttype's version.
vaszig
added a commit
that referenced
this issue
Oct 10, 2024
sergei-maertens
pushed a commit
that referenced
this issue
Oct 11, 2024
vaszig
added a commit
that referenced
this issue
Oct 15, 2024
vaszig
added a commit
that referenced
this issue
Oct 18, 2024
vaszig
added a commit
that referenced
this issue
Oct 18, 2024
sergei-maertens
pushed a commit
that referenced
this issue
Oct 23, 2024
vaszig
added a commit
that referenced
this issue
Oct 24, 2024
sergei-maertens
pushed a commit
that referenced
this issue
Oct 25, 2024
sergei-maertens
added a commit
that referenced
this issue
Oct 25, 2024
Seems to pass the tests and simplifies the code a little. The try-except should not happen because of the way form variables are created/synced from formio definitions, and if it happens, we want to be notified of it via error monitoring. Additionally, we can apply the post-processing special treatment for component sources, and leave the default behaviour for everything else, rather than potentially missing some cases if additional sources get added in the future. The variable itself is already mutated during the saving of prefill data, so just updating the dict holding the [key, value] pairs is sufficient.
sergei-maertens
added a commit
that referenced
this issue
Oct 25, 2024
sergei-maertens
added a commit
that referenced
this issue
Oct 25, 2024
…refill-implement-plugin [#4396] Objects API prefill plugin
reopening because I can't tell if anything else is needed for this ticket 😬 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add advanced settings for Objects API registration to store the necessary config (with a button to populate it from the registration configuration). These advanced settings should contain:
Replace the current way of prefilling in the form Variables tab by adding a button-> this modal already exists, the implementation of the form is part of #4608Configure
to open a modal. In this modal you can configure the required prefill information and also modify the general config for the Objects API prefill.Based on the selected
plugin
the other fields might vary. I think our current prefill options only requirePrefill attribute
andPrefill identifier role
. For the Objects API plugin, we should also show theadvanced settings
mentioned above and indicate that this is form level configuration. We could split the modal to indicate the difference between this form level config and the variable level config. This modal is to avoid having to switch back and forth between tabs and reopening the modal, which isn't great UXThe text was updated successfully, but these errors were encountered: