Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Allow OpacApi functions to return intermediate results #607

@johan12345

Description

@johan12345

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions