Closed
Bug 1489409
Opened 7 years ago
Closed 7 years ago
Remove support for "annotations" options to PlacesTransactions.NewBookmark/NewFolder/NewLivemark
Categories
(Toolkit :: Places, enhancement, P2)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla65
| Tracking | Status | |
|---|---|---|
| firefox65 | --- | fixed |
People
(Reporter: standard8, Assigned: kajalsah, Mentored)
References
Details
(Whiteboard: [lang=js])
Attachments
(1 file)
The PlacesTransactions objects, NewBookmark, NewFolder and NewLivemark, can currently received "annotations" or "annotation" input properties.
However, these properties are never used, and annotations are going away, so we can remove them now.
We should remove "annotations" from the transaction definition, as well as the code to handle inserting them. We should also remove the defineInputProps/defineArrayInputProp and the associated functions.
Also the documentation needs the references to annotations removing.
Note: we should not remove "excludingAnnotations"/"excludingAnnotation" from other places in the file at this time, as they are still required.
| Reporter | ||
Comment 1•7 years ago
|
||
I'm happy to mentor this bug.
Note that the file being referenced here is PlacesTransactions.jsm. You should also ensure the tests still pass, by running a minimum of:
./mach xpcshell-test toolkit/components/places
but this would be useful to check as well:
./mach mochitest browser/components/places
Mentor: standard8
Whiteboard: [lang=js]
| Assignee | ||
Comment 2•7 years ago
|
||
Hello Mark, I am new to open source and looking forward to Outreachy Program. I want to start with this bug. Can I take this issue if this is available to a new user?
| Reporter | ||
Comment 3•7 years ago
|
||
Hi Kajal, yes that's fine. We only generally assign bugs once the first patch is up though.
| Assignee | ||
Comment 4•7 years ago
|
||
@Mark Can I get some more hints on this? The files where I can find these objects being used?
| Reporter | ||
Comment 5•7 years ago
|
||
(In reply to Kajal Kumari Sah from comment #4)
> @Mark Can I get some more hints on this? The files where I can find these
> objects being used?
Sure. Using https://searchfox.org/ is a good place to look for items.
For instance, if you search for something like NewBookmark, then you'll get:
https://searchfox.org/mozilla-central/search?q=NewBookmark
Generally, the objects in PlacesTransactions are referenced by PT.NewBookmark or PlacesTransactions.NewBookmark.
I've already been through the places that use these and checked that annotations are no longer passed to them, though you are welcome to check as well.
I think all the changes that are required are in PlacesTranscations.jsm or test_async_transactions.js - the related test file.
| Reporter | ||
Updated•7 years ago
|
Assignee: nobody → kajalksah07
| Assignee | ||
Comment 6•7 years ago
|
||
Initial commit on removing annotations in the PlacesTransactions
| Reporter | ||
Comment 7•7 years ago
|
||
Hi Kajal, did you see my latest comments on the patch? https://phabricator.services.mozilla.com/D6093#142067
Flags: needinfo?(kajalksah07)
| Reporter | ||
Comment 8•7 years ago
|
||
Kajal, if you're still working on this please let me know ASAP, otherwise I'll probably look to get it landed somehow.
Flags: needinfo?(kajalksah07)
| Reporter | ||
Comment 9•7 years ago
|
||
Unfortunately I've not heard from Kajal. As we'd like to move forward with this soonish, I'll update the patch and add the minor test changes so it can land.
Assignee: kajalksah07 → standard8
Status: NEW → ASSIGNED
Updated•7 years ago
|
Attachment #9009795 -
Attachment description: Removed annotations in PlacesTransactions → Bug 1489409 - Remove annotation options for PlacesTransactions.NewBookmark/NewFolder.
Comment 10•7 years ago
|
||
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bd2ec1be4ead
Remove annotation options for PlacesTransactions.NewBookmark/NewFolder. r=mak
| Reporter | ||
Comment 11•7 years ago
|
||
Assigning to Kajal for the record as they did most of the work here.
Assignee: standard8 → kajalksah07
Comment 12•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
You need to log in
before you can comment on or make changes to this bug.
Description
•