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

Remove deprecated strict super seeding mode from advanced settings #12423

Merged
merged 1 commit into from Apr 11, 2020
Merged

Remove deprecated strict super seeding mode from advanced settings #12423

merged 1 commit into from Apr 11, 2020

Conversation

ghost
Copy link

@ghost ghost commented Apr 5, 2020

No description provided.

src/base/bittorrent/session.cpp Outdated Show resolved Hide resolved
Chocobo1
Chocobo1 previously approved these changes Apr 6, 2020
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

glassez
glassez previously approved these changes Apr 6, 2020
Copy link
Member

@glassez glassez left a comment

Choose a reason for hiding this comment

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

Shouldn't Web API version be changed?

Copy link
Member

@FranciscoPombal FranciscoPombal left a comment

Choose a reason for hiding this comment

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

Shouldn't Web API version be changed?

Yes, this is a breaking change.

@An0n666
Don't forget WebAPI middle-version bump.

@ghost ghost dismissed stale reviews from glassez and Chocobo1 via 026aad2 April 7, 2020 03:55
@@ -43,7 +43,7 @@
#include "base/utils/net.h"
#include "base/utils/version.h"

constexpr Utils::Version<int, 3, 2> API_VERSION {2, 4, 1};
constexpr Utils::Version<int, 3, 2> API_VERSION {2, 5, 0};
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should preserve API version from previous release in comment near it? It will allow version management easier, IMO.

Copy link
Member

Choose a reason for hiding this comment

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

It's easy enough to just use git for checking what the previous version was:
git log -L 46,46:src/webui/webapplication.h. Or, if the line number changes in the meantime: git log -p -S "API_VERSION" -- src/webui/webapplication.h or even git log -p -S "API_VERSION" -- src/webui (you get the idea). For those using IDEs, it's even less of a problem, since a lot of them allow showing the git history inline/side-by-side.
Introducing a comment will just introduce another place that has to changed every time.

Copy link
Member

Choose a reason for hiding this comment

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

It's easy enough to just use git for checking what the previous version was:

I don't propose to store previous API version. I propose to store API version from previous qBittorrent release.

Copy link
Member

Choose a reason for hiding this comment

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

@glassez
I see. There is this: git log -L 46,46:src/webui/webapplication.h $(git rev-parse release-4.2.1)..HEAD -- but it only works correctly if you are checked out in the branch that both ends of the commit revision belong to. So for example executing the above on master rather than v4_2_x would not yield the "intuitive" result, nor would using $(git rev-parse release-4.1.9)..HEAD -- on 4_2_x or master. I'm sure there is way, but I am not a super expert in git.

I don't mind the decision either way.

Copy link
Member

Choose a reason for hiding this comment

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

I suppose we can do it later as not to block this PR.

@Chocobo1 Chocobo1 merged commit c25b3e6 into qbittorrent:master Apr 11, 2020
@Chocobo1
Copy link
Member

@An0n666
Thank you!

@ghost ghost deleted the remove-strict-superseeding branch April 21, 2020 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants