Conversation
17c8d4b to
94a060f
Compare
94a060f to
a74e8bd
Compare
Codecov Report
@@ Coverage Diff @@
## master #4378 +/- ##
==========================================
+ Coverage 92.77% 92.78% +<.01%
==========================================
Files 119 119
Lines 8448 8512 +64
==========================================
+ Hits 7838 7898 +60
- Misses 610 614 +4
Continue to review full report at Codecov.
|
| expect(PushUtils.groupByLocaleIdentifier([])).toEqual({default: []}); | ||
| }); | ||
|
|
||
| it('should propely apply translations strings', () => { |
There was a problem hiding this comment.
meh.. look like I'm quite tired
| }); | ||
| }); | ||
|
|
||
| it('should propely apply translations objects', () => { |
| }); | ||
| }); | ||
|
|
||
| it('should propely override alert-lang with translations', () => { |
| }); | ||
| }); | ||
|
|
||
| it('should propely override alert-lang with translations strings', () => { |
| @@ -16,6 +18,7 @@ export class PushQueue { | |||
| constructor(config: any = {}) { | |||
| this.channel = config.channel || PushQueue.defaultPushChannel(); | |||
| this.batchSize = config.batchSize || DEFAULT_BATCH_SIZE; | |||
There was a problem hiding this comment.
Do we still need batchSize?
There was a problem hiding this comment.
yeah we still need it so we have a query batch size and an enqueue batch size:
| 'failedPerType.ios': { __op: 'Increment', amount: 1 }, | ||
| [`sentPerUTCOffset.${UTCOffset}`]: { __op: 'Increment', amount: 1 }, | ||
| [`failedPerUTCOffset.${UTCOffset}`]: { __op: 'Increment', amount: 1 }, | ||
| count: { __op: 'Increment', amount: -1 } |
There was a problem hiding this comment.
If we're not using count on _PushStatus we should probably strip it from the schema as well, unless there's some particular need for it still.
| import logger from '../logger'; | ||
|
|
||
| const PUSH_CHANNEL = 'parse-server-push'; | ||
| const DEFAULT_BATCH_SIZE = 100; |
There was a problem hiding this comment.
If batchSize is not needed we can just drop this too.
montymxb
left a comment
There was a problem hiding this comment.
Some typos and questions. But the tests look good 👍 .
| @@ -16,6 +18,7 @@ export class PushQueue { | |||
| constructor(config: any = {}) { | |||
| this.channel = config.channel || PushQueue.defaultPushChannel(); | |||
| this.batchSize = config.batchSize || DEFAULT_BATCH_SIZE; | |||
There was a problem hiding this comment.
yeah we still need it so we have a query batch size and an enqueue batch size:
| return rest.each(config, auth, '_Installation', where, options, (result) => { | ||
| total++; | ||
| currentBatch.push(result.objectId); | ||
| if (currentBatch.length == this.batchSize) { |
There was a problem hiding this comment.
it's used there.
Motivation:
translationkey support as it was originally intended on parse-dashboardThis will require to bump to 3.0.