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

Move code from Track to TrackDAO / Fix DB mapping #4214

Merged
merged 3 commits into from
Aug 17, 2021
Merged

Move code from Track to TrackDAO / Fix DB mapping #4214

merged 3 commits into from
Aug 17, 2021

Conversation

uklotzde
Copy link
Contributor

A cleanup PR before introducing a new file tag synchronization feature:

  • Track: Make setHeaderParsedFromTrackDAO() private by moving the ugly workarounds as public methods into TrackDAO, which is used by less code and where it does not matter so much.
  • TrackDAO: Fix writing of the header_parsed column by populating it directly from the corresponding (deprecated) property. This was not a bug, just a conceptual issue. The effect is identical.

@uklotzde uklotzde changed the title Fix h Move code from Track into TrackDAO Aug 16, 2021
@uklotzde uklotzde changed the title Move code from Track into TrackDAO Move code from Track to TrackDAO / Fix DB mapping Aug 16, 2021
@coveralls
Copy link

coveralls commented Aug 16, 2021

Pull Request Test Coverage Report for Build 1139441457

  • 8 of 8 (100.0%) changed or added relevant lines in 1 file are covered.
  • 189 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.01%) to 25.96%

Files with Coverage Reduction New Missed Lines %
src/engine/enginevumeter.cpp 1 90.24%
src/engine/readaheadmanager.cpp 7 90.83%
src/engine/enginebuffer.cpp 13 86.4%
src/engine/controls/clockcontrol.cpp 17 71.96%
src/engine/controls/cuecontrol.cpp 21 68.8%
src/engine/controls/loopingcontrol.cpp 130 82.64%
Totals Coverage Status
Change from base Build 1136790334: -0.01%
Covered Lines: 19995
Relevant Lines: 77021

💛 - Coveralls

Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

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

Please improve the comments. The PR description is out of sight when reading the code.

@@ -82,6 +83,10 @@ class TrackDAO : public QObject, public virtual DAO, public virtual GlobalTrackC

/// Ugly workaround, don't use!!!
static void setTrackGenreInternal(Track* pTrack, const QString& genre);
/// Ugly workaround, don't use!!!
Copy link
Member

Choose a reason for hiding this comment

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

a workaround for what?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

More than expected. Thank you.

@daschuer
Copy link
Member

LGTM

@daschuer daschuer merged commit 0b428d3 into mixxxdj:main Aug 17, 2021
@uklotzde uklotzde deleted the trackdao-header-parsed branch August 29, 2021 16:58
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.

None yet

3 participants