-
Notifications
You must be signed in to change notification settings - Fork 312
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
Conversation
9b4f106
to
41e55f7
Compare
3621d50
to
ccbc936
Compare
|
||
public String getValue(String id); | ||
public String getValue(Integer index); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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} | ||
*/ | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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} | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here.
There was a problem hiding this comment.
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
ccbc936
to
fb73cd0
Compare
Forcing merge. The build has passed. Right now the rebase is failing on other flaky tests |
Now scale and offset fields in the asset's channel table are validated according to the mode calculated for the channel as described here.