Custom form configuration #268
No reviewers
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: servala/servala-portal#268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "165-form-configuration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ref #165
Generators are not included yet, as the FQDN field handling requires some hardcoding anyways (and we want it to always be loaded for the expert form, regardless), so I think we should wait with the generators implementation until we need one.
Something is off with the migration:
To unblock myself from testing, I executed (after creating a backup of my local db):
After that, I could start with the testing.
Directly after this, navigating to e.g.
/org/my-acme-7/services/redis/offering/1/no form is shown anymore. I would have expected to see the same form as before because I didn't configure anything yet.Trying to create a new form results in
Invalid form configuration: None is not of type 'integer'. What am I doing wrong?Either allow the fields to be empty or add some defaults.
And when filling in all fields:
You must include a 'name' field in the custom form config.EDIT: Got it, I must map to
name, notmetadata.name. I guess this is one of the fields that we need to hardcode.Added a second fieldset, this somehow broke the view:
A choice field allowed me to enter custom values, but ended up showing the choices from the control plane:
When I enter choices in the form configuration, I'd expect these to be shown (and validated against the available choices in the control plane). When I don't enter choices, the current behavior makes sense to use the available values from the control plane. This way I can override the choices if I'd like to but keep it up to the control plane when I don't configure anything.
On a number field, when setting "Min value" and "Max value" I'd expect the form field to only allow these numbers in the frontend with the up- and down controls. It allows all numbers. The validation works though, a number not in the range gets rejected.
I miss a setting to set a default value on the field.
"Invalid form configuration: '64' is not of type 'integer', 'null'"
Make the "Show Expert Mode" button less prominent, in practice the expert mode should only be used in rare edge cases...
The attached field definition JSON formdef.json breaks the frontend with
not enough values to unpack (expected 2, got 1)stacktrace.txtFor the record:
Missing: Configurable field validatorscan be added laterMissing: Generators, for example, FQDN from namealready works as expected!Additional requirement: Many services share the same fields. So that we don't have to copy/paste between services, predefined and reusable field definitions should be made available. When configuring the service form, allow choosing from pre-defined fields.