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

WebUI: Add "isPrivate" filter for 'info' API #20833

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ManiMatter
Copy link
Contributor

@ManiMatter ManiMatter commented May 13, 2024

It is already possible to filter the "info" response by hashes, status, tag, category.
Since the "isPrivate" flag has been added in #20686, it would be nice if it was possible to also pre-filter the response by this attribute.

I have - to the best of my abilities - implemented the code, but it is at the edge of my skills and I would appreciate your review.

The failed checks seem macOS related and affecting any PRs right now, thus not triggered by the changes I propose here

@thalieht thalieht added the WebAPI WebAPI-related issues/changes label May 13, 2024
@ManiMatter ManiMatter force-pushed the info-API-filter-by-isPrivate-flag branch 3 times, most recently from 31955e6 to 37ee324 Compare May 13, 2024 13:37
@ManiMatter ManiMatter force-pushed the info-API-filter-by-isPrivate-flag branch from 37ee324 to 44e71b0 Compare May 13, 2024 13:41
src/base/torrentfilter.h Outdated Show resolved Hide resolved
src/base/torrentfilter.h Outdated Show resolved Hide resolved
src/base/torrentfilter.h Outdated Show resolved Hide resolved
src/webui/api/serialize/serialize_torrent.h Outdated Show resolved Hide resolved
src/webui/api/torrentscontroller.cpp Outdated Show resolved Hide resolved
src/base/torrentfilter.cpp Outdated Show resolved Hide resolved
src/base/torrentfilter.cpp Outdated Show resolved Hide resolved
src/base/torrentfilter.cpp Outdated Show resolved Hide resolved
@glassez glassez requested review from a team May 16, 2024 13:19
@glassez glassez added this to the 5.0 milestone May 16, 2024
@ManiMatter ManiMatter requested a review from glassez May 16, 2024 16:50
@ManiMatter
Copy link
Contributor Author

@glassez Thanks having included this on milestone 5.0, and for having reviewed the code. I was not able to figure out how to test whether the feature works properly. Just wanted to check if you had a chance to test if it actually works?

Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebAPI WebAPI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants