Skip to content

Add /facets: proxy facet counts to SBOLExplorer - #1765

Open
cl117 wants to merge 2 commits into
masterfrom
facets-via-explorer
Open

cl117 wants to merge 2 commits into
masterfrom
facets-via-explorer

Conversation

@cl117

@cl117 cl117 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

GET /facets forwards the search text and selected facet values to SBOLExplorer's /facets (Elasticsearch aggregations) and returns its counts. The graphs are set here, as in lib/search.js: the public graph plus the logged-in user's graph; a client-supplied graph parameter is ignored, so nobody can count another user's private parts.

Returns 501 when SBOLExplorer is disabled and passes through SBOLExplorer errors (e.g. 404 from a version without /facets) so the frontend can fall back to its SPARQL facet queries.

GET /facets forwards the search text and selected facet values to
SBOLExplorer's /facets (Elasticsearch aggregations) and returns its
counts. The graphs are set here, as in lib/search.js: the public graph
plus the logged-in user's graph; a client-supplied graph parameter is
ignored, so nobody can count another user's private parts.

Returns 501 when SBOLExplorer is disabled and passes through SBOLExplorer
errors (e.g. 404 from a version without /facets) so the frontend can fall
back to its SPARQL facet queries.
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

Successfully merging this pull request may close these issues.

2 participants