-
Notifications
You must be signed in to change notification settings - Fork 22
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
proposing "warnings" for response meta #105
base: develop
Are you sure you want to change the base?
Conversation
Warnings seem like a much needed item to understand responses where the server wants to indicate information about potential problems with the response which are not outright failures. Especially useful for debugging aggregators.
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.
Although I think this can be potentially helpful, in my opinion this is too much open and we would need to be more precise in the warnings we want to show in this object if we want this to be strictly developed by beacon implementers. I think that we need to find what are the things that we need to know about what is going wrong with the requests (request parameters? filters? any other?) so we can provide the guidelines. I approve this because of the importance of it but I would like this to be discussed.
@costero-e So I feel like changing |
I don't know if it's better to put it as an object or not, what I see is that if we don't specify all the cases in which we want the beacon to return a warning, this will be very generic and I don't know if it will be useful then. |
Unfortunately, the only place to report Beacon ERROR D. |
@costero-e @redmitry I'm actually for keeping the format the way I've submitted (list of strings) since otherwise we run into read-out/interpretation problems, if ill-specified objects are used. So still IMO good as it is (as long as we don't spec warnings objects). The use of the
|
Agree. I would also add the property location: "location" : {
"type": "string",
"format": "json-pointer"
} As I mentioned before the error reporting is quite weak. D. |
@mbaudis The warning schema is more complete now, good job. On the other hand, I don't know if this is too technical. If this is oriented to users that don't have a lot of database or programming knowledge maybe these messages won't help them. But I guess every beacon developer can write the warning messages based on their needs so no problem. @redmitry Can you provide an example of the location property, please? |
@redmitry @costero-e
|
The idea is to use "location" which should locate the problem in json document (basically the input, but BN may use it for the outputs also) But as you said probably too technical. The idea is to provide some additional insight about the error location. D. |
Yes. You can direcly use a GeoJSON object to project onto a map, geofence/query, get stats ... See the linked discussion. Was reminded again by the handmade ELIXIR map of beacons. |
Sorry for jumping in late in the discussion.
In summary, if "warnings" is like a "hack" we should discuss which are the actual issues we are trying to solve and if "warnings" solve them or we need different solutions for different use cases. |
Warnings seem like a much needed item to understand responses where the server wants to indicate information about potential problems with the response which are not outright failures. Especially useful for debugging aggregators.