Skip to content

✨(backend) add a public_search API view to the Document viewset#2068

Open
Ash-Crow wants to merge 1 commit intomainfrom
sbl-search-public-docs
Open

✨(backend) add a public_search API view to the Document viewset#2068
Ash-Crow wants to merge 1 commit intomainfrom
sbl-search-public-docs

Conversation

@Ash-Crow
Copy link
Collaborator

@Ash-Crow Ash-Crow commented Mar 18, 2026

Purpose

This allows searching (on document titles only) on a public document and related public documents on the same tree.

A new get_highest_public_ancestor() helper method is also added to the Document model.

Fixes the backend part of #1826

Proposal

  • Add a public_search() method on the DocumentViewSet
  • Add a get_highest_public_ancestor() method on the Document model.

@Ash-Crow Ash-Crow force-pushed the sbl-search-public-docs branch 2 times, most recently from e0ed891 to bfa5a48 Compare March 18, 2026 11:17
@Ash-Crow Ash-Crow requested a review from lunika March 18, 2026 11:23
@Ash-Crow Ash-Crow force-pushed the sbl-search-public-docs branch 3 times, most recently from 8e716e7 to ab27d46 Compare March 18, 2026 15:40
@Ash-Crow Ash-Crow force-pushed the sbl-search-public-docs branch 6 times, most recently from 56a3462 to 8d3fd44 Compare March 24, 2026 14:20
This allows searching (on document titles only) on a public documents
and related public documents on the same tree.

A new get_highest_public_ancestor() helper method is also added to the
Document model.
@Ash-Crow Ash-Crow force-pushed the sbl-search-public-docs branch from 8d3fd44 to b6a21ad Compare March 24, 2026 14:27
@Ash-Crow Ash-Crow requested a review from lunika March 24, 2026 16:06
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