Bug 406753 - If Else (Match all sequentially) when contained in And (Match all) fails in Dynamic Playlist
Summary: If Else (Match all sequentially) when contained in And (Match all) fails in D...
Status: REPORTED
Alias: None
Product: amarok
Classification: Applications
Component: Playlists/Dynamic Playlists (other bugs)
Version First Reported In: 2.9.0
Platform: Other Linux
: NOR normal
Target Milestone: kf5
Assignee: Amarok Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-22 03:45 UTC by Gary Kenneth Krueger
Modified: 2019-04-22 03:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Kenneth Krueger 2019-04-22 03:45:31 UTC
SUMMARY
If Else (Match all sequentially) when contained in And (Match all) fails in Dynamic Playlist

If any "If Else" element fails the And will always fail the If Else.

STEPS TO REPRODUCE
1. Create an And with one or more succeeding biases.
2. Create an If Else (within the And) that succeeds for the first one or more biases, but fails on one or more subsequent biases.
3. Repopulate.

OBSERVED RESULT
Nothing from the If Else will appear in the playlist.

EXPECTED RESULT
There should be results that match in the playlist.

Part of the problem is the traditional meaning of "If ... Else" does not match the traditional meaning of "Match all sequentially".  But, Amarok is treating them as identical.

"If ... Else" should return the first thing that matches, and if any one entry is successful, the overall result should be successful (a TRUE for the enclosing And).

"Match all sequentially" should return everything that matches, until something doesn't match.  But, the overall result should be successful if the first entry was successful (a TRUE for the enclosing And).

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Ubuntu Bionic Beaver 18.04.2 LTS.

libqtcore4/bionic,now 4:4.8.7+dfsg-7ubuntu1 amd64 [installed,automatic]
  Qt 4 core module
libqtgui4/bionic,now 4:4.8.7+dfsg-7ubuntu1 amd64 [installed,automatic]
  Qt 4 GUI module
libqt5gui5/bionic-updates,now 5.9.5+dfsg-0ubuntu2 amd64 [installed,automatic]
  Qt 5 GUI module
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Connected to local mysql database.