mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-13 11:17:26 +02:00
chore(AI): eventGrouping flag cleanup (#10428)
This commit is contained in:
parent
7479720f58
commit
7830fbb75f
@ -5,7 +5,6 @@ import { formatDateYMDHMS } from 'utils/formatDate';
|
|||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import { styled } from '@mui/material';
|
import { styled } from '@mui/material';
|
||||||
import type { EventSchema } from 'openapi';
|
import type { EventSchema } from 'openapi';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
import { useLocation } from 'react-router-dom';
|
import { useLocation } from 'react-router-dom';
|
||||||
|
|
||||||
interface IEventCardProps {
|
interface IEventCardProps {
|
||||||
@ -74,7 +73,6 @@ export const StyledCodeSection = styled('div')(({ theme }) => ({
|
|||||||
|
|
||||||
const EventCard = ({ entry }: IEventCardProps) => {
|
const EventCard = ({ entry }: IEventCardProps) => {
|
||||||
const { locationSettings } = useLocationSettings();
|
const { locationSettings } = useLocationSettings();
|
||||||
const eventGroupingEnabled = useUiFlag('eventGrouping');
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const createdAtFormatted = formatDateYMDHMS(
|
const createdAtFormatted = formatDateYMDHMS(
|
||||||
@ -94,9 +92,7 @@ const EventCard = ({ entry }: IEventCardProps) => {
|
|||||||
<StyledDefinitionTerm>Event id:</StyledDefinitionTerm>
|
<StyledDefinitionTerm>Event id:</StyledDefinitionTerm>
|
||||||
<dd>{entry.id}</dd>
|
<dd>{entry.id}</dd>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={
|
condition={entry.groupId !== undefined}
|
||||||
eventGroupingEnabled && entry.groupId !== undefined
|
|
||||||
}
|
|
||||||
show={
|
show={
|
||||||
<>
|
<>
|
||||||
<StyledDefinitionTerm>
|
<StyledDefinitionTerm>
|
||||||
@ -166,10 +162,7 @@ const EventCard = ({ entry }: IEventCardProps) => {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={
|
condition={Boolean(entry.data?.changeRequestId)}
|
||||||
eventGroupingEnabled &&
|
|
||||||
Boolean(entry.data?.changeRequestId)
|
|
||||||
}
|
|
||||||
show={
|
show={
|
||||||
<>
|
<>
|
||||||
<StyledDefinitionTerm>
|
<StyledDefinitionTerm>
|
||||||
|
@ -91,7 +91,6 @@ export type UiFlags = {
|
|||||||
impactMetrics?: boolean;
|
impactMetrics?: boolean;
|
||||||
crDiffView?: boolean;
|
crDiffView?: boolean;
|
||||||
changeRequestApproverEmails?: boolean;
|
changeRequestApproverEmails?: boolean;
|
||||||
eventGrouping?: boolean;
|
|
||||||
timestampsInChangeRequestTimeline?: boolean;
|
timestampsInChangeRequestTimeline?: boolean;
|
||||||
reportUnknownFlags?: boolean;
|
reportUnknownFlags?: boolean;
|
||||||
lifecycleGraphs?: boolean;
|
lifecycleGraphs?: boolean;
|
||||||
|
@ -61,7 +61,6 @@ export type IFlagKey =
|
|||||||
| 'crDiffView'
|
| 'crDiffView'
|
||||||
| 'changeRequestApproverEmails'
|
| 'changeRequestApproverEmails'
|
||||||
| 'paygTrialEvents'
|
| 'paygTrialEvents'
|
||||||
| 'eventGrouping'
|
|
||||||
| 'paygInstanceStatsEvents'
|
| 'paygInstanceStatsEvents'
|
||||||
| 'timestampsInChangeRequestTimeline'
|
| 'timestampsInChangeRequestTimeline'
|
||||||
| 'lifecycleGraphs'
|
| 'lifecycleGraphs'
|
||||||
@ -282,10 +281,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS,
|
process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
eventGrouping: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_EVENT_GROUPING,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
paygTrialEvents: parseEnvVarBoolean(
|
paygTrialEvents: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_PAYG_TRIAL_EVENTS,
|
process.env.UNLEASH_EXPERIMENTAL_PAYG_TRIAL_EVENTS,
|
||||||
false,
|
false,
|
||||||
|
@ -57,7 +57,6 @@ process.nextTick(async () => {
|
|||||||
improvedJsonDiff: true,
|
improvedJsonDiff: true,
|
||||||
impactMetrics: true,
|
impactMetrics: true,
|
||||||
crDiffView: true,
|
crDiffView: true,
|
||||||
eventGrouping: true,
|
|
||||||
paygTrialEvents: true,
|
paygTrialEvents: true,
|
||||||
timestampsInChangeRequestTimeline: true,
|
timestampsInChangeRequestTimeline: true,
|
||||||
lifecycleGraphs: true,
|
lifecycleGraphs: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user