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

Allow OpacApi functions to return intermediate results #607

Open
johan12345 opened this issue Dec 12, 2020 · 0 comments
Open

Allow OpacApi functions to return intermediate results #607

johan12345 opened this issue Dec 12, 2020 · 0 comments

Comments

@johan12345
Copy link
Collaborator

E.g. if the API is waiting for some slow AJAX requests for non-essential data (e.g. search result status) to load, it could already pass an intermediate result to the app, so that it can be displayed more quickly.

Our current idea how to implement this is to add an optional callback as a parameter to search (and other functions, such as searchGetPage and account) that allows the API to pass an "intermediate result" - so in this case, a SearchRequestResult without statuses - and then give the final result as the return value of the search function once all statuses are fetched.

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

No branches or pull requests

1 participant