-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Fix missing stateDescriptionProvider in Group items #3144
Conversation
The stateDescriptionProvider was not properly passed to the base item. Because of that units set in the state description were not properly used when setting the griup state after calculating aggregation functions. Signed-off-by: Jan N. Klug <github@klug.nrw>
Nice catch. I am wondering if we should override the getter methods too and return the |
I guess that's not needed as they are the same. The base item is not allowed to be accessed except for instance checks (according to the JavaDoc). |
Hm, are you sure? If we override the setter and do not set the internal property it will be In ItemRegistryImplTest is a nice place to add a test case. Line 383 in ad936cd
|
Forget my comment. I missed the super calls. |
But we call |
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.
LGTM. Thanks.
Will you add a unit test?
* Fix missing stateDescriptionProvider in Group items The stateDescriptionProvider was not properly passed to the base item. Because of that units set in the state description were not properly used when setting the group state after calculating aggregation functions. Signed-off-by: Jan N. Klug <github@klug.nrw> GitOrigin-RevId: 2bceba6
Fixes #2449
The stateDescriptionProvider was not properly passed to the base item. Because of that units set in the state description were not properly used when setting the griup state after calculating aggregation functions.
Signed-off-by: Jan N. Klug github@klug.nrw