Closed thomas-nicolai-frequenz closed 3 months ago
This is a long diff. Am I understanding correctly that these are only changes in name and structure, so basically the old and the new stuff can still be mapped 1-1?
The numbers in the diff change/reassign things to different names, but as far as I recall, in protobuf you should avoid re-assigning numbers as much as possible.
I assume that is also what Luca is referring to?
Nope. Reassigning numbers in protobuf should be definitely be avoided, as it will fuck up everything, but since we are still in "development" mode I think it is OK, it also happened in the microgrid and common APIs. I was just trying to make sure this change is only about changing names/protobuf IDs but there is no really new feature added or removed, that they are just cosmetic changes.
This is a long diff. Am I understanding correctly that these are only changes in name and structure, so basically the old and the new stuff can still be mapped 1-1?
No, this also modifies e.g. the response message from Create, and List
What's needed?
We need to restructure the API to improve alignment with the other APIs and make it easier extendable. Moreover we need a more clear seperation of concerns.
Proposed solution
Use cases
No response
Alternatives and workarounds
No response
Additional context
Additional change to the duration field that can be incorporated into this PR is https://github.com/frequenz-floss/frequenz-api-dispatch/issues/162 and https://github.com/frequenz-floss/frequenz-api-dispatch/issues/151