8000 [FSSDK-11510] update retryConfig for batch event processor factories by raju-opti · Pull Request #1057 · optimizely/javascript-sdk · GitHub
[go: up one dir, main page]

Skip to content

[FSSDK-11510] update retryConfig for batch event processor factories #1057

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 2 commits into from
May 19, 2025

Conversation

raju-opti
Copy link
Contributor

Summary

Test plan

Issues

  • FSSDK-11510

Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR enforces a required maxRetries on retry configurations, updates the Node factory’s default retry count, and aligns related tests.

  • Made maxRetries mandatory in factory option and retry config types
  • Changed default maxRetries from 10 to 5 in the Node-specific factory
  • Updated unit tests to reflect the new required maxRetries behavior

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lib/event_processor/event_processor_factory.ts Made retryOptions.maxRetries a required field
lib/event_processor/batch_event_processor.ts Changed RetryConfig.maxRetries to be non-optional
lib/event_processor/event_processor_factory.node.ts Adjusted default maxRetries from 10 down to 5
lib/event_processor/event_processor_factory.spec.ts Updated tests to pass explicit maxRetries
lib/event_processor/event_processor_factory.node.spec.ts Aligned spec to expect 5 retries by default

@coveralls
Copy link
coveralls commented May 16, 2025

Coverage Status

coverage: 80.192%. remained the same
when pulling 3c1d032 on raju/event_retry
into b70e79e on master.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please update copyright here!

Copy link
Contributor

Choose a reason for hiding this comment

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

Please update copyright here!

@raju-opti raju-opti merged commit a59bd3b into master May 19, 2025
8 of 9 checks passed
@raju-opti raju-opti deleted the raju/event_retry branch May 19, 2025 07:17
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
0