Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001625 [XMMS2] medialib minor always 07-06-18 23:30 10-02-20 11:39
Reporter wabu View Status public  
Assigned To
Priority normal Resolution open  
Status confirmed   Product Version 0.2 DrJekyll
Summary 0001625: complements of collections with unset attributes
Description Theres a problem with collections and there complements, if it contains an attribute wich is not set on all media.

a collectin on an attribute will of course not match against media where that attribute is undefined, but the complement of the collection as well not match, which feels wrong.
strage things can happen: collectens and its complement will not equal the universe anymore ...
Additional Information example using x2c:

>> universe.rating == 0
=> `Xmms::Collection:-609032408
    = rating:0
      [ universe ]
    0 artists:
      
    0 albums:
      
    0 titles:

>> ~(universe.rating == 0)
=> `Xmms::Collection:-609134808
    !
      = rating:0
        [ universe ]
    0 artists:
      
    0 albums:
      
    0 titles:

>>
universe
=> `Xmms::Collection:-609152998
    [ universe ]
    265 artists:
      Apocalyptica
      Ay Riders
      Björk
      ...
Tags No tags attached.
GIT commit id
Has patch
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to 0001560confirmed Search skips tracks when using "OR" 
related to 0001663resolvedandersg Sorting the playlist on multiple attributes isn't sorting tracks, which don't have one of the attributes 
child of 0000956resolvedtheefer Collections 
child of 0001957assignednesciens Collections 2.0 

-  Notes
(0002064)
puzzles (developer)
07-06-19 00:40

IMO, the MATCH and EQUAL complement collections should return media for which the key is undefined as well as media for which the values do not match. Then, if a user wants only media for which a key is defined, but not equal, she can appropriately intersect a HAS collection.
(0002065)
puzzles (developer)
07-06-19 00:48

Oh, and before my Ruby bindings for collections come into question, I've duplicated this easily using the CLI:

dan@bean:~$ xmms2 mlib search NOT this_property_doesnt_exist:*
-[Result]-----------------------------------------------------------------------
Id | Artist | Album | Title
-------------------------------------------------------------[Count: ]-----
dan@bean:~$ xmms2 mlib search NOT url:*media*
-[Result]-----------------------------------------------------------------------
Id | Artist | Album | Title
00001| mind.in.a.box | Dreamweb | mind.in.a.box-lament_snipp
-------------------------------------------------------------[Count: 1]-----

- Issue History
Date Modified Username Field Change
07-06-18 23:30 wabu New Issue
07-06-19 00:08 wabu Issue Monitored: wabu
07-06-19 00:40 puzzles Note Added: 0002064
07-06-19 00:48 puzzles Note Added: 0002065
07-06-19 03:04 theefer Issue Monitored: theefer
07-06-22 04:55 theefer Relationship added child of 0000956
07-07-12 14:43 theefer Relationship added related to 0001560
07-07-15 22:48 nano Status new => confirmed
07-08-26 02:24 puzzles Relationship added related to 0001663
08-03-08 15:34 nesciens Issue Monitored: nesciens
08-05-04 18:04 nesciens Relationship added child of 0001957
09-02-16 23:17 nano Target Version => 0.7 DrN
09-02-24 12:50 vanicat Issue Monitored: vanicat
09-06-28 13:39 Chewi Issue Monitored: Chewi
10-02-20 11:39 nano Target Version 0.7 DrN => 0.8 DrO


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker