sources shows time rather than count in messaging menu when count set to 0

Bug #1071640 reported by Alex Launi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Messaging Menu
Fix Released
Undecided
Lars Karlitski
WebApps: Applications Data
Invalid
Undecided
Unassigned
WebApps: libunity-webapps
Invalid
Undecided
Unassigned
indicator-messages (Ubuntu)
Fix Released
Undecided
Unassigned
webapps-applications (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

In my messaging menu, when a folder is empty the count shows as time since last mail received rather than 0 unread messages

Tags: needs-design

Related branches

Revision history for this message
Alex Launi (alexlauni) wrote :
information type: Proprietary → Public
Alex Launi (alexlauni)
Changed in libunity-webapps:
status: New → Invalid
Alex Launi (alexlauni)
description: updated
summary: - GMail webapps shows time rather than count in indicator for inbox when
- no unread emails
+ GMail webapps shows time rather than count in messaging menu when no
+ unread emails
Revision history for this message
Alex Launi (alexlauni) wrote : Re: GMail webapps shows time rather than count in messaging menu when no unread emails

Very simple test case demonstrating the problem

Changed in indicator-messages:
status: New → Confirmed
Alex Launi (alexlauni)
Changed in indicator-messages:
status: Confirmed → In Progress
assignee: nobody → Alex Launi (alexlauni)
Revision history for this message
Lars Karlitski (larsu) wrote :

The attached branch fixes one half of the problem: setting the count to zero will not show a time anymore. Instead, nothing will be shown, because a source with a 0 count should not appear in the messaging menu in the first place.

Adding webapps-applications. The gmail webapp should not add a source with a 0 count.

Changed in indicator-messages:
milestone: none → 12.10.6
Changed in indicator-messages (Ubuntu):
status: New → Triaged
Revision history for this message
Robert Carr (robertcarr) wrote :

I think it sets a bad precedent to require this logic in the userscript as we can't count on the web to be well behaved. Furthermore each additional guideline we have to place on userscript authors adds an additional pain.

I think it should be filtered in the context daemon (IndicatorView).

Filtering it in the context daemon as opposed to the API has a small benefit. Namely imagine the following state.

GMail, interest 1: ShowIndicator(count -> 3)
(time passes)
GMail, interest 2: ShowIndicator(count -> 0)

The indicator should be filtered from the view.

Changed in libunity-webapps:
status: Invalid → Incomplete
Changed in indicator-messages:
status: In Progress → Fix Committed
Revision history for this message
Alex Launi (alexlauni) wrote :

I think we need feedback from design here. There's no detail in the spec that actually specified whether or not the source should show. There could be a difference between a 0 count, and no count, and that's a distinction that should be defined in the spec.

tags: added: needs-design
Alex Launi (alexlauni)
summary: - GMail webapps shows time rather than count in messaging menu when no
- unread emails
+ sources shows time rather than count in messaging menu when count set to
+ 0
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Agreed with both Lars and Robert. Specification updated: "If a source has neither a non-zero count *nor* a time, it should not be shown at all." <https://wiki.ubuntu.com/MessagingMenu?action=diff&rev2=90&rev1=89> Thanks, Alex.

Alex Launi (alexlauni)
Changed in libunity-webapps:
status: Incomplete → Invalid
Changed in webapps-applications (Ubuntu):
status: New → Invalid
Changed in webapps-applications:
status: New → Invalid
Changed in indicator-messages:
assignee: Alex Launi (alexlauni) → Lars Uebernickel (larsu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-messages - 12.10.6daily12.11.21.1-0ubuntu1

---------------
indicator-messages (12.10.6daily12.11.21.1-0ubuntu1) raring; urgency=low

  [ Mathieu Trudel-Lapierre ]
  * debian/rules:
    - Use autogen.sh for dh_autoreconf.
    - Drop the override for dh_makeshlibs.
    - Add DPKG_GENSYMBOLS_CHECK_LEVEL=4.
  * debian/control:
    - Fix styling: add trailing commas at the end of lists.
    - Update Vcs-Bzr, Vcs-Browser fields and add a notice for developers.
    - Add libgtest-dev to Build-Depends.
  * Automatic snapshot from revision 329 (bootstrap):
    - Clear the detail (count or time) of a source when another type of detail
      is set. (LP: #1071640)

  [ Automatic PS uploader ]
  * Automatic snapshot from revision 331
 -- Automatic PS uploader <email address hidden> Wed, 21 Nov 2012 10:41:37 +0000

Changed in indicator-messages (Ubuntu):
status: Triaged → Fix Released
Lars Karlitski (larsu)
Changed in indicator-messages:
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.