Skip to content

Conversation

@raju-opti
Copy link
Contributor

Summary

next release will contain holdouts

Test plan

Issues

  • FSSDK-12080

next release will contain holdouts
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 removes the holdouts feature toggle as holdouts will be included in the next release. The changes enable holdout functionality unconditionally throughout the codebase by removing feature toggle checks and associated mock setups.

  • Removed all conditional checks for the holdouts feature toggle
  • Cleaned up test mocks and imports related to the feature toggle
  • Added TypeScript type checking to build scripts for improved type safety

Reviewed Changes

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

Show a summary per file
File Description
package.json Added tsc --noEmit to build scripts for type checking before bundling
lib/feature_toggle.ts Commented out the holdout toggle function (incomplete cleanup)
lib/project_config/project_config.ts Removed feature toggle import and conditional check in parseHoldoutsConfig
lib/project_config/project_config.spec.ts Removed mock setup, cleaned up imports, and updated test descriptions
lib/optimizely/index.tests.js Removed unused holdout import
lib/notification_center/type.ts Changed holdout type from conditional to direct Holdout | null
lib/core/decision_service/index.ts Removed feature toggle import and made holdout logic unconditional
lib/core/decision_service/index.spec.ts Removed holdout toggle mock setup and cleaned up imports

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

} from 'error_message';
import { getMockLogger } from '../tests/mock/mock_logger';
import { VariableType } from '../shared_types';
import { Mock, afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

Unused imports afterAll, beforeAll.

Suggested change
import { Mock, afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, vi } from 'vitest';
import { Mock, afterEach, assert, beforeEach, describe, expect, it, vi } from 'vitest';

Copilot uses AI. Check for mistakes.
import testDatafile from '../tests/test_data';
import configValidator from '../utils/config_validator';
import { FEATURE_VARIABLE_TYPES } from '../utils/enums';
import { keyBy, sprintf } from '../utils/fns';
Copy link

Copilot AI Nov 18, 2025

Choose a reason for hiding this comment

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

Unused import sprintf.

Suggested change
import { keyBy, sprintf } from '../utils/fns';
import { keyBy } from '../utils/fns';

Copilot uses AI. Check for mistakes.
@raju-opti raju-opti merged commit b593f5b into master Nov 18, 2025
8 of 14 checks passed
@raju-opti raju-opti deleted the raju/holdout_flag_removal branch November 18, 2025 13:09
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