-
Notifications
You must be signed in to change notification settings - Fork 188
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
Enhance Static Properties by UI validation #2144
Comments
Hi @bossenti, I looked at the adapters creation page and saw some validation is already in place. For example: Could you please clarify what properties you are referring to and where they can be found? |
Hi @IsaakKrut, |
@tenthe it does not, but it shows an error with exception stack trace when it tries to connect and guess the schema. I did find 3 adapters that do not have UI validation on their port fields: OPC UA, PLC4X MODBUS, ROS Bridge |
Ok great. Then this is a good starting point for this issue. Perhaps we can make a list of the places where validation does not work. |
* #2144 updated port number fields to Integer type for ui validation * #2144 added migration for Plc4xModbusAdapter * #2144 added migration for Plc4xModbusAdapter * #2144 added migration V2 for OpcUaAdapter * #2144 added migration V2 for OpcUaAdapter * #2144 added migration for RosBridgeAdapter * checkstyle changes * #2144 Added migration test for Plc4xModbusAdapter * #2144 Added migration test for RosBridgeAdapter * #2144 Added migration test for OpcUaAdapterMigrationV2 * fix(#2144): Fix label generation for migrated elements * fix(#2144): Set default static property values for adapter instance * fix(#2144): Set default static property values for adapter instance * Updated OpcUaAdapterMigrationTest (#2454) * fix(#2144): Rename test for opc migration v2 * fix(#2144): Add methods to provide default if not set by user * fix(#2144): Change logic of opc ua migration * fix(#2144): Update modbus adapater migration * fix(#2144): Update ros bridge adapter migration * fix(#2144): Change default value of replaceTitles --------- Co-authored-by: Isaak <[email protected]>
Body
Currently, user input that is collected via the UI when configuring adapters & pipeline elements is not validated, e.g., for being an integer.
This can lead to frustration for the end user.
Therefore, we should try to build in validation for our static properties so that at least data types are validated automatically and maybe even additional validation criteria can be defined.
StreamPipes Committer
I acknowledge that I am a maintainer/committer of the Apache StreamPipes project.
The text was updated successfully, but these errors were encountered: