Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Issue 113293007: [Files.app] Change sort timing during metadata fetch (Closed)

Created:
7 years ago by yoshiki
Modified:
6 years, 11 months ago
Reviewers:
mtomasz, hirono
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

[Files.app] Change sort timing during metadata fetch Previously, sort was not started until all the metadata is fetched. When fetching took a time, the user saw unsorted list for a while. With this patch, sort is happened just after every updates. User can see sorted list every time. BUG=327479 TEST=manually tested Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243816

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : addressed comments #

Total comments: 2

Patch Set 3 : Adressed the comment #

Total comments: 10

Patch Set 4 : addressed comments #

Total comments: 2

Patch Set 5 : addressed comment #

Patch Set 6 : rebase #

Total comments: 2

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
yoshiki
@hirono: could you take a look? Thanks.
7 years ago (2013-12-17 06:30:05 UTC) #1
hirono
https://codereview.chromium.org/113293007/diff/20001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/113293007/diff/20001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js#newcode623 chrome/browser/resources/file_manager/foreground/js/directory_contents.js:623: this.fileList_.updateIndex(i); How about the following? var status = this.list_.sortStatus; ...
7 years ago (2013-12-17 11:35:15 UTC) #2
yoshiki
@hirono, PTAL. Thanks. https://codereview.chromium.org/113293007/diff/20001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/113293007/diff/20001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js#newcode623 chrome/browser/resources/file_manager/foreground/js/directory_contents.js:623: this.fileList_.updateIndex(i); On 2013/12/17 11:35:15, hirono wrote: ...
7 years ago (2013-12-17 12:11:39 UTC) #3
hirono
https://codereview.chromium.org/113293007/diff/40001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/113293007/diff/40001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js#newcode614 chrome/browser/resources/file_manager/foreground/js/directory_contents.js:614: this.prefetchMetadataQueue_.run(function(i, chunk, callback) { The i variable no longer ...
7 years ago (2013-12-18 04:09:37 UTC) #4
yoshiki
@hirono: PTAL. Thanks. https://codereview.chromium.org/113293007/diff/40001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/113293007/diff/40001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js#newcode614 chrome/browser/resources/file_manager/foreground/js/directory_contents.js:614: this.prefetchMetadataQueue_.run(function(i, chunk, callback) { On 2013/12/18 ...
7 years ago (2013-12-20 07:47:46 UTC) #5
hirono
lgtm. Thanks!
6 years, 12 months ago (2013-12-23 23:57:14 UTC) #6
mtomasz
https://codereview.chromium.org/113293007/diff/80001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/113293007/diff/80001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js#newcode623 chrome/browser/resources/file_manager/foreground/js/directory_contents.js:623: // items. Currenyly we have a method this.fileList_.updateIndex() to ...
6 years, 12 months ago (2013-12-24 00:22:10 UTC) #7
yoshiki
@mtomasz: PTAL. https://codereview.chromium.org/113293007/diff/80001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js File chrome/browser/resources/file_manager/foreground/js/directory_contents.js (right): https://codereview.chromium.org/113293007/diff/80001/chrome/browser/resources/file_manager/foreground/js/directory_contents.js#newcode623 chrome/browser/resources/file_manager/foreground/js/directory_contents.js:623: // items. Currenyly we have a method ...
6 years, 11 months ago (2014-01-08 08:08:30 UTC) #8
mtomasz
Thanks! Looks great! LgTm https://codereview.chromium.org/113293007/diff/410001/chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js File chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/113293007/diff/410001/chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js#newcode164 chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:164: * Sets the size of ...
6 years, 11 months ago (2014-01-08 08:11:01 UTC) #9
yoshiki
Thanks! Going to commit. https://codereview.chromium.org/113293007/diff/410001/chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js File chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/113293007/diff/410001/chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js#newcode164 chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:164: * Sets the size of ...
6 years, 11 months ago (2014-01-08 09:04:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/113293007/480001
6 years, 11 months ago (2014-01-08 09:04:56 UTC) #11
commit-bot: I haz the power
Failed to apply patch for chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-08 09:04:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/113293007/520001
6 years, 11 months ago (2014-01-08 09:20:29 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=189244
6 years, 11 months ago (2014-01-08 12:11:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoshiki@chromium.org/113293007/790001
6 years, 11 months ago (2014-01-09 05:07:13 UTC) #15
commit-bot: I haz the power
Change committed as 243816
6 years, 11 months ago (2014-01-09 08:14:59 UTC) #16
mtomasz
https://codereview.chromium.org/113293007/diff/790001/chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js File chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js (right): https://codereview.chromium.org/113293007/diff/790001/chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js#newcode539 chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:539: var desiredCount = this.currentEvictionThreshold(); Error in response to fileBrowserPrivate.searchDriveMetadata: ...
6 years, 11 months ago (2014-01-10 00:57:58 UTC) #17
yoshiki
6 years, 11 months ago (2014-01-10 03:41:53 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/113293007/diff/790001/chrome/browser/resource...
File
chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js
(right):

https://codereview.chromium.org/113293007/diff/790001/chrome/browser/resource...
chrome/browser/resources/file_manager/foreground/js/metadata/metadata_cache.js:539:
var desiredCount = this.currentEvictionThreshold();
On 2014/01/10 00:57:59, mtomasz wrote:
> Error in response to fileBrowserPrivate.searchDriveMetadata: TypeError: Object
> #<MetadataCache> has no method 'currentEvictionThreshold'
> 
> currentEvictionThreshold -> currentEvictionThreshold_. Sorry for not catching
> earlier.

Oops, sorry. I didn't catch it. I'll fix it soon.

Powered by Google App Engine
This is Rietveld 408576698