Remove any code referring to moz_items_annos or the "sync/parent" annotation
Categories
(Toolkit :: Places, task, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: mak, Assigned: jeevikagopal, Mentored)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
I noticed the "sync/parent" item annotation is no more used by any "live" code, and also references to moz_items_annos are useless. We should keep the empty table around though, just in case of a downgrade.
Reporter | ||
Updated•2 years ago
|
Hey! I am an Outreachy applicant and I would like to work on this bug. Can someone guide me?
Thank you :)
Reporter | ||
Comment 2•2 years ago
•
|
||
Sure. First I'd suggest to fix this in small pieces, possibly one changeset per each source+test pair.
For example changing Bookmarks.sys.mjs, and then running the tests and modify the affected ones. This is one changeset.
In a separate changeset do PlacesDBUtils.sys.mjs, and similarly any affected tests.
And so on. By splitting into small parts we can do this incrementally and land parts that are ready.
All the references can be found here:
https://searchfox.org/mozilla-central/search?q=moz_items_anno
https://searchfox.org/mozilla-central/search?q=sync%252Fparent
The scope here is to remove any code that is managing entries in the moz_items_annos table, because we don't use those anymore, though there are a few exceptions:
- the code in Database.cpp, nsPlacesTables.h, nsPlacesIndexes.h should remain for now, because we must take care of downgrade paths, so we'll handle it apart
- some code related to the "mobile root" may be complicate to remove
Overall I'd concentrate on: Bookmarks.sys.mjs, PlacesDBUtils.sys.mjs, PlacesSyncUtils.sys.mjs, store.rs
Most tests can be executed using ./mach xpcshell-test toolkit/components/places
For all the changes you can use an artifact build, that is quite fast.
There's documentation on how to build Firefox in https://firefox-source-docs.mozilla.org/setup/index.html
Hey!
I looked into the code and I have some general doubts regarding the tests and the moz_items_annos table. Can you please suggest which is the best place to get them cleared - here or the IRC channels?
Thank you!
Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/171283fee687
https://hg.mozilla.org/mozilla-central/rev/b91a76e31e8e
https://hg.mozilla.org/mozilla-central/rev/5484bfb806a1
Description
•