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

Expose declared layers from resources in endpoint-description to frondent for filtering #70

Open
Querela opened this issue Apr 17, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Querela
Copy link
Contributor

Querela commented Apr 17, 2023

Endpoints use the endpoint description to specify resources, search capabilities and in case of ADV search which layers are searchable. It would be nice to forward those [resource layer definitions] to the frontend to only show/highlight those resources or fields (layers) that can be searched. Otherwise, endpoints will always respond with some diagnostic (either simplifying the query or not performing a search at all). Communicating this to the user makes it more clear what can be searched.

  • only showing those layers/fields in the Advanced Search QueryBuilder that can be search (for a selected resource-subset)
  • some way of showing which layers are available either in the resource (collection) dialog or on the about/stats page
  • some way to select resources by which layer is available (like grouping by language/institute)?

It probably would be good to still send the queries to endpoints/resources that tell us they do not support some layer to keep the behaviour as is. But selecting fields/resources for searching can be improved.

@Querela Querela added the enhancement New feature or request label Apr 17, 2023
@Querela Querela self-assigned this Apr 17, 2023
@Querela
Copy link
Contributor Author

Querela commented May 23, 2023

NOTE: also expose resolved capabilities of resources? I.e. use the capabilities of the endpoint as a basis and for each resource then reduce the set to those that are really usable? That means an endpoint with advanced-search capability can have resources that do not respond with an advanced data view so they should in effect only have the basic-search capability.
This will allow to improve the frontend to only show resources for specific query types that the resource really can handle. And while now the aggregator can send requests with unsupported query types to some resources (really an edge case), the endpoints should respond with (non-)fatal diagnostics. This would for certain cases reduce the amount of requests being sent and also improve response times if one endpoint has many resources with different capability (data view) sets.

@Querela
Copy link
Contributor Author

Querela commented Jun 16, 2023

See commit: dcadb41

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

No branches or pull requests

1 participant