API break: ItemSelector.expanded changed to read-only

Bug #1248646 reported by Iain Lane
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Critical
Nicolas d'Offay
ubuntu-ui-toolkit (Ubuntu)
Fix Released
High
Nicolas d'Offay

Bug Description

system-settings makes use of ListItem.ItemSelector.expanded in a few places. In

  https://code.launchpad.net/~nicolas-doffay/ubuntu-ui-toolkit/selectors-multi-selection

this was changed to a read-only property and 'alwaysExpanded' provided to covers some of the use-cases for setting expanded before.

This is an API break which IMO shouldn't have happened. Could it be fixed?

It breaks a lot of ubuntu-system-settings. For example:

laney@raleigh> system-settings cellular
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No space left on device
unity::action::ActionManager::ActionManager(QObject*):
 Could not determine application identifier. HUD will not work properly.
 Provide your application identifier in $APP_ID environment variable.
UCUriHandler: Empty "APP_ID" environment variable, ignoring.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/PageWrapperUtils.js:42: Error: Error while loading page: file:///usr/share/ubuntu/settings/system/qml-plugins/cellular/PageComponent.qml:65 Invalid property assignment: "expanded" is a read-only property

file:///usr/lib/x86_64-linux-gnu/qt5/qml/Ubuntu/Components/ListItems/SingleControl.qml:59: Unable to assign [undefined] to bool

Tags: qa-touch

Related branches

Iain Lane (laney)
description: updated
Changed in ubuntu-system-settings (Ubuntu):
assignee: nobody → Nicolas d'Offay (nicolas-doffay)
importance: Undecided → High
affects: ubuntu-system-settings (Ubuntu) → ubuntu-ui-toolkit (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Tim Peeters (tpeeters) wrote :

Nic, please make a small MR that fixes the issues.

Don't include it in your large upcoming MR because that one will take too long to review, and it is clearer if separate bugfixes are in separate MRs.

summary: - API break: ItemSelector.enabled changed to read-only
+ API break: ItemSelector.expanded changed to read-only
description: updated
Revision history for this message
Tim Peeters (tpeeters) wrote :

If we still want to improve the API, we need to deprecate properties first and keep them around for a while. As we discussed before that is difficult in this case, but let's just get this bug fixed now and we can discuss afterwards.

Changed in ubuntu-ui-toolkit:
assignee: nobody → Nicolas d'Offay (nicolas-doffay)
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Dave Morley (davmor2) wrote :

I believe this affects Setting time/date and also the game selector on solitare games click app.

tags: added: qa-touch
Revision history for this message
Dave Morley (davmor2) wrote :

This is still in place and affects image 14 on Maguro

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Changed in ubuntu-ui-toolkit (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ui-toolkit at revision None, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+14.04.20131108.3-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+14.04.20131108.3-0ubuntu1) trusty; urgency=low

  [ Leo Arias ]
  * Add a check for the autopilot version on the emulator init. (LP:
    #1248570)
  * Ensure the toolbar is opened when clicking a toolbar in autopilot
    tests. (LP: #1248487)

  [ Nicolas d'Offay ]
  * Reverted API break on the selectors. (LP: #1248646)

  [ tpeeters ]
  * Ensure the toolbar is opened when clicking a toolbar in autopilot
    tests. (LP: #1248487)
  * before fixing the actual bug, the test gives me these errors: QWARN
    : tst_MainView::testNoWarnings_bug186065()
    unity::action::ActionManager::ActionManager(QObject*): Could not
    determine application identifier. HUD will not work properly.
    Provide your application identifier in $APP_ID environment variable.
    QWARN : tst_MainView::testNoWarnings_bug186065()
    file:///home/tim/dev/ubuntu-ui-
    toolkit/fix1244660/modules/Ubuntu/Components/MainView.qml:257:
    TypeError: Cannot call method 'hasOwnProperty' of null **
    (process:27191): CRITICAL **: Unable to get session bus: Operation
    was cancelled QWARN : tst_MainView::testNoWarnings_bug186065() Don't
    know how to handle 'QList<QQmlError>', use qRegisterMetaType to
    register it. PASS : tst_MainView::testNoWarnings_bug186065() PASS :
    tst_MainView::cleanupTestCase() Totals: 8 passed, 0 failed, 0
    skipped ********* Finished testing of tst_MainView ********* I get
    the same when I execute unit_x11/tst_orientation/tst_orientation:
    QWARN : tst_OrientationTest::test_defaults() Don't know how to
    handle 'QList<QQmlError>', use qRegisterMetaType to register it.
    PASS : tst_OrientationTest::test_defaults() Should I execute the
    tests in a different way?. (LP: #186065, #1244660)

  [ Robert Bruce Park ]
  * (no message)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 828
 -- Ubuntu daily release <email address hidden> Fri, 08 Nov 2013 22:02:57 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Fix Committed → Fix Released
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.