Skip to content

Conversation

Mat001
Copy link
Contributor

@Mat001 Mat001 commented Sep 25, 2025

  1. do not expose retryConfig
  2. set default retry count to 1
  3. do not expose internal cmab config file here: https://github.com/optimizely/go-sdk/blob/1c7a4f3926d17069528e0b18c80c1b6e3e5f802d/pkg/client/facto…
    instead, we can add a separate type in the same file. We can keep the exposed type stable while being able to change the internal *cmab.config if needed.

Jira ticket:
https://jira.sso.episerver.net/browse/FSSDK-11877

- Remove RetryConfig field from public cmab.Config struct
- Change DefaultMaxRetries from 3 to 1 for conservative first release
- Use hardcoded internal retry config in ExperimentCmabService
- Create client-level CmabConfig type for stable public API
- Update all tests to use new configuration approach

This keeps retry functionality internal while preventing API exposure
that might need to change in future releases.
@Mat001 Mat001 self-assigned this Sep 25, 2025
@Mat001 Mat001 requested a review from raju-opti September 25, 2025 22:01
Keep existing code structure instead of hardcoding retry config.
Since RetryConfig is no longer in public API, always use defaults
but maintain the same if/else structure for consistency.
@Mat001 Mat001 requested a review from raju-opti September 26, 2025 17:59
Copy link

@raju-opti raju-opti left a comment

Choose a reason for hiding this comment

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

lgtm

@Mat001
Copy link
Contributor Author

Mat001 commented Sep 29, 2025

Merging with FSC failing, because FSC 3 test failing are unrelated. A known issue with tests for regions.

@Mat001 Mat001 merged commit 9f4ba4f into master Sep 29, 2025
26 of 29 checks passed
@Mat001 Mat001 deleted the hide-retry-config-from-public-api branch September 29, 2025 17:30
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.

2 participants