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

Search entities should allow filtering by book or chapter id #5406

Open
helderjsm opened this issue Jan 13, 2025 · 1 comment
Open

Search entities should allow filtering by book or chapter id #5406

helderjsm opened this issue Jan 13, 2025 · 1 comment

Comments

@helderjsm
Copy link

API Endpoint or Feature

The API endpoint for searching entities should allow for filtering by chapter_id and or book_id.

Use-Case

When using bookstack as documentation repository for multiple projects one requires the ability to search by book_id to limit results to the project that it applies to.

Additional context

Currently trying to filter by tags returns entities from different books which requires in-code pagination.
Not only pagination in code is slower and forces too much data to be returned and parsed from the API but also the fact that the sorting is broken makes it impossible to obtain a list of paginated results after 100 entities.

Please note that there is a separate bug that makes correct pagination impossible when using filters. Searching for entities with paginated results leads to random sorting, causing inconsistencies in the order of results on subsequent result pages.

@helderjsm
Copy link
Author

Pull request open here #5402.

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

No branches or pull requests

1 participant