Closed Bug 379986 Opened 17 years ago Closed 17 years ago

make bookmark folders use ids from the moz_bookmarks table

Categories

(Firefox :: Bookmarks & History, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3 alpha5

People

(Reporter: dietrich, Assigned: dietrich)

References

Details

Attachments

(1 file, 2 obsolete files)

breaking up bug 372508 into smaller chunks.
Attached patch fix v5 (obsolete) — Splinter Review
in addition to the previous patch, this one removes moz_bookmarks_folders, and adds a folder_type column to moz_bookmarks.
Attachment #264080 - Flags: review?(mano)
What's b.fk for a folder item, and for a separator item? It would be really nice  not to have separate pre-compiled statements here.
Attached patch fix v6 (obsolete) — Splinter Review
(In reply to comment #2)
> What's b.fk for a folder item, and for a separator item?

this patch explicitly sets the column's default value to null.

> It would be really
> nice  not to have separate pre-compiled statements here.
> 

it would be nice, but we don't want to have to join against moz_places just to get folder info.
Attachment #264080 - Attachment is obsolete: true
Attachment #264130 - Flags: review?(mano)
Attachment #264080 - Flags: review?(mano)
Comment on attachment 264130 [details] [diff] [review]
fix v6

s/mDBGetFolderProperties/mDBGetItemProperties/

there's a lot of cleanup to do, but let's land this as is for now so we can get the schema changes done.
Attachment #264130 - Flags: review?(mano) → review+
Attached patch fix v7Splinter Review
combines the Get*Properties statements per IRC, and changes both the statment and keys to "GetItemProperties", per Mano's previous comment.
Attachment #264130 - Attachment is obsolete: true
Attachment #264191 - Flags: review?(mano)
Comment on attachment 264191 [details] [diff] [review]
fix v7

much better
Attachment #264191 - Flags: review?(mano) → review+
Checking in toolkit/components/places/public/nsINavBookmarksService.idl;
/cvsroot/mozilla/toolkit/components/places/public/nsINavBookmarksService.idl,v  <--  nsINavBookmarksService.idl
new revision: 1.36; previous revision: 1.35
done
Checking in toolkit/components/places/src/nsNavBookmarks.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavBookmarks.cpp,v  <--  nsNavBookmarks.cpp
new revision: 1.84; previous revision: 1.83
done
Checking in toolkit/components/places/src/nsNavBookmarks.h;
/cvsroot/mozilla/toolkit/components/places/src/nsNavBookmarks.h,v  <--  nsNavBookmarks.h
new revision: 1.39; previous revision: 1.38
done
Checking in toolkit/components/places/src/nsNavHistory.cpp;
/cvsroot/mozilla/toolkit/components/places/src/nsNavHistory.cpp,v  <--  nsNavHistory.cpp
new revision: 1.121; previous revision: 1.120
done
Checking in toolkit/components/places/tests/bookmarks/test_bookmarks.js;
/cvsroot/mozilla/toolkit/components/places/tests/bookmarks/test_bookmarks.js,v  <--  test_bookmarks.js
new revision: 1.8; previous revision: 1.7
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
all bookmarks disappear.
cannot import from files.

regression?
(In reply to comment #8)
> all bookmarks disappear.
> cannot import from files.
> 
> regression?
> 

hi pal-moz,

can you please provide more information? i've tested with a new profile, and upgrading from non-places, and both worked without error. can you use bookmarks after that point? is there anything in the js console?
Build identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a5pre) Gecko/2007050821 Minefield/3.0a5pre [places-bookmarks]

test again, with creating new profile.
cannot reproduce now.
I don't know why.

last time, use hourly (maybe 050820) with existing/old profile.
then bookmarks disappear, and cannot import.
From reading https://bugzilla.mozilla.org/show_bug.cgi?id=379986#c10 appears this may have broken Import, and folders. 

posted to wrong bug - Bah!
Depends on: 380437
note, after this change we are no longer creating the moz_bookmarks_folders table, but in migration we are still attempting to drop it.  see bug #380801 for a related issue.
Flags: in-testsuite+
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: