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

feat(web2): Added dynamic validator for scale and offset fields #5530

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

salvatore-coppola
Copy link
Contributor

Now scale and offset fields in the asset's channel table are validated according to the mode calculated for the channel as described here.


public String getValue(String id);
public String getValue(Integer index);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you changed the way the resource is got? Key vs. index?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was required to extract the LegacyChannelModel if I'm not wrong. The class was a mess

/**
* This is a copy of {@code org.eclipse.kura.type.DataType}
*/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you needed to copy this class?

Copy link
Contributor Author

@salvatore-coppola salvatore-coppola Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we need it in the client part of webui

* Scale and Offset.
*
* This is a copy of {@code org.eclipse.kura.channel.ScaleOffsetType}
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we need it in the client part of webui

@MMaiero
Copy link
Contributor

MMaiero commented Nov 22, 2024

Forcing merge. The build has passed. Right now the rebase is failing on other flaky tests

@MMaiero MMaiero merged commit 49d787c into develop Nov 22, 2024
2 of 3 checks passed
@MMaiero MMaiero deleted the scale-offset-to-string-type branch November 22, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants