HIstory should not be editable

Bug #1720645 reported by Conner Phillips
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
Conner Phillips

Bug Description

Currently the history "playlists" are just that. A largely unmodified subclass of a playlist. They are even stored in the playlist portion of the SQL database. The track position in the history view should not be modifiable. I don't know if this can be changed without creating a new table in the DB.

Changed in mixxx:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Daniel Schürmann (daschuer) wrote :

Yes right, the order should be fixed.
It should be still be possible to delete tracks. The use case is to clean up the history, before publishing.

I think a DB independent solution is possible.

Revision history for this message
ronso0 (ronso0) wrote :

Yes, please keep the possibility to delete tracks.
After a live session or recording it's useful to remove tracks -maybe from sound check or after hour- and have a clean playlist for publishing or just documentation.

Revision history for this message
Conner Phillips (lindybalboa) wrote :

I took a look at this. The problem stems from Playlists, AutoDJ, and History using the same playlisttablemodel.

A quick fix would be to change the getCapabilities function. Currently it is full of hardcoded constants. We could instead change it to read an object variable for this information. The object variable would need be set/adjusted and the time of object instantiation.

The other more extreme but flexible option is create an abstract version of the playlisttablemodel, and create subclasses for all 3 features.

Does anyone feel strongly about either implementation?

Revision history for this message
Daniel Schürmann (daschuer) wrote :

Why not just add

    if (m_pTrackCollection->getPlaylistDAO().getHiddenType(playlistId)
            == PlaylistDAO::PLHT_SET_LOG) {
         caps &= ~TRACKMODELCAPS_REORDER;
    }

to getCapabilities?

Otherwise I would prefer to inherit from playlisttablemodel and override getCapabilities()

Revision history for this message
Conner Phillips (lindybalboa) wrote :

IMO that first one is not transparent at all. I think a subclass is in order. Will try to get to it this week.

Changed in mixxx:
status: Confirmed → Fix Committed
assignee: nobody → Conner Phillips (lindybalboa)
milestone: none → 2.1.0
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/8946

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.