New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 699975 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Make ContentSuggestionsService::Observer::OnCategoryStatusChanged more explicit

Project Member Reported by gambard@chromium.org, Mar 9 2017

Issue description

The comment of ContentSuggestionsService::Observer::OnCategoryStatusChanged states: "When the status changes to an unavailable status, the suggestions of the respective category have been invalidated, which means that they must no longer be displayed to the user. The UI must immediately clear any suggestions of that category."

But the Android UI code leaves the UI as-is in opened NTP when the status changes to NOT_PROVIDED: https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SectionList.java?q=dr=C&l=158

Can we make sure this is consistent?
 

Comment 1 by treib@chromium.org, Mar 9 2017

Cc: jkrcal@chromium.org vitaliii@chromium.org
I think the comment should be something like:
Note that for some status changes, the UI must update immediately (e.g. to remove no-longer-appropriate suggestions). See comments on the individual CategoryStatus values for details.
Marc, do you think we can turn this API into something more explicit?
Why not tell the UI to drop suggestions immediately (and have that logic in a central place) instead of it having to know how to interpret certain status changes?

Comment 3 by treib@chromium.org, Mar 9 2017

Cc: dgn@chromium.org
Good idea - that might be possible, yes.

Currently, the UI does two other things with the status:
- It reacts specially to the SIGNED_OUT status, but that doesn't actually exist anymore (bug 699979).
- It shows a loading indicator if the status is INITIALIZING or AVAILABLE_LOADING. We've been thinking about getting rid of that anyway. (+dgn)

Comment 5 by treib@chromium.org, Apr 10 2017

Cc: treib@chromium.org
Owner: ----
Status: Available (was: Assigned)
Summary: Make ContentSuggestionsService::Observer::OnCategoryStatusChanged more explicit (was: ContentSuggestionsService::Observer::OnCategoryStatusChanged inconsistent comment)
Project Member

Comment 6 by sheriffbot@chromium.org, Apr 11 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 7 by treib@chromium.org, Apr 18 2018

Cc: -treib@chromium.org
Components: -UI>Browser>NewTabPage UI>Browser>ContentSuggestions

Sign in to add a comment