-
-
Notifications
You must be signed in to change notification settings - Fork 423
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
Persisted group items with base type Number:Dimension not restored correctly in persistence extensions #4254
Comments
I got a little bit further in my analysis. I converted the above rules to DSL to exclude the potential impact of javascript. I see exactly the same behaviour of the |
I wrote a specific test for this in the persistenceExtension, putting exactly the values I have in this failure in the test. The test passes without problem. |
I found the problem. Persistence extension have an issue with GroupItems and QuantityTypes. A persisted GroupItem will not return the persisted value. I am creating a fix. |
I have a rule retrieving data from persistence and doing calculations in it. I was able to isolate it and here is a js rule (with a working and failing example), and the result in the log:
Output:
Notice the js deltaSince call fails in the second example. The only reasonable explanation I have is that
PVEmeter
has too many positions and the calculation fails in the persistence extension.There may be an error introduced with #3736. I worked through the code and I don't see an obvious reason there.
But I am also wondering if #4198 could have something to do with it.
This is on my production system, and I have not been able so far to replicate this in a development environment.
The text was updated successfully, but these errors were encountered: