1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

chore(AI): eventGrouping flag cleanup (#10428)

This commit is contained in:
unleash-bot[bot] 2025-07-29 15:20:10 +03:00 committed by GitHub
parent 7479720f58
commit 7830fbb75f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 16 deletions

View File

@ -5,7 +5,6 @@ import { formatDateYMDHMS } from 'utils/formatDate';
import { Link } from 'react-router-dom';
import { styled } from '@mui/material';
import type { EventSchema } from 'openapi';
import { useUiFlag } from 'hooks/useUiFlag';
import { useLocation } from 'react-router-dom';
interface IEventCardProps {
@ -74,7 +73,6 @@ export const StyledCodeSection = styled('div')(({ theme }) => ({
const EventCard = ({ entry }: IEventCardProps) => {
const { locationSettings } = useLocationSettings();
const eventGroupingEnabled = useUiFlag('eventGrouping');
const location = useLocation();
const createdAtFormatted = formatDateYMDHMS(
@ -94,9 +92,7 @@ const EventCard = ({ entry }: IEventCardProps) => {
<StyledDefinitionTerm>Event id:</StyledDefinitionTerm>
<dd>{entry.id}</dd>
<ConditionallyRender
condition={
eventGroupingEnabled && entry.groupId !== undefined
}
condition={entry.groupId !== undefined}
show={
<>
<StyledDefinitionTerm>
@ -166,10 +162,7 @@ const EventCard = ({ entry }: IEventCardProps) => {
}
/>
<ConditionallyRender
condition={
eventGroupingEnabled &&
Boolean(entry.data?.changeRequestId)
}
condition={Boolean(entry.data?.changeRequestId)}
show={
<>
<StyledDefinitionTerm>

View File

@ -91,7 +91,6 @@ export type UiFlags = {
impactMetrics?: boolean;
crDiffView?: boolean;
changeRequestApproverEmails?: boolean;
eventGrouping?: boolean;
timestampsInChangeRequestTimeline?: boolean;
reportUnknownFlags?: boolean;
lifecycleGraphs?: boolean;

View File

@ -61,7 +61,6 @@ export type IFlagKey =
| 'crDiffView'
| 'changeRequestApproverEmails'
| 'paygTrialEvents'
| 'eventGrouping'
| 'paygInstanceStatsEvents'
| 'timestampsInChangeRequestTimeline'
| 'lifecycleGraphs'
@ -282,10 +281,6 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS,
false,
),
eventGrouping: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_EVENT_GROUPING,
false,
),
paygTrialEvents: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_PAYG_TRIAL_EVENTS,
false,

View File

@ -57,7 +57,6 @@ process.nextTick(async () => {
improvedJsonDiff: true,
impactMetrics: true,
crDiffView: true,
eventGrouping: true,
paygTrialEvents: true,
timestampsInChangeRequestTimeline: true,
lifecycleGraphs: true,