Bug 15824 - Favourites context-menus broken
: Favourites context-menus broken
Status: RESOLVED FIXED
Product: SB Touch
Classification: Unclassified
Component: UI
: unspecified
: PC Debian Linux
: P1 normal (vote)
: 7.5.1
Assigned To: Ben Klaas
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-03 09:10 UTC by Alan Young
Modified: 2010-09-13 12:01 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments
squeezeplay-side of the patch (582 bytes, patch)
2010-03-04 12:38 UTC, Ben Klaas
Details | Diff
send playlist control and favs items to CMs for favorites (1.57 KB, patch)
2010-03-04 12:40 UTC, Ben Klaas
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Young 2010-03-03 09:10:33 UTC
Cannot add, play next, or remove favourite
Comment 1 Ben Klaas 2010-03-04 07:05:22 UTC
Some debug from the squeezeplay side

request for initial favorites menu:
{ --[[table: 0x1723ef40]]
  "favorites",
  "items",
  0,
  200,
  "menu:favorites",
  "useContextMenu:1",
}



Dump of a favorite menu item (from _actionHandler):

{ --[[table: 0x16e5b0d0]]
  playAction = "go",
  ["icon-id"] = "html/images/artists.png",
  style = "itemplay",
  text = "Daniel Lanois",
  actions = { --[[table: 0x17210ea0]]
    ["add-hold"] = { --[[table: 0x17209730]]
      cmd = { --[[table: 0x16eaea70]]
        "favorites",
        "playlist",
        "insert",
      },
      itemsParams = "params",
      player = 0,
      params = { --[[table: 0x162e9030]]
        favorites_title = "Daniel Lanois",
        favorites_type = "audio",
        favorites_url = "db:contributor.namesearch=DANIEL%20LANOIS",
        isContextMenu = 1,
        item_id = "0",
        type = "audio",
      },
    },
    go = { --[[table: 0x16eacc60]]
      cmd = { --[[table: 0x16e4b9d0]]
        "favorites",
        "playlist",
        "play",
      },
      player = 0,
      nextWindow = "nowPlaying",
      itemsParams = "params",
      params = { --[[table: 0x16e095b0]]
        favorites_title = "Daniel Lanois",
        favorites_type = "audio",
        favorites_url = "db:contributor.namesearch=DANIEL%20LANOIS",
        isContextMenu = 1,
        item_id = "0",
        type = "audio",
      },
    },
    more = { --[[table: 0x16299370]]
      cmd = { --[[table: 0x16e88460]]
        "favorites",
        "items",
      },
      itemsParams = "params",
      params = { --[[table: 0x16e19000]]
        favorites_title = "Daniel Lanois",
        favorites_type = "audio",
        item_id = "0",
        favorites_url = "db:contributor.namesearch=DANIEL%20LANOIS",
        isContextMenu = 1,
        type = "audio",
        menu = "favorites",
      },
    },
    add = { --[[table: 0x162bac10]]
      cmd = { --[[table: 0x16e4a390]]
        "favorites",
        "playlist",
        "add",
      },
      itemsParams = "params",
      player = 0,
      params = { --[[table: 0x16e03a70]]
        favorites_title = "Daniel Lanois",
        favorites_type = "audio",
        favorites_url = "db:contributor.namesearch=DANIEL%20LANOIS",
        isContextMenu = 1,
        item_id = "0",
        type = "audio",
      },
    },
  },
  params = { --[[table: 0x1722ce20]]
    favorites_title = "Daniel Lanois",
    favorites_type = "audio",
    favorites_url = "db:contributor.namesearch=DANIEL%20LANOIS",
    isContextMenu = 1,
    item_id = "0",
    type = "audio",
  },
}



Request for CM (add/more):

{ --[[table: 0x172a68b0]]
  "favorites",
  "items",
  0,
  200,
  "item_id:0",
  "favorites_title:Daniel Lanois",
  "favorites_type:audio",
  "xmlBrowseInterimCM:1",
  "favorites_url:db:contributor.namesearch=DANIEL%20LANOIS",
  "isContextMenu:1",
  "type:audio",
  "menu:favorites",
  "useContextMenu:1",
}
Comment 2 Ben Klaas 2010-03-04 07:06:22 UTC
I'm going to spend a bit more time with this yet, but I think this is going to be hard to solve. I also tested against 7.4, and it's quite broken there too.
Comment 3 Spies Steven 2010-03-04 09:19:02 UTC
Adding priority of P2
Comment 4 Ben Klaas 2010-03-04 12:38:33 UTC
Created attachment 6596 [details]
squeezeplay-side of the patch

one liner to make sure to refresh the underlying menu after a delete favorite is issued from a CM

most of this bug's fix comes from the server side, in the next patch.
Comment 5 Ben Klaas 2010-03-04 12:40:23 UTC
Created attachment 6597 [details]
send playlist control and favs items to CMs for favorites

This will send the 4 items Play/Play Next/Add to End/ and Delete Favorite to the CM of Favorites, while not impinging on the already correct CMs for local music that are driven by the *info menus.
Comment 6 Ben Klaas 2010-03-04 12:41:05 UTC
This bug is effectively solved, but the patches need to be applied yet. Process dictates this is not going to be checked in for 7.5.0.
Comment 7 Chris Owens 2010-04-07 18:11:25 UTC
Targeting for 7.5.1 at Ben's suggestion that all patch_waiting bugs be fixed
Comment 8 SVN Bot 2010-04-12 11:31:04 UTC
 == Auto-comment from SVN commit #30559 to the slim repo by bklaas ==
 == http://svn.slimdevices.com/slim?view=revision&revision=30559 ==

Bug: 15824
Description: apply server side portion of the patch from this bug
send playlist control and favs items to CMs for favorites
Comment 9 SVN Bot 2010-04-12 11:37:21 UTC
 == Auto-comment from SVN commit #8687 to the jive repo by bklaas ==
 == http://svn.slimdevices.com/jive?view=revision&revision=8687 ==

Fixed Bug: 15824
Description: refresh the underlying window from the CM so the favs menu immediately shows changes made via the CM
Comment 10 Chris Owens 2010-09-13 12:01:51 UTC
Since these are fixed, they must not be patch_waiting after all