Look into renaming metadata and data fetching RPCs #40
Replies: 4 comments 8 replies
-
There are several points here IMHO.
If I understand correctly, only
I don't see a reason for BTW, do we even need to separate components, connections and microgrid metadata? Could we have a message Microgrid {
Metadata metadata = 1;
ComponentList components = 2;
ConnectionList connections = 3;
} In this case I think it is much clearer that |
Beta Was this translation helpful? Give feedback.
-
Both LGTM Then we should proceed with the following:
|
Beta Was this translation helpful? Give feedback.
-
So, if we all are in agreement here, then I'll create an issue for this, make the changes, and add it to the v0.12.0 milestone. |
Beta Was this translation helpful? Give feedback.
-
Okay, the PR #43 has been updated. I think we can conclude this discussion here. Thank you very much for your valuable feedback! 🚀 |
Beta Was this translation helpful? Give feedback.
-
ATM, we have the following methods for getting metadata and data:
ListComponents
: Lists all components and their metadata.ListConnections
: Lists all connections between components.GetComponentData
: Streams component data from service.GetMetadata
: Returns only the microgrid metadata.The
ListComponents
andGetMetadata
RPC names could be confusing.The rationale for
ListComponents
listing component metadata is convenience. It would otherwise be tedious to fetch just component IDs withListComponents
, and then fetch metadata for specific component IDs using something likeGetComponentMetadata
.The rationale for
GetMetadata
is that it is in theMicrogrid
service, andMicrogrid::GetMetadata
would refer to the metadata of the microgrid.So, do these RPC names make sense, or do they need to change?
cc @leandro-lucarella-frequenz @sahas-subramanian-frequenz
Beta Was this translation helpful? Give feedback.
All reactions