Skip to content

fix/docs: Clarify SORTTracker deprecation status#460

Merged
Borda merged 4 commits into
roboflow:developfrom
manan152003:refactor-sort-deprecation
Jun 22, 2026
Merged

fix/docs: Clarify SORTTracker deprecation status#460
Borda merged 4 commits into
roboflow:developfrom
manan152003:refactor-sort-deprecation

Conversation

@manan152003

@manan152003 manan152003 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Clarifies that SORTTracker itself is not deprecated. The deprecated API is only the old tracker.trackers alias, which should be replaced with tracker.tracks.

Related Issue(s): Fixes #454

What does this PR do?

Related Issue(s):

Type of Change

  • Documentation update
  • Refactoring (no functional changes)

Testing

  • I have tested this change locally
  • I have added/updated tests for this change

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code where necessary, particularly in hard-to-understand areas
  • My changes generate no new warnings or errors
  • I have updated the documentation accordingly (if applicable)

@manan152003 manan152003 requested a review from SkalskiP as a code owner June 17, 2026 20:06
@CLAassistant

CLAassistant commented Jun 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@manan152003

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I sign the CLA.

@Borda

Borda commented Jun 18, 2026

Copy link
Copy Markdown
Member

I have read the CLA Document and I sign the CLA.

Can you share screenshot?

@manan152003

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I sign the CLA.

Can you share screenshot?

My bad, I've signed the CLA now!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR clarifies that SORTTracker itself is not deprecated, and instead deprecates the legacy tracker.trackers alias in favor of tracker.tracks, aligning the docs and API messaging with the intended public surface.

Changes:

  • Added a deprecation decorator to SORTTracker.trackers (alias for tracks).
  • Added documentation text clarifying that SORTTracker is not deprecated (only tracker.trackers is).
  • Added a changelog entry describing the clarification/deprecation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/trackers/core/sort/tracker.py Deprecates the trackers alias property in favor of tracks.
docs/trackers/sort.md Adds a note clarifying deprecation status in the SORT docs.
CHANGELOG.md Records the clarification/deprecation in the Unreleased changelog.

Comment thread CHANGELOG.md Outdated
Comment thread docs/trackers/sort.md Outdated
Comment thread src/trackers/core/sort/tracker.py
Borda and others added 2 commits June 22, 2026 17:53
- Change `deprecated_in="2.0"` to `"2.5"` — decorator first added in this PR; all other deprecations in repo use 2.5
- Move CHANGELOG entry from Added → Deprecated with corrected wording; add docs note to Fixed
- Convert sort.md blockquote to `!!! note` admonition and move to after Parameters table
- Add `.. deprecated:: 2.5` RST directive to `.trackers` docstring (matches botsort pattern)
- Add FutureWarning regression test for `.trackers` property
- Add `pydeprecate>=0.7.0` to direct runtime dependencies
- Add `deprecate` to mypy `ignore_missing_imports`

---
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
@Borda Borda merged commit ab5fcd8 into roboflow:develop Jun 22, 2026
18 checks passed
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.

Is Sort Tracking Algorithm is getting deprecated ? Installed via pip, version 2.4

4 participants