Skip to content
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

Return partial data on error? #215

Open
carolynvs opened this issue Jun 2, 2020 · 0 comments
Open

Return partial data on error? #215

carolynvs opened this issue Jun 2, 2020 · 0 comments

Comments

@carolynvs
Copy link
Contributor

When retrieving a list of entities fails, can we still return a partial list of entities and an error? Right now, this applies to ReadAll, where we may hit an error reading a single value and it would probably be good to continue returning what we could read and let the tool decide if they want to display partial results and deal with the error.

For example, one of the items may have been marshaled using an older data format but something like that causing the entire list of items to be unretrievable would make the situation worse.

After #212, there are even more functions that return lists of items and this concern/strategy applies. Specifically if we are listing installations, and one has a problem, it would be a real problem if that prevented us from listing ALL installations.

So let's come up with a pattern for how to indicating that a partial set of data was returned along with the error. This most likely has strong overlap with any solution for adding concurrency to our persistence layer (#214).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant