Skip to content
This repository has been archived by the owner on Jul 31, 2020. It is now read-only.

Fixed receiving objects in chunk #267

Merged
merged 2 commits into from
Jan 3, 2019

Conversation

samartnik
Copy link
Contributor

@AlexeyBarabash
Copy link
Contributor

Tested locally with brave-core. This PR fixes brave/brave-browser#2283 and also does huge speedup for syncing of large folders.

const prefix = `${this.apiVersion}/${this.userId}/${category}`
let options = {
MaxKeys: maxRecords || 1000,
Bucket: this.bucket,
Prefix: prefix
}
if (nextContinuationToken != '') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint: should be !==

lib/s3Helper.js Outdated
@@ -221,7 +221,8 @@ module.exports.listObjects = function (s3, options, limitResponse) {
} else {
resolve({
contents: data.Contents,
isTruncated: data.IsTruncated
isTruncated: data.IsTruncated,
nextContinuationToken : data.NextContinuationToken
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint: extra space before colon

lib/s3Helper.js Outdated
@@ -230,7 +231,8 @@ module.exports.listObjects = function (s3, options, limitResponse) {
if (error) { reject(error) }
resolve({
contents: data,
isTruncated: false
isTruncated: false,
nextContinuationToken : ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lint: extra space before colon

@darkdh
Copy link
Member

darkdh commented Dec 28, 2018

not sure why browser test and coverage fails on CI. works good on my local env

@diracdeltas diracdeltas mentioned this pull request Dec 28, 2018
Copy link
Member

@SergeyZhukovsky SergeyZhukovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. @darkdh @diracdeltas we decided to merge it to unblock QA from testing desktop and Android and create an issue to investigate the travis problems. All tests are passed locally and EC2 instance, they don't through travis for some reason.

@SergeyZhukovsky SergeyZhukovsky merged commit e2675b6 into brave:staging Jan 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants