Feature Flags Issues in Community Edition

Feature Flags Issues in Community Edition

Environment

  • OpenReplay Version: Community Edition
  • Deployment: Self-hosted
  • Client Version: v1.25.0
  • Kustomize Version: v4.5.7
  • Server Version: v1.25.6+k3s1

Issues Description

  • Feature Flags sometimes receive an empty array
  • Feature Flags always disabled on start response
{
    "features": {
        "feature-flags": false
    }
}

Implementation

import Tracker from "@openreplay/tracker";
import trackerAssist from "@openreplay/tracker-assist";

if (globalThis.$or === undefined) {
    const tracker = new Tracker({
        projectKey: import.meta.env.VITE_OR_KEY,
        ingestPoint: import.meta.env.VITE_OR_URL,
        DISABLE_SECURE_MODE: import.meta.env.VITE_LOCAL === "true",
        crossdomain: {
            enabled: true,
        },
        captureIFrames: true,
    });

    tracker.use(trackerAssist());

    tracker
        .start({
            userID: "user@example.com",
        })
        .catch()
        .finally(async () => {
            tracker.clearPersistFlags();
            await tracker.reloadFlags();
        });

    globalThis.$or = tracker;

}

Expected Behavior

  • Should work consistently with UI settings
  • Server response should match UI configuration

Actual Behavior

  • Server returns feature-flags: false despite UI settings
  • Inconsistent behavior between UI and implementation

Questions

  1. Is this a known issue with the Community Edition?
  2. Are there any specific configuration requirements for these features?
  3. Are these features fully supported in the Community Edition?

Any help or guidance would be greatly appreciated!

Feature flags has been deprecated from v1.20.