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

iTunes: Re-enable test and add composer, playCount, lastPlayedAt and dateAdded to model #11948

Merged
merged 5 commits into from
Sep 9, 2023

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Sep 8, 2023

Now that #11666 has been merged, this re-enables the iTunes test. Additionally it adds a few new fields to ITunesTrack (along with the corresponding XML and macOS import implementations) that map directly to fields that Mixxx uses for its library tracks:

  • QString composer
  • int playCount
  • QDateTime lastPlayedAt
  • QDateTime dateAdded

The test is also updated to expect these new fields.

Note, however, that this is only the first piece of the puzzle, this PR won't make the fields user-visible yet. For that, the database schema has to be updated (albeit in a backwards-compatible-way). Since that's a more invasive change, my plan was to do that in a separate PR.

I'm targeting 2.4 since these changes should be pretty safe to merge and only affect testing. Should the follow-up PR (changing the schema to add the respective new columns to the db) also target 2.4 or is that too large of a change? Feel free to leave some notes.

@fwcd fwcd changed the title iTunes: Re-enable test and add composer, play count, last play date and date added to model iTunes: Re-enable test and add composer, playCount, lastPlayedAt and dateAdded to model Sep 8, 2023
@fwcd
Copy link
Member Author

fwcd commented Sep 8, 2023

Interesting, GCC seems to be rather strict with omitted fields in C++20's designated initializers, which I thought were explicitly intended to allow default initialization of their omitted members...

Let's hope that this makes GCC happy
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.

LGTM. any1 else?

@Swiftb0y Swiftb0y merged commit 33be742 into mixxxdj:2.4 Sep 9, 2023
11 checks passed
@Swiftb0y
Copy link
Member

Swiftb0y commented Sep 9, 2023

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants