Skip to content

Conversation

@raju-opti
Copy link
Contributor

Issues

  • FSSDK-12075

@coveralls
Copy link

coveralls commented Nov 14, 2025

Coverage Status

coverage: 78.237% (-0.03%) from 78.267%
when pulling b35297a on raju/odp-log
into a14d1bf on master.

@raju-opti raju-opti requested review from Copilot and junaed-optimizely and removed request for junaed-optimizely November 14, 2025 10:40
Copilot finished reviewing on behalf of raju-opti November 14, 2025 10:43
Copy link

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 refactors ODP (Optimizely Data Platform) error logging to provide better context when the ODP Manager is unavailable.

  • Renamed the error constant from ODP_EVENT_FAILED_ODP_MANAGER_MISSING to the more generic ODP_MANAGER_MISSING
  • Updated the error message to include the calling method name as a parameter for better diagnostics
  • Added comprehensive test coverage for ODP manager missing scenarios

Reviewed Changes

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

File Description
lib/message/error_message.ts Renamed constant and updated error message format to accept method name parameter
lib/optimizely/index.ts Updated import and error logging calls in sendOdpEvent and fetchQualifiedSegments to use new constant with method context
lib/optimizely/index.spec.ts Added test cases to verify error logging when ODP Manager is unavailable for both public API methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@raju-opti raju-opti merged commit dca1913 into master Nov 14, 2025
19 of 25 checks passed
@raju-opti raju-opti deleted the raju/odp-log branch November 14, 2025 12:34
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.

4 participants