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

(fix) Hotcue sort: collect only cues with valid hotcue index #14423

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Feb 28, 2025

Fixup for #13808

Also check for valid hotcue index when collecting hotcues.
These create issues:

  • Loop and index -1 is the temporary loop
  • and there may be orphaned Hotcues with invalid index

I noticed that sorting hotcues would magically create new hotcues and loopcues, some even at the same pos / close to existing (valid) hotcues. Checking the database, I have about 3000 of such cues.
Seems they have accumulated over the past ~10 years 🤷

@ronso0 ronso0 added this to the 2.6-beta milestone Feb 28, 2025
@ronso0
Copy link
Member Author

ronso0 commented Feb 28, 2025

We may also add a cleanup function, to be called for example when reading track cues?

Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

Thank you.

@ronso0 ronso0 force-pushed the hotcue-sort-skip-invalid branch from 2aa0d4e to d7b466a Compare February 28, 2025 14:40
@ronso0
Copy link
Member Author

ronso0 commented Feb 28, 2025

I added the same check when setting the new indices 🙄

@ronso0
Copy link
Member Author

ronso0 commented Feb 28, 2025

We may also add a cleanup function, to be called for example when reading track cues?

Wdyt?
Or should this rather be part of /~https://github.com/mixxxdj/mixxx/blob/main/tools/mixxxdb_cleanup.sql, or a separate script?

@Swiftb0y
Copy link
Member

Swiftb0y commented Feb 28, 2025

If you're talking about cleaning up the orphaned hotcues, then it should be part of the cleanup script IMO.

@ronso0
Copy link
Member Author

ronso0 commented Feb 28, 2025

My thought was that regular users are not aware of the script.
I'll file an issue.

edit #14424

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