Skip to content

Refresh the component graph (and pipeline formulas) when it is updated #1079

Open
@llucax

Description

@llucax

What's needed?

We need to be able to pick up and adapt to changes in the component graph dynamically. This means we need to rebuild formulas in the data pipeline and power manager (at least) to accommodate to the new graph.

Proposed solution

Alternatives

Polling

The solution we can implement now would be to poll the microgrid API (fetch components and connections) every some amount of time, compare the new component graph to the current one, and trigger an update if it changed.

Event based

We could have a more efficient way to detect changes if the microgrid API is extended to add an RPC that streams updates to the component graph.

Updates

We would need to update all the affected formulas in the data pipeline, like formulas in *Pools, etc. and the power manager to also adapt to the new graph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:data-pipelineAffects the data pipelinepart:microgridAffects the interactions with the microgridtype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    Status

    To do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions