[QML] The AccountModel API should tell whether the model is ready

Bug #1513075 reported by Alberto Mardegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Online Accounts API
Fix Released
High
Alberto Mardegan
webapps-sprint
Fix Released
High
Alberto Mardegan

Bug Description

Since getting the list of accounts involves making a D-Bus call, which is currently asynchronous. While this call is executed, the "count" property is 0. In other words, it's impossible for the client to tell whether the model is empty because it's not yet ready or because there isn't actually any account available.

Possible solutions:
- add a signal to tell whether the model is ready
- set the count to -1 until the model is not ready
- make the D-Bus call synchronous (probably the worst option!)

Related branches

Alberto Mardegan (mardy)
Changed in online-accounts-api:
status: New → In Progress
assignee: nobody → Alberto Mardegan (mardy)
importance: Undecided → High
Changed in webapps-sprint:
status: New → In Progress
assignee: nobody → Alberto Mardegan (mardy)
importance: Undecided → High
milestone: none → sprint-18
David Barth (dbarth)
Changed in webapps-sprint:
status: In Progress → Fix Committed
Changed in online-accounts-api:
status: In Progress → Fix Committed
David Barth (dbarth)
Changed in webapps-sprint:
status: Fix Committed → Fix Released
Changed in online-accounts-api:
status: Fix Committed → Fix Released
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.