-
Notifications
You must be signed in to change notification settings - Fork 51
Describe errors that are to be "expected" #561
Comments
Related: #560 |
Can be integrated with #390 |
I created a wiki-page to describe current status at https://github.com/eclipse/kuksa.val/wiki/KUKSA.val-gRPC-interfaces. I suggest we first document current status on wiki, then we can decide what changes that are needed in the short term so that we create "real" documentation first when the obvious gaps have been fixed |
@erikbosch I have read the wiki page you have created and I believe it is a good start. I have some comments/questions but I am not sure where/how to post them. Do you want me to fork the wiki repo and create a PR? Or would you rather have me cite the corresponding sections here in this issue? |
I assume you do not have access to edit it, otherwise an option could be to add discussion points directly in it. Forking/copying it and highlight problems or proposed changes and reference that from this issue could possibly be an idea. |
It is unclear (i.e. unspecified) under which circumstances, which of the error fields (global or per Data Entry) will actually be used. One more fundamental issue I see with being able to e.g. update multiple Data Entries in one call, is that it is unclear (i.e. unspecified) what happens if a subset of the Data Entries could be updated, but the others could not, e.g. due to wrong data type being used. Would this result in no entries being updated at all? It also feels a little odd that, with this approach, the invocation seemed to have succeeded, but then you still need to inspect the error fields. Which, BTW, is a PITA because it means iterating through the whole data structure in order to determine if any of the Data Entry level error fields is set. So, FMPOV the most important thing would be to actually properly document the error behavior of the gRPC API, because currently, it is basically a guessing/trial-and-error game ... Apart from that, using the (extended) error info in the Status object makes more sense to me than encapsulating the error info in the response message(s). |
We are about to archive this repo soon. If you consider this issue as important please file a new issue at one of the new Kuksa repos at https://github.com/eclipse-kuksa |
We sort of have the (unwritten?) alignment that error codes/reasons should be "aligned to VISS", we should document which errors are to be expected in the kuksa.val.v1 API under which conditions on the individual API calls
Should likely be markup in this repo, or - if there is some standard for that - could be documented inside the proto files
The text was updated successfully, but these errors were encountered: