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

Add stalled filters to GUI and Web API/UI #11825

Merged
merged 2 commits into from
Feb 16, 2020

Conversation

FranciscoPombal
Copy link
Member

@FranciscoPombal FranciscoPombal commented Jan 4, 2020

/api/v2/torrents/info can now take the following new values for thefilter parameter: stalled, stalled_uploading and stalled_downloading.

Requires Web API version bump.

Closes #11787

Screenshots:

GUI:
gui

WebUI:
webui

@FranciscoPombal
Copy link
Member Author

@glassez @Chocobo1
Can I get a review, please? I am especially unsure about the web API version bump:

  • Should it be bumped at all, or just lumped in with the v2.4.0 changes?
  • If it should be bumped, should it be squashed or remain as a separate commit?

@Chocobo1
Copy link
Member

Chocobo1 commented Jan 9, 2020

Adds the following filters:
stalled
stalled_up
stalled_down

Is it possible to use them in WebUI/GUI?

@FranciscoPombal
Copy link
Member Author

Is it currently possible to use them in WebUI/GUI?

Nope, it is not currently possible, and I did not touch the WebUI/GUI code. Should I include that in this PR, or is that content for a separate one?

@Chocobo1
Copy link
Member

Chocobo1 commented Jan 9, 2020

Should I include that in this PR, or is that content for a separate one?

I think it should be included in this PR. The changes would not be very useful if it cannot be used.

@FranciscoPombal FranciscoPombal changed the title Web API: added stalled filters for /api/v2/torrents/info Add stalled filters to GUI and Web API/UI Jan 10, 2020
@FranciscoPombal
Copy link
Member Author

@Chocobo1

I think it should be included in this PR. The changes would not be very useful if it cannot be used.

Well, the changes are usable via the WebAPI. Still, I agree that all interfaces should benefit from the change, so I now also implemented the filtering on the WebUI and GUI.

Should I keep the WebAPI version bump commit? These changes could be part of the API version 2.4.0 just as well.

@Chocobo1
Copy link
Member

Should I keep the WebAPI version bump commit? These changes could be part of the API version 2.4.0 just as well.

I'm not really sure. I guess the version should bump only if it hasn't been done before.

@Chocobo1
Copy link
Member

Let's also not forget ping @Piccirello to review the webUI/webAPI parts.

Copy link
Member

@Piccirello Piccirello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Piccirello
Copy link
Member

Piccirello commented Jan 11, 2020

The last release used 2.4.0 so we'll have to bump the version for these changes.

It seems we use a modified semantic versioning: the minor version (x.Y.z) is bumped for breaking changes, and the patch version (x.y.Z) is bumped for new features and bug fixes. The last release probably should have used 2.3.1 instead of 2.4.0. Nevertheless, this will be 2.4.1.

@glassez
Copy link
Member

glassez commented Jan 11, 2020

It seems we use a modified semantic versioning: the minor version (x.Y.z) is bumped for breaking changes, and the patch version (x.y.Z) is bumped for new features and bug fixes.

API versioning has compatibility related semantic: the patch version (x.y.Z) is bumped when we don't break current clients compatibility, and the minor version (x.Y.z) is bumped when we do it. I.e. clients that implement support of API x.y.z remain compatible with all the upcoming API x.y.*.

@FranciscoPombal FranciscoPombal force-pushed the stalled_filter branch 2 times, most recently from df6d8d4 to f0ce709 Compare January 12, 2020 00:42
@Chocobo1
Copy link
Member

@FranciscoPombal
Can upload a screenshot of the filters in the opening post?

`/api/v2/torrents/info` can now take the following new values for the`filter` parameter: `stalled`, `stalled_uploading` and `stalled_downloading`.

Requires Web API version bump.

Closes qbittorrent#11787
@FranciscoPombal
Copy link
Member Author

@Chocobo1 done.

@glassez
Copy link
Member

glassez commented Jan 14, 2020

Since entire app are affected you can (should) rename both PR/commit: Add Stalled filters.

Copy link
Member

@Chocobo1 Chocobo1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (for code)

@Chocobo1
Copy link
Member

@sledgehammer999
What do you think of this PR? It slightly changes the UI and I would rather wait for your opinion before merging.

@ghost
Copy link

ghost commented Feb 8, 2020

Instead of saying "stalled", we could use something more descriptive like utorrent does.
"Finding peers" when there's 0 peers and "Connecting to peers" when there's >=1 seeders but you can't connect with them.

@FranciscoPombal
Copy link
Member Author

Instead of saying "stalled", we could use something more descriptive like utorrent does.
"Finding peers" when there's 0 peers and "Connecting to peers" when there's >=1 seeders but you can't connect with them.

That sounds like a good idea, but it is a little out of scope for this PR and involves some more thorough changes.

@glassez
Copy link
Member

glassez commented Feb 9, 2020

"Finding peers" when there's 0 peers and "Connecting to peers" when there's >=1 seeders but you can't connect with them.

I'm not sure it correctly describes what is really happening...

@Chocobo1
Copy link
Member

@FranciscoPombal
There is nothing wrong with this PR, just waiting for @sledgehammer999 opinion since the PR added more elements to the UI.

@sledgehammer999
Copy link
Member

Thanks.

@sledgehammer999 sledgehammer999 merged commit 322ae3e into qbittorrent:master Feb 16, 2020
@FranciscoPombal FranciscoPombal deleted the stalled_filter branch February 16, 2020 17:57
zeule pushed a commit to zeule/qbit that referenced this pull request Feb 28, 2020
sledgehammer999 pushed a commit to sledgehammer999/qBittorrent that referenced this pull request Mar 21, 2020
sledgehammer999 pushed a commit that referenced this pull request Mar 24, 2020
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.

Add 'stalled' to filter option in torrent list API
5 participants