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

Issue 1996443003: Return number of values deleted by IDBObjectStore.delete(range) (Closed)

Created:
4 years, 7 months ago by palakj1
Modified:
4 years, 6 months ago
Reviewers:
jsbell, cmumford, dmurph
CC:
blink-reviews, chromium-reviews, darin-cc_chromium.org, jam, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Modify leveldb::DeleteRangeBasic function to return number of values deleted by IDBObjectStore.delete(range) with modifications to other functions as needed. BUG=611201 Committed: https://crrev.com/dbb2725b92683d709296e19fb107ceb483180729 Cr-Commit-Position: refs/heads/master@{#398974}

Patch Set 1 #

Total comments: 42

Patch Set 2 : Return number of values deleted by #

Patch Set 3 : Return number of values deleted by IDBObjectStore.delete(range) #

Total comments: 18

Patch Set 4 : Changes post jsbell dmuprh reviews #

Total comments: 14

Patch Set 5 : DeleteRange #

Total comments: 3

Patch Set 6 : Delete Range Count #

Total comments: 1

Patch Set 7 : deleteRange count #

Total comments: 1

Patch Set 8 : deleteRange count #

Patch Set 9 : delete count #

Patch Set 10 : Delete Range experimental flag enabled #

Patch Set 11 : Expected files changed #

Patch Set 12 : Delete Range #

Patch Set 13 : Delete Range #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -58 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 3 10 chunks +38 lines, -24 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store_unittest.cc View 1 4 chunks +22 lines, -10 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 3 4 5 6 5 chunks +17 lines, -8 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.h View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.cc View 1 2 chunks +6 lines, -5 lines 0 comments Download
A + third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete2-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete2-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete3-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete3-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete4-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/imported/wpt/IndexedDB/idbobjectstore_delete4-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/storage/indexeddb/mozilla/delete-result-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/storage/indexeddb/objectstore-basics-workers-expected.txt View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 55 (17 generated)
palakj1
Modified DeleteRange to return #elements deleted. Status: Patch is working completely. But I have a ...
4 years, 7 months ago (2016-05-19 00:13:56 UTC) #2
dmurph
Thanks Palak! A few nits, and I think I found a couple bugs. Josh & ...
4 years, 7 months ago (2016-05-19 01:01:39 UTC) #3
cmumford
I think description might read better if "Return number of values deleted by IDBObjectStore.delete(range)" dmurph@ ...
4 years, 7 months ago (2016-05-19 17:07:16 UTC) #4
jsbell
https://codereview.chromium.org/1996443003/diff/1/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/1996443003/diff/1/content/browser/indexed_db/indexed_db_backing_store.cc#newcode2045 content/browser/indexed_db/indexed_db_backing_store.cc:2045: s = DeleteRangeBasic(transaction->transaction(), start_key, stop_key, false, On 2016/05/19 17:07:15, ...
4 years, 7 months ago (2016-05-19 18:23:43 UTC) #5
palakj1
Please look into the modified design. A few queries: 1. Layout Tests (delete-range-count.html: 32): Using ...
4 years, 7 months ago (2016-05-19 23:47:53 UTC) #6
jsbell
https://codereview.chromium.org/1996443003/diff/40001/third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html File third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html (right): https://codereview.chromium.org/1996443003/diff/40001/third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html#newcode20 third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html:20: var store = trans1.objectStore('store'); Just to simplify this a ...
4 years, 7 months ago (2016-05-20 00:36:12 UTC) #7
dmurph
To answer your question #2, the transaction oncomplete handler's event doesn't have the same target, ...
4 years, 7 months ago (2016-05-20 18:41:15 UTC) #8
palakj1
Changes made as per comments. https://codereview.chromium.org/1996443003/diff/40001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/1996443003/diff/40001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode1370 content/browser/indexed_db/indexed_db_backing_store.cc:1370: DCHECK(delete_count); On 2016/05/20 at ...
4 years, 7 months ago (2016-05-20 19:13:46 UTC) #10
jsbell
Since this is a behavior change, we should gate the on RuntimeEnabled=IndexedDBExperimental (controlled by --enable-experimental-web-platform-features) ...
4 years, 7 months ago (2016-05-20 19:34:51 UTC) #11
palakj1
Changes post jsbell comments. Please have a look. https://codereview.chromium.org/1996443003/diff/60001/content/browser/indexed_db/indexed_db_callbacks.h File content/browser/indexed_db/indexed_db_callbacks.h (right): https://codereview.chromium.org/1996443003/diff/60001/content/browser/indexed_db/indexed_db_callbacks.h#newcode104 content/browser/indexed_db/indexed_db_callbacks.h:104: // ...
4 years, 7 months ago (2016-05-23 17:17:40 UTC) #12
dmurph
This is looking good! Last step is to enable the feature behind a flag like ...
4 years, 7 months ago (2016-05-23 18:13:45 UTC) #13
palakj1
On 2016/05/23 at 18:13:45, dmurph wrote: > This is looking good! Last step is to ...
4 years, 7 months ago (2016-05-24 18:23:09 UTC) #14
dmurph
https://codereview.chromium.org/1996443003/diff/80001/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1996443003/diff/80001/content/browser/indexed_db/indexed_db_database.cc#newcode1431 content/browser/indexed_db/indexed_db_database.cc:1431: callbacks->OnSuccess(base::checked_cast<int64_t>(delete_count)); Put the check right here. if (experiment_web_platform_features_enabled_) { ...
4 years, 7 months ago (2016-05-24 18:49:19 UTC) #15
palakj1
Experimental flag enabled https://codereview.chromium.org/1996443003/diff/80001/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1996443003/diff/80001/content/browser/indexed_db/indexed_db_database.cc#newcode1431 content/browser/indexed_db/indexed_db_database.cc:1431: callbacks->OnSuccess(base::checked_cast<int64_t>(delete_count)); On 2016/05/24 at 18:49:18, dmurph ...
4 years, 7 months ago (2016-05-26 18:04:28 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996443003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996443003/100001
4 years, 7 months ago (2016-05-26 18:20:36 UTC) #18
dmurph
lgtm with style nit https://codereview.chromium.org/1996443003/diff/100001/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/1996443003/diff/100001/content/browser/indexed_db/indexed_db_database.cc#newcode1436 content/browser/indexed_db/indexed_db_database.cc:1436: if (experimental_web_platform_features_enabled_) Please add brackets ...
4 years, 7 months ago (2016-05-26 18:35:27 UTC) #19
palakj1
On 2016/05/26 at 18:35:27, dmurph wrote: > lgtm with style nit > > https://codereview.chromium.org/1996443003/diff/100001/content/browser/indexed_db/indexed_db_database.cc > ...
4 years, 7 months ago (2016-05-26 20:07:58 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/228918)
4 years, 7 months ago (2016-05-26 20:08:28 UTC) #22
palakj1
Changes post dmurph's style comments.
4 years, 7 months ago (2016-05-26 20:12:51 UTC) #23
cmumford
> * the next statement fits on one line, and > * there is no ...
4 years, 7 months ago (2016-05-26 21:01:58 UTC) #24
cmumford
lgtm % nit. https://codereview.chromium.org/1996443003/diff/120001/third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html File third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html (right): https://codereview.chromium.org/1996443003/diff/120001/third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html#newcode24 third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html:24: deleteRequest1 = store.delete(IDBKeyRange.bound( Nit: "var" before ...
4 years, 7 months ago (2016-05-26 21:02:11 UTC) #25
palakj1
On 2016/05/26 at 21:02:11, cmumford wrote: > lgtm % nit. > > https://codereview.chromium.org/1996443003/diff/120001/third_party/WebKit/LayoutTests/storage/indexeddb/delete-range-count.html > File ...
4 years, 7 months ago (2016-05-26 21:13:14 UTC) #26
palakj1
changes post cmumford's style suggestions.
4 years, 7 months ago (2016-05-26 21:13:52 UTC) #27
dmurph
Ah, I guess the guide is more lenient here, true. Do what you like then. ...
4 years, 7 months ago (2016-05-26 21:24:42 UTC) #28
dmurph
Ah, I guess the guide is more lenient here, true. Do what you like then. ...
4 years, 7 months ago (2016-05-26 21:24:43 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996443003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996443003/160001
4 years, 6 months ago (2016-05-27 22:39:31 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996443003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1996443003/180001
4 years, 6 months ago (2016-05-31 20:42:13 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/79295)
4 years, 6 months ago (2016-05-31 22:14:52 UTC) #37
dmurph
On 2016/05/31 at 22:14:52, commit-bot wrote: > Try jobs failed on following builders: > linux_android_rel_ng ...
4 years, 6 months ago (2016-06-02 01:29:25 UTC) #38
palakj1
Expected files changed for FAIL cases which disagree with the spec change.
4 years, 6 months ago (2016-06-02 18:43:24 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996443003/200001
4 years, 6 months ago (2016-06-06 22:20:50 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/239855)
4 years, 6 months ago (2016-06-06 23:22:53 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996443003/240001
4 years, 6 months ago (2016-06-07 23:57:10 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-08 01:55:49 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1996443003/240001
4 years, 6 months ago (2016-06-09 17:27:12 UTC) #51
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-06-09 19:01:44 UTC) #52
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-09 19:02:05 UTC) #53
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 19:03:43 UTC) #55
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/dbb2725b92683d709296e19fb107ceb483180729
Cr-Commit-Position: refs/heads/master@{#398974}

Powered by Google App Engine
This is Rietveld 408576698