Skip to content
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

Closed
bossenti opened this issue Nov 6, 2023 · 4 comments
Closed

Enhance Static Properties by UI validation #2144

bossenti opened this issue Nov 6, 2023 · 4 comments
Labels
connect Related to the `connect` module (adapters) enhancement New feature or request pipeline elements Relates to pipeline elements ui Anything that affects the UI
Milestone

Comments

@bossenti
Copy link
Contributor

bossenti commented Nov 6, 2023

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.

@bossenti bossenti added this to the 0.95.0 milestone Nov 6, 2023
@bossenti bossenti added enhancement New feature or request ui Anything that affects the UI pipeline elements Relates to pipeline elements connect Related to the `connect` module (adapters) labels Nov 6, 2023
@IsaakKrut
Copy link
Contributor

Hi @bossenti, I looked at the adapters creation page and saw some validation is already in place. For example:
image

Could you please clarify what properties you are referring to and where they can be found?

@tenthe
Copy link
Contributor

tenthe commented Dec 22, 2023

Hi @IsaakKrut,
can you please check if the validation also validates that the input is an integer?
Is there an error message when you enter "9092.0"?

@IsaakKrut
Copy link
Contributor

@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

@tenthe
Copy link
Contributor

tenthe commented Dec 27, 2023

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.

IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 7, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 8, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 8, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 8, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 8, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 8, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 9, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 17, 2024
IsaakKrut added a commit to IsaakKrut/streampipes that referenced this issue Jan 17, 2024
tenthe added a commit that referenced this issue Mar 6, 2024
* #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]>
@tenthe tenthe closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connect Related to the `connect` module (adapters) enhancement New feature or request pipeline elements Relates to pipeline elements ui Anything that affects the UI
Projects
None yet
Development

No branches or pull requests

3 participants