question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bookmarks orders sometimes are sent equal for different bookmarks items

See original GitHub issue

Description

Bookmarks orders sometimes are sent equal for different bookmarks items.

Steps to Reproduce

Steps to reproduce, mostly taken from https://github.com/brave/brave-browser/issues/2133

  1. Use debug build
  2. Create sync chain on device 1
  3. Join device 2 and add a bookmark on device 2, gets sync’d to device 1
  4. Import bookmarks from other browser on device 1, wait for sometime, sync’s on device 2
  5. Import 5000 bookmark HTML file on device 1, wait for a really long time, at some moment ValidateFolderOrders will report invalid order.

Steps to Reproduce for QA team without taking a debug build

  1. Create sync chain on device 1
  2. Join device 2 and add a bookmark on device 2, gets sync’d to device 1
  3. Import 5000 bookmark HTML file on device 1, wait for a really long time to sync bookmarks into device 2
  4. Expand the very nested folder in bookmarks on device 2, see some bookmarks at a wrong position compare to device 1

Actual result:

Warning in ValidateFolderOrders is triggered.

Expected result:

Warning in ValidateFolderOrders is not triggered.

Reproduces how often:

Easily, but requires to wait.

Brave version (brave://version info)

Brave | 0.60.1 Chromium: 71.0.3578.80 (Developer Build) (64-bit) Revision | 2ac50e7249fbd55e6f517a28131605c9fb9fe897-refs/branch-heads/3578@{#860}

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds? no, ValidateFolderOrders is not merged yet

Additional Information

Pieces of logs: Device 1 sends

{"action":0,"bookmark":{"hideInToolbar":false,"isFolder":false,
"order":"1.1.0.3.1.1.1.1.1.1.1.1.1.1.1.1.109.6","parentFolderObjectId":{"0":243,"1":47,"2":35,"3":37,"4":31,"5":108,"6":60,"7":108,"8":44,"9":37,"10":15,"11":138,"12":236,"13":5,"14":170,"15":10},
"site":{"creationTime":0,
"customTitle":"6","favicon":"","lastAccessedTime":0,"location":"https://medium.com/@ericclemmons/javascript-fatigue-48d4011b6fc4#.uhv5554id",
"title":"6"}},"deviceId":{"0":0},"objectData":"bookmark","objectId":{"0":20,"1":8,"2":140,"3":172,"4":150,"5":146,"6":130,"7":98,"8":57,"9":128,"10":131,"11":159,"12":78,"13":40,"14":235,"15":38},"syncTimestamp":1543936897442.687}


{"action":1,"bookmark":{"hideInToolbar":false,"isFolder":false,
"order":"1.1.0.3.1.1.1.1.1.1.1.1.1.1.1.1.109.6","parentFolderObjectId":{"0":243,"1":47,"2":35,"3":37,"4":31,"5":108,"6":60,"7":108,"8":44,"9":37,"10":15,"11":138,"12":236,"13":5,"14":170,"15":10},"site":{"creationTime":0,
"customTitle":"1884","favicon":"","lastAccessedTime":0,"location":"https://www.youtube.com/watch?v=-_tvJtUHnmU",
"title":"1884"}},"deviceId":{"0":0},"objectData":"bookmark","objectId":{"0":44,"1":42,"2":122,"3":131,"4":104,"5":189,"6":40,"7":19,"8":216,"9":143,"10":240,"11":209,"12":86,"13":162,"14":62,"15":81},"syncTimestamp":1543937503598.914},

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AlexeyBarabashcommented, Dec 27, 2018

Merged to 0.59.x now. Thanks @GeetaSarvadnya .

1reaction
AlexeyBarabashcommented, Dec 27, 2018

Yes, not yet merged to 0.59.x, but I see uplift-approved/0.59.x-Beta label, so doing merge now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If your iCloud or Safari bookmarks aren't syncing
If your bookmarks don't display in the same order across all of your devices, check how many bookmarks are in the folder.
Read more >
Troubleshoot bookmarks
If you've added bookmarks to a document and they're causing you trouble, the first troubleshooting step is to make sure you can see...
Read more >
Power BI Bookmarks Tips, Tricks, and Best Practices
Bookmarks are powerful and can improve the reader's experience. ... Data: This captures items including filters and sort order.
Read more >
Using Bookmarks In Safari On a Mac - YouTube
https://macmost.com/e-2611 You can use bookmarks in Safari to store the locations of web pages so you can return to them easily.
Read more >
Bookmarks (Printing)
Simply put, Bookmarks are designed to mark your place in a book. They make great promotional handouts or sales items. Bookmarks are often...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found