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

Create separate queues for preferences records #331

Merged
merged 1 commit into from Aug 27, 2019

Conversation

@AlexeyBarabash
Copy link
Contributor

AlexeyBarabash commented Aug 16, 2019

Create queues per device per categories.

@AlexeyBarabash
Copy link
Contributor Author

AlexeyBarabash commented Aug 16, 2019

Marked as draft because does not have updated tests and delete queues code does not removes queues for prefs.

@AlexeyBarabash AlexeyBarabash force-pushed the sync_prefs_over_sqs branch from 0c8a375 to dc0778e Aug 19, 2019
@AlexeyBarabash AlexeyBarabash self-assigned this Aug 19, 2019
@AlexeyBarabash AlexeyBarabash marked this pull request as ready for review Aug 19, 2019
@AlexeyBarabash AlexeyBarabash force-pushed the sync_prefs_over_sqs branch from dc0778e to 536b917 Aug 19, 2019
@AlexeyBarabash
Copy link
Contributor Author

AlexeyBarabash commented Aug 19, 2019

Pushed fix for error found while preparing brave-core corresponding PR.

client/requestUtil.js Outdated Show resolved Hide resolved
@AlexeyBarabash AlexeyBarabash force-pushed the sync_prefs_over_sqs branch 3 times, most recently from f4ac1d9 to cbc6564 Aug 19, 2019
@@ -196,7 +197,7 @@ RequestUtil.prototype.list = function (category, startAt, maxRecords, nextContin
}
// We poll from SQS
let notificationParams = {
QueueUrl: `${this.SQSUrl}`,
QueueUrl: `${this.SQSUrlByCat[category]}`,

This comment has been minimized.

Copy link
@SergeyZhukovsky

SergeyZhukovsky Aug 23, 2019

Member

I think we should add a check in that place does this.SQSUrlByCat contains a category item or at least if it's size is not 0. And put that info in the log to easy find if something is wrong.

This comment has been minimized.

Copy link
@AlexeyBarabash

AlexeyBarabash Aug 27, 2019

Author Contributor

Pushed the fix according to review

Copy link
Member

SergeyZhukovsky left a comment

++

@AlexeyBarabash AlexeyBarabash merged commit 4ef1474 into staging Aug 27, 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 AlexeyBarabash deleted the sync_prefs_over_sqs branch Aug 27, 2019
AlexeyBarabash added a commit that referenced this pull request Aug 27, 2019
Create separate queues for preferences records
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

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