Closed Bug 1865087 Opened 2 years ago Closed 2 years ago

Refactor some parts of PlacesTransactions

Categories

(Toolkit :: Places, task, P3)

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: mak, Assigned: mak)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

I have a few ideas in mind to simplify solving Bug 1857882, that are not strictly part of that fix.

Component: Bookmarks & History → Places
Product: Firefox → Toolkit

Rather than accepting either an array or an async function, make it only accept
an array. This simplifies the internals for future refactoring, and avoids
depending on async functions created in other globals.

Rather than keeping around properties tracking batches, straight annotate
transact() calls that happen inside a batch. This simplified things a bit and
potentially allows to move the component to a single Enqueuer.

Depends on D193814

Blocks: 1865631
Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/e680863304ae Change PlacesTransaction.batch() to only accept an array of transactions. r=places-reviewers,daisuke https://hg.mozilla.org/integration/autoland/rev/903654c94b22 Add optional logging to PlacesTransactions. r=places-reviewers,daisuke https://hg.mozilla.org/integration/autoland/rev/bb4605391d57 Track batching transactions differently in PlacesTransactions. r=places-reviewers,daisuke
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: