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

Issue 687888 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Feature



Sign in to add a comment

Add ability to filter download suggestions by age

Project Member Reported by tschumann@chromium.org, Feb 2 2017

Issue description

Stale download suggestions might be of lower value (similar to bookmarks).
We should add a finch-controllable threshold that allows us to not show download items older than N days.

What's considered age?
Ideally, we would take two signals: creation data and last-visited date.
We're discussing with the downloads team about the feasibility of adding a "last-visited" attribute to the DownloadItem.
However, until then we can already add the filter by creation time and later add an option to take the max(creation date, last-visited date) to compute the article age.
 
Labels: zine-downloads-v1 OS-Android Type-Feature
Owner: vitaliii@chromium.org
Status: Assigned (was: Untriaged)
Labels: zine-17-01-30
Status: Started (was: Assigned)
Cc: tschumann@chromium.org
Which default value we want?

Something like 10 years (to ignore the filtering by age) or 6 weeks? 
I'd say 6 weeks is essentially infinite already for practical uses ;-)
so 6 weeks as default?
Yes, sure!

I am working on the CL right now.
Project Member

Comment 7 by bugdroid1@chromium.org, Feb 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/6dc672d93b3705ea017b2f538daa73408d970f7a

commit 6dc672d93b3705ea017b2f538daa73408d970f7a
Author: vitaliii <vitaliii@chromium.org>
Date: Tue Feb 07 11:08:24 2017

[NTP::Downloads] Do not show old downloads.

Add a variation parameter to choose what is considered "old" (by default
6 weeks) and not show downloads (both assets and offline pages) older
than that.

Reasoning: the section is meant for quick access, so if the user happens
to have only old downloads, there is no point to show them.

BUG= 687888 

Review-Url: https://codereview.chromium.org/2673633002
Cr-Commit-Position: refs/heads/master@{#448596}

[modify] https://crrev.com/6dc672d93b3705ea017b2f538daa73408d970f7a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
[modify] https://crrev.com/6dc672d93b3705ea017b2f538daa73408d970f7a/chrome/browser/ntp_snippets/download_suggestions_provider.cc
[modify] https://crrev.com/6dc672d93b3705ea017b2f538daa73408d970f7a/chrome/browser/ntp_snippets/download_suggestions_provider.h
[modify] https://crrev.com/6dc672d93b3705ea017b2f538daa73408d970f7a/chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc

I also consider offline page last_access_time as a signal in CL https://codereview.chromium.org/2683553003.
Labels: zine-17-02-06
Project Member

Comment 10 by bugdroid1@chromium.org, Feb 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c02cd260268b3d459a188308a1f70a5bd6a048f7

commit c02cd260268b3d459a188308a1f70a5bd6a048f7
Author: vitaliii <vitaliii@chromium.org>
Date: Tue Feb 07 13:57:47 2017

[NTP::Downloads] Consider recently visited offline pages not outdated.

Take into account last_access_time of offline page downloads. Consider
offline page downloads which were visited recently (not more than
threshold before) not outdated and show them.

Reason: if you visit an old download, it is probably interesting to you,
even though old.

BUG= 687888 

Review-Url: https://codereview.chromium.org/2683553003
Cr-Commit-Position: refs/heads/master@{#448613}

[modify] https://crrev.com/c02cd260268b3d459a188308a1f70a5bd6a048f7/chrome/browser/ntp_snippets/download_suggestions_provider.cc
[modify] https://crrev.com/c02cd260268b3d459a188308a1f70a5bd6a048f7/chrome/browser/ntp_snippets/download_suggestions_provider.h
[modify] https://crrev.com/c02cd260268b3d459a188308a1f70a5bd6a048f7/chrome/browser/ntp_snippets/download_suggestions_provider_unittest.cc

Status: Fixed (was: Started)
When the last_access_time is collected for asset downloads, we will get back to this.
I created a bug for using last_access_time of asset downloads. See  issue 689965 .
Labels: -Restrict-View-Google

Sign in to add a comment