← Back to team overview

touch-packages team mailing list archive

[Bug 1390191] [NEW] Department now shown if there is only one app and it uses X-Ubuntu-Default-Department-ID key

 

Public bug reported:

Department is not shown in Apps department drop-down menu if it has only
one application which declares X-Ubuntu-Default-Department-ID=...
department mapping (and is preinstalled, ie. wasn't installed from
store).

This is caused by too restrictive behavior of
DepartmentsDb::get_children_departments(..), which filters out
subdepartments that don't have any apps in the local departments db
(which means that department will never be shown in the departments menu
if it has no app installed from the store). This restriction should
probably be removed from that method after careful verification if it
has no undesired side effects.

** Affects: unity-scope-click (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Changed in: unity-scope-click (Ubuntu)
       Status: New => Confirmed

** Description changed:

- Department is not shown in Apps if it has only one application which
- declares X-Ubuntu-Default-Department-ID=... department mapping (and is
- preinstalled, ie. wasn't installed from store).
+ Department is not shown in Apps department drop-down menu if it has only
+ one application which declares X-Ubuntu-Default-Department-ID=...
+ department mapping (and is preinstalled, ie. wasn't installed from
+ store).
  
  This is caused by too restrictive behavior of
  DepartmentsDb::get_children_departments(..), which filters out
  subdepartments that don't have any apps in the local departments db
  (which means that department will never be shown in the departments menu
  if it has no app installed from the store). This restriction should
  probably be removed from that method after careful verification if it
  has no undesired side effects.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scope-click in
Ubuntu.
https://bugs.launchpad.net/bugs/1390191

Title:
  Department now shown if there is only one app and it uses X-Ubuntu-
  Default-Department-ID key

Status in “unity-scope-click” package in Ubuntu:
  Confirmed

Bug description:
  Department is not shown in Apps department drop-down menu if it has
  only one application which declares X-Ubuntu-Default-Department-ID=...
  department mapping (and is preinstalled, ie. wasn't installed from
  store).

  This is caused by too restrictive behavior of
  DepartmentsDb::get_children_departments(..), which filters out
  subdepartments that don't have any apps in the local departments db
  (which means that department will never be shown in the departments
  menu if it has no app installed from the store). This restriction
  should probably be removed from that method after careful verification
  if it has no undesired side effects.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scope-click/+bug/1390191/+subscriptions


Follow ups

References