Using query across different levels doesn't function

Bug #1322156 reported by Andrew Hayzen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
U1DB Qt/ QML
Fix Committed
High
Marco Trevisan (Treviño)

Bug Description

Hi

I have a document with the following structure:
        {
            "playlist":
            {
                "name": "newies",
                "tracks": [
                    { "file": "new1", "title": "very new song" },
                    { "file": "new2", "title": "even newer" }
                ]
            }
        }

This is my index expression:
expression: ["playlist.name", "playlist.tracks.file", "playlist.tracks.title"]

This is my query:
query: [{"name":"*"}, {"file":"*"}, {"title":"*"}]

However when I set the query to a listview only the first item for the track is displayed. Also if i have multiple documents with tracks when i set the name in the query to filter to only one playlist (document) this doesn't function as well. There is an example app here [0]

0 - https://code.launchpad.net/~andrew-hayzen/+junk/test-u1db-playlists

Related branches

Cris Dywan (kalikiana)
Changed in u1db-qt:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Linked wrong example branch, updated now.

description: updated
Changed in u1db-qt:
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Confirmed → In Progress
Cris Dywan (kalikiana)
Changed in u1db-qt:
status: In Progress → Fix Committed
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.