Add a filtering tool to only show only certain release group types #161

Closed
opened 2024-03-09 18:08:18 +01:00 by wojtek · 4 comments
Owner

Not all release group types (e.g., Live EP) are interesting, but some are still present in the library and may be desirable in the future. Some mechanism of filtering needs to be made available to the user. It should use release group type and ownership status. Including space for future potential of WISH and DROP status.

Not all release group types (e.g., Live EP) are interesting, but some are still present in the library and may be desirable in the future. Some mechanism of filtering needs to be made available to the user. It should use release group type and ownership status. Including space for future potential of `WISH` and `DROP` status.
wojtek added this to the v1.0.0-alpha.1 milestone 2024-03-09 18:08:18 +01:00
wojtek added the
enhancement
label 2024-03-09 18:08:18 +01:00
wojtek added this to the Album tracking project 2024-03-09 18:09:26 +01:00
Author
Owner

Requirements/thoughts:

  1. Include option for whether owned items should ignore the filter
  2. Filter is inclusive not exclusive - that is an option must be selected to have corresponding items included in the collection
  3. Blank is an option on its own
  4. To implement this a separation needs to be created between the database on disk and the collection in memory. The filtering happens between these two.
Requirements/thoughts: 1. Include option for whether owned items should ignore the filter 2. Filter is inclusive not exclusive - that is an option must be selected to have corresponding items included in the collection 3. Blank is an option on its own 4. To implement this a separation needs to be created between the database on disk and the collection in memory. The filtering happens between these two.
Author
Owner

Careful about parts of the code where collection is assumed to contain the complete database as these will have to fixed. E.g., when checking which albums are new during a fetch. These places can be easily located however. The TUI application does not keep the collection, but rather MH. All collection accesses can be found via get_collection calls.

Careful about parts of the code where collection is assumed to contain the complete database as these will have to fixed. E.g., when checking which albums are new during a fetch. These places can be easily located however. The TUI application does not keep the collection, but rather MH. All collection accesses can be found via `get_collection` calls.
Author
Owner
  • Don't want to filter directly from database because some library items need to be merged with items that would be filtered out.
  • Having access to everything in the collection is necessary at times - mostly when fetching.

Solution: keep the entire collection as it is now, but whenever it is updated also create a filtered version. Use the filtered version for display and identifying selected items. Use the full collection to check existing contents in the database.

- Don't want to filter directly from database because some library items need to be merged with items that would be filtered out. - Having access to everything in the collection is necessary at times - mostly when fetching. Solution: keep the entire collection as it is now, but whenever it is updated also create a filtered version. Use the filtered version for display and identifying selected items. Use the full collection to check existing contents in the database.
Author
Owner

For now make the filter hard coded to blank, EP, album, and owned.

To make it future proof - contain it in an object that could be modified in the future.

For now make the filter hard coded to blank, EP, album, and owned. To make it future proof - contain it in an object that could be modified in the future.
wojtek added reference 161---add-a-filtering-tool-to-only-show-only-certain-release-group-types 2025-01-04 11:09:29 +01:00
Sign in to join this conversation.
No Milestone v1.0.0-alpha.1
No project Album tracking
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wojtek/musichoard#161
No description provided.