texera
texera copied to clipboard
Show SchemaPropagation error early during editing time as Messages
This PR fixes several issues with SchemaPopagation, enabling early feedback to the user during editing a workflow.
SchemaPopagation is used in two places:
- When the user changes operator properties, editing links, schema propagation would be triggered.
- When the user executes the workflow, schema propagation would be triggered during workflow compilation.
Previously, errors during Schema Propagation are surpassed and result in an empty schema, and users will receive runtime errors when the schema is incomplete only during the 2nd scenario, which is during the workflow compilation.
This PR
- Does not surpass exceptions during Schema Propagation, instead, we format it to better show to the frontend users.
- Moves such runtime error to the earlier editing phase, which is the 1st scenario. User will receive a Message to indicate something goes wrong with the schema propagation while editing the workflow, and will be able to interactively fix it before submit the problematic workflow for execution.
Discussion 1/11: Zuozhi will work with Yicong to merge this to master
Discussion 2022.05.12: Yicong & Zuozhi said again they will work on it.
Discussion 2022.12.07: We will close this.