-
Notifications
You must be signed in to change notification settings - Fork 20
Remove power distribution results from Report objects
#998
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
Remove power distribution results from Report objects
#998
Conversation
|
Draft until channel release with |
a6a50ca to
09e286e
Compare
|
Based on #1000. |
This is to be able to use the `filter` feature on `Receiver`s that was added in v1.1.0. Signed-off-by: Sahas Subramanian <[email protected]>
This can be used in the BatteryPool that users can use to get a direct stream of the power distributor results. Signed-off-by: Sahas Subramanian <[email protected]>
09e286e to
0927cb9
Compare
|
This is now ready. |
Who doesn't like to get involved in a nice and long name discussion? 😆 |
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.
Just a few small comments.
9423ee9 to
21ef039
Compare
This is a `ReceiverFetcher` which can be used to modify newly created receivers, for example by applying a `map` or a `filter` on them, before returning them. Signed-off-by: Sahas Subramanian <[email protected]>
This would stream results only for the batteries that are part of the pool. Signed-off-by: Sahas Subramanian <[email protected]>
And replace them with the separate distribution result stream from `*Pool`s, like `battery_pool.power_distribution_results.new_receiver()` for battery pools. The `distribution_result` field from the `Report` classes would be removed in subsequent commits. Signed-off-by: Sahas Subramanian <[email protected]>
This should reduce the number of `Report`s sent out by the PowerManager. Signed-off-by: Sahas Subramanian <[email protected]>
Signed-off-by: Sahas Subramanian <[email protected]>
Signed-off-by: Sahas Subramanian <[email protected]>
21ef039 to
f0128f0
Compare
Instead, this PR makes the power distribution results available directly from the
*Pools.This should go some way towards reducing the frequency of
Reportobjects as reported in #818