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

POST variant for /{sourceId}/search endpoint #434

Conversation

martinek
Copy link
Contributor

@martinek martinek commented Nov 3, 2022

This change allows client to call search endpoint with filter values in request body.

Client will be able to simply load source filters and query the source directly, without needing to update filters on server before calling search. This should allow for easier state management and filtering on client.

The filters in body are merged with original source FilterList to prevent unexpected values from filterListCache. Also they are not stored to server cache, so using them have no effect on filterListCache.

@AriaMoradi AriaMoradi requested a review from Syer10 November 4, 2022 18:40
@AriaMoradi
Copy link
Member

Make the changes as discussed on discord.

  • rename the endpoint and have it be a GET request
  • rename change to diff or write a system for transferring whole filter state from a client

@AriaMoradi AriaMoradi merged commit c2a9820 into Suwayomi:master Nov 5, 2022
@martinek martinek deleted the feature/post-transient-filter-with-search-in-single-request branch November 5, 2022 20:08
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