Skip to content

Conversation

@raju-opti
Copy link
Contributor

Summary

Test plan

  • all existing tests should pass

Issues

  • FSSDK-11101

@coveralls
Copy link

coveralls commented Jan 30, 2025

Coverage Status

coverage: 82.037% (+0.2%) from 81.83%
when pulling 534177b on raju/no_config
into 25e81e2 on master.

Copy link
Contributor

@junaed-optimizely junaed-optimizely left a comment

Choose a reason for hiding this comment

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

LGTM! Just few suggestions


if (!this.isValidInstance()) {
this.logger?.error(INVALID_OBJECT, 'track');
const configObj = this.projectConfigManager.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

try {
if (!this.isValidInstance()) {
this.logger?.error(INVALID_OBJECT, 'getVariation');
const configObj = this.projectConfigManager.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

try {
if (!this.isValidInstance()) {
this.logger?.error(INVALID_OBJECT, 'isFeatureEnabled');
const configObj = this.projectConfigManager.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

}

if (!this.validateInputs({ user_id: userId })) {
const configObj = this.projectConfigManager.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

this.logger?.error(INVALID_OBJECT, 'getAllFeatureVariables');
return null;
}
const configObj = this.projectConfigManager.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

const decisionMap: { [key: string]: OptimizelyDecision } = {};
if (!this.isValidInstance() || !configObj) {
this.logger?.error(INVALID_OBJECT, 'decideAll');
const configObj = this.projectConfigManager.getConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@raju-opti raju-opti merged commit bc49e3c into master Feb 3, 2025
16 of 20 checks passed
@raju-opti raju-opti deleted the raju/no_config branch February 3, 2025 16:32
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