Skip to content

feat(event processor): Validation and defaults for event processor configuration #346

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

Merged
merged 11 commits into from
Aug 16, 2019

Conversation

mjc1283
Copy link
Contributor

@mjc1283 mjc1283 commented Aug 15, 2019

Summary

This PR adds validation and defaults for event batch size and flush interval. There are different defaults for the browser & node entry points:

Node: batch size 10, flush interval 30000
Browser: batch size 10, flush interval 1000

I also added validation that ignores invalid values and uses these defaults.

Test plan

Updated unit tests

Issues

OASIS-5163

@mjc1283 mjc1283 added the WIP label Aug 15, 2019
@mjc1283 mjc1283 requested a review from a team as a code owner August 15, 2019 17:49
@mjc1283 mjc1283 self-assigned this Aug 15, 2019
@coveralls
Copy link

coveralls commented Aug 15, 2019

Coverage Status

Coverage increased (+0.09%) to 97.693% when pulling 945fb66 on mcarroll/OASIS-5163 into de62473 on master.

@mjc1283 mjc1283 changed the title feat(event processor): Separate defaults in browser and node for event processor configuration feat(event processor): Validation and defaults for event processor configuration Aug 15, 2019
@mjc1283 mjc1283 added WIP and removed WIP labels Aug 15, 2019
Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -38,8 +38,6 @@ var FEATURE_VARIABLE_TYPES = enums.FEATURE_VARIABLE_TYPES;
var DECISION_NOTIFICATION_TYPES = enums.DECISION_NOTIFICATION_TYPES;
var NOTIFICATION_TYPES = enums.NOTIFICATION_TYPES;

var DEFAULT_EVENT_MAX_QUEUE_SIZE = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah makes sense to move this out into the platform-specific entry-points

@mjc1283 mjc1283 removed the WIP label Aug 16, 2019
@mjc1283 mjc1283 merged commit 5f49770 into master Aug 16, 2019
@mjc1283 mjc1283 deleted the mcarroll/OASIS-5163 branch August 16, 2019 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants