-
Notifications
You must be signed in to change notification settings - Fork 975
Fixed bug where new folders could destroy existing folders with same name #4744
Conversation
if (siteDetail.get('location')) { | ||
site = site.set('location', siteDetail.get('location')) | ||
} | ||
let site = mergeSiteDetails(oldSite, siteDetail, tag) | ||
if (folderId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we move this into mergeSiteDetails
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 😄
Do we feel confident that this will cover the import case as well? |
assert.equal(processedSites.size, 2) | ||
assert.equal(processedSites.getIn([1, 'parentFolderId']), folderId) | ||
|
||
// Add another bookmark folder with the same name / parentFolderId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great coverage!
@alexwykoff it can cover import same data repeatedly |
lgtm! |
Test plan updated:
|
This issue seems to exists when importing bookmarks that contain to folders with same name on different paths. Replication steps: Create this bookmark structure in some browser. (I used Firefox version 59.0 on Ubuntu 16.04) Bookmarks Toolbar Import into Brave Resulted import is: Fiction/Books folder is missing and its content is imported to Development/Books instead. |
git rebase -i
to squash commits (if needed).Test Plan:
Fixes #4728
Auditors: @darkdh
Test Plan: