mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
This PR cleans up the reportUnknownFlags flag. These changes were automatically generated by AI and should be reviewed carefully. Fixes #10595 ## 🧹 AI Flag Cleanup Summary This change removes the `reportUnknownFlags` feature flag and makes its functionality a permanent part of the application. The "Unknown flags" feature is now always enabled. ### 🚮 Removed - **Flag Definitions** - Removed `reportUnknownFlags` from `IFlagKey` and `UiFlags` types. - Removed `reportUnknownFlags` from the experimental flags configuration in `src/lib/types/experimental.ts`. - Removed the flag from development and test configurations (`src/server-dev.ts`, `unknown-flags.e2e.test.ts`). - **Conditional Logic** - Removed conditional checks for `reportUnknownFlags` in backend services (`UnknownFlagsService`, `ClientMetricsServiceV2`) and API controllers (`UnknownFlagsController`). - Removed `useUiFlag('reportUnknownFlags')` and related conditional rendering from frontend components (`UnknownFlagsTable`, `FeatureToggleListTable`). The UI elements are now always visible. - Modified the `useUnknownFlags` hook to always fetch data. ### 🛠 Kept - **Core Functionality** - The feature to report and display unknown flags is now always active. - The "Unknown flags" link is now permanently visible on the feature flags overview page. - Backend logic for processing and storing unknown flags is now always executed. ### 📝 Why The `reportUnknownFlags` feature flag was marked as completed with the feature being kept. This cleanup removes the flag and its associated conditional logic, simplifying the code and making the unknown flags reporting a permanent feature. --------- Co-authored-by: unleash-bot <194219037+unleash-bot[bot]@users.noreply.github.com> Co-authored-by: Nuno Góis <github@nunogois.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| mailtemplates | ||
| migrations | ||
| test | ||
| migrator.ts | ||
| server-dev.ts | ||
| server.ts | ||
| test-setup.ts | ||