Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert PR#313 (Merge by id and action) #317

Merged
merged 2 commits into from May 30, 2019
Merged

Conversation

@AlexeyBarabash
Copy link
Contributor

AlexeyBarabash commented May 30, 2019

This is revert of #313 .

It causes problem with this STR

1. Create chain Android1 <=> Android2
2. Create bookmarks on Android1:
	wikipedia.com
	espn.com
	amazon.com
3. Wait untill bookmarks appear on Android2
4. Delete wikipedia.com from Android1
5. Wait untill bookmark will be deleted on Android2
6. Connect Core to chain
7.
Actual bookmarks:
	wikipedia.com
	espn.com
	amazon.com
Expected bookmarks:
	espn.com
	amazon.com

With these STR brave-core logs show

get-existing-objects:
	CREATE wikipedia.com
	CREATE espn.com
	CREATE amazon.com
	DELETE wikipedia.com
resolve: all pairs with null

[1207:1207:0530/132313.432076:INFO:CONSOLE(1)] "Ignoring DELETE of object 93,212,16,154,213,179,21,41,212,0,57,255,12,41,120,72.", source: chrome-extension://nomlkjnggnifocmealianaaiobmebgil/extension/brave-sync/bundles/bundle.js (1)

resolved-sync-records:
	CREATE wikipedia.com
	CREATE espn.com
	CREATE amazon.com

So it left first CREATE and second DELETE, but then ignored the second DELETE because existing_object==null

PR is not required when there is a fix of do not send records if there is no chain brave/brave-core@6f96849

@darkdh
Copy link
Member

darkdh commented May 30, 2019

please separate new test case from revert commit

@AlexeyBarabash AlexeyBarabash force-pushed the revert_separate_create branch from 38f459f to 4d34c1e May 30, 2019
@AlexeyBarabash
Copy link
Contributor Author

AlexeyBarabash commented May 30, 2019

Made a separate commits. CI succeeded.

@darkdh
darkdh approved these changes May 30, 2019
@AlexeyBarabash AlexeyBarabash merged commit 066c4da into staging May 30, 2019
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
AlexeyBarabash added a commit that referenced this pull request May 30, 2019
Revert PR#313 (Merge by id and action)
@darkdh darkdh deleted the revert_separate_create branch May 30, 2019
darkdh added a commit that referenced this pull request May 30, 2019
Merge pull request #317 from brave/revert_separate_create
AlexeyBarabash added a commit that referenced this pull request Jun 21, 2019
Revert PR#313 (Merge by id and action)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Sync - All platforms
  
Awaiting triage
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.