Describe the bug
id
value for the bookmark (regular ones implemented by Google) is an integer
that gets incremented whenever new bookmark is created. This is all fine when you are working on a local machine, but the problem arises when user syncs the account. What happens then is that imported/synced bookmarks actually get a new id
value assigned to them so it completely messes up the dynamic
information as it uses the id
field to identify which bookmark it is that regular expression
is referring to.
This bug would solve itself if Google decided to use uuid
for bookmarks instead of integer
, but I am not that lucky :)
To Reproduce
Steps to reproduce the behavior:
- Add a dynamic bookmark on Machine A
- Add a regular bookmark on Machine B (before syncing account)
- Sync account on Machine B
- Bookmark from step 2 will be tracked instead of bookmark created in step 1 (on Machine B)
Expected behavior
When syncing accounts on a different machine I should be able to sync dynamic bookmarks as well
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
- Version 87.0.4280.88
Potential solution
The most reliable field I could use to potentially solve this problem is the dateAdded
since it is measured in milliseconds and it's unrealistic for the user to create two bookmarks at the same millisecond. On the downside, this solution would decrease performance (as searching by dateAdded
is not as fast as searching by id
- at least it shouldn't be), but since I think this feature is important I will definitely have to find a solution to this problem