-
Notifications
You must be signed in to change notification settings - Fork 41
Conversation
Tested locally with brave-core. This PR fixes brave/brave-browser#2283 and also does huge speedup for syncing of large folders. |
client/requestUtil.js
Outdated
const prefix = `${this.apiVersion}/${this.userId}/${category}` | ||
let options = { | ||
MaxKeys: maxRecords || 1000, | ||
Bucket: this.bucket, | ||
Prefix: prefix | ||
} | ||
if (nextContinuationToken != '') { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 : '' |
There was a problem hiding this comment.
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
not sure why browser test and coverage fails on CI. works good on my local env |
There was a problem hiding this 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.
This fixes https://github.com/brave/browser-android-tabs/issues/925