-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix DAG trigger UI error for DAGs with parameters #56833
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
Fix DAG trigger UI error for DAGs with parameters #56833
Conversation
|
the simple auth manager change is from prek hook |
The API endpoint for DAG details was returning only resolved parameter values instead of the full parameter schema, causing a "Cannot read properties of undefined (reading section)" error in the UI when triggering DAGs with parameters. This was a regression introduced in commit 5d58c04 which changed `v.dump()` to `v.resolve()` in the params serialization. Changes: - Add `serialize()` method to `SerializedParam` to return the full parameter structure (value, description, schema) - Update API field validator to use `serialize()` instead of `resolve()` - Update tests to expect the correct parameter format The API now returns params in the format expected by the frontend: {"param_name": {"value": <val>, "description": <desc>, "schema": {...}}}
6a5c568 to
173f4a4
Compare
|
PR to fix this was already raised - #56831 |
|
I'd also favor #56831 over this one because it is a bit more complete (includes task and not only dag) and was earlier. Nevertheless still both do not full fix the problem. The Dag "Params Trigger UI" is repaired but still Dag "Params UI tutorial" raises an error and form is empty: |
|
Closing this in favor of #56831 |
The API endpoint for DAG details was returning only resolved parameter
values instead of the full parameter schema, causing a "Cannot read
properties of undefined (reading section)" error in the UI when
triggering DAGs with parameters.
This was a regression introduced in commit #55111 which changed
v.dump()tov.resolve()in the params serialization.Changes:
serialize()method toSerializedParamto return the full parameter structure (value, description, schema)serialize()instead ofresolve()The API now returns params in the format expected by the frontend:
{"param_name": {"value": , "description": , "schema": {...}}}
Error when you hit
triggeron dag run page:cc: @kaxil