-
Notifications
You must be signed in to change notification settings - Fork 85
feat(orchestrator): add fetch:error:ignoreUnready and fetch:response:default options for form widgets #1985
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(orchestrator): add fetch:error:ignoreUnready and fetch:response:default options for form widgets #1985
Conversation
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
|
The The point is to make clear that the error is skipped only at the beginning of the flow, not later when either data or server issues occur. |
|
Next, I'm thinking about the This way, we are reimplenting the tree walk, including the (complex) logic around |
|
|
@mareklibra , thanks for your feedback.
Updated the PR and renamed to For below query,
Why form-level defaults over widget-level: The main issue is field dependencies. If field B's fetch depends on field A's value, and field A has a static default: Widget-level: Both widgets render at the same time, so field B's fetch fires before field A's default is set → causes an extra failed fetch, then a refetch. Form-level: Defaults are set in formData before any widget renders → field B's fetch uses the correct value immediately. Form-level ensures all widgets see the complete initial state from their first render. |
…ptions for form widgets (redhat-developer#1985) * feat: add fetch:error:skip and fetch:response:default options for form widgets * refactor: rename fetch:error:skip to fetch:error:ignoreUnready for clarity
…ptions for form widgets (redhat-developer#1985) * feat: add fetch:error:skip and fetch:response:default options for form widgets * refactor: rename fetch:error:skip to fetch:error:ignoreUnready for clarity
…ptions for form widgets (redhat-developer#1985) * feat: add fetch:error:skip and fetch:response:default options for form widgets * refactor: rename fetch:error:skip to fetch:error:ignoreUnready for clarity



Hey, I just made a Pull Request!
Fixes:
https://issues.redhat.com/browse/RHDHBUGS-2454
https://issues.redhat.com/browse/RHDHBUGS-2453
This PR introduces two new ui:props options for the orchestrator form widgets to improve user experience when working with dynamic forms that depend on fetch operations.
Feature 1: fetch:error:ignoreUnready
Problem: When using widgets with fetch:retrigger dependencies, the initial fetch often fails because dependent fields don't have values yet. This results in HTTP errors (e.g., 404, 400) being displayed to users during initial load, even though this is expected behavior.
Solution: Added fetch:error:ignoreUnready option that suppresses fetch error display until all fetch:retrigger dependencies have non-empty values.
Behavior:
Feature 2: fetch:response:default
Problem: Widgets previously required fetch:response:value for default values, meaning a fetch must succeed for any default to be applied.
This was problematic when:
Solution: Added fetch:response:default option for static default values applied immediately on form initialization.
Key Implementation Details:
Supported Types:
ActiveTextInput: string (e.g., "create")
ActiveDropdown: string (e.g., "default-profile")
ActiveMultiSelect: string[] (e.g., ["tag1", "tag2"])
✔️ Checklist