Extend `Bookmarks.fetch` to allow a `parentGuid` without an `index`
Categories
(Toolkit :: Places, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: lina, Assigned: mkaply)
Details
Attachments
(1 file, 1 obsolete file)
Specifying a parent without an index would fetch all of a parent's children, sorted by the index. (Suggestion from bug bug 1274108, comment 59).
Updated•4 years ago
|
Assignee | ||
Comment 1•6 months ago
|
||
Shouldn't this just be removing this line:
All of the queries in the file already take parentGuid into account when doing their queries.
Comment 2•6 months ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #1)
Shouldn't this just be removing this line:
Yes, with a test checking that the default value works (likely it needs a "defaultValue: this.DEFAULT_INDEX," instead of "requiredIf")
Assignee | ||
Comment 3•6 months ago
|
||
Updated•6 months ago
|
Assignee | ||
Comment 4•6 months ago
|
||
Posted before your comment. I'll make the additional changes.
Comment 5•6 months ago
•
|
||
also, I'm not sure it's just going to work because it seems comment 0 is requesting a behavior change, so fetching without an index fetches all the children... currently with parent and index it only fetches one... As I said I can't check atm due to lack of time left (sorry).
we have await fetchBookmarkByPosition(fetchInfo, options); this seems to require the addition of a fetchBookmarksByParent similar to fetchBookmarksByURL
Assignee | ||
Comment 6•6 months ago
|
||
Yeah, this is way more complicated then it looks. It looks like you can't combine various fetch items at all. So if you specify a GUIDPrefix, you can't use Tags for instance.
So my use case - specifying a GUID prefix and a parentGUID wouldn't even work.
But Lina's use case is pretty straightforward, so I can still do a patch for that.
Updated•6 months ago
|
Updated•6 months ago
|
Assignee | ||
Comment 7•5 months ago
|
||
Pushed by mozilla@kaply.com: https://hg.mozilla.org/integration/autoland/rev/a6bcdb42ce67 Add the ability to fetch bookmarks by parent GUID. r=Standard8
Comment 9•5 months ago
|
||
bugherder |
Description
•