logs: dedup strategy: fixed order (#64404)

pull/64510/head
Gábor Farkas 2 years ago committed by GitHub
parent ff6d601428
commit 3cbeace0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      public/app/features/explore/Logs.tsx

@ -110,6 +110,14 @@ const styleOverridesForStickyNavigation = css`
}
`;
// we need to define the order of these explicitly
const DEDUP_OPTIONS = [
LogsDedupStrategy.none,
LogsDedupStrategy.exact,
LogsDedupStrategy.numbers,
LogsDedupStrategy.signature,
];
class UnthemedLogs extends PureComponent<Props, State> {
flipOrderTimer?: number;
cancelFlippingTimer?: number;
@ -428,7 +436,7 @@ class UnthemedLogs extends PureComponent<Props, State> {
</InlineField>
<InlineField label="Deduplication" className={styles.horizontalInlineLabel} transparent>
<RadioButtonGroup
options={Object.values(LogsDedupStrategy).map((dedupType) => ({
options={DEDUP_OPTIONS.map((dedupType) => ({
label: capitalize(dedupType),
value: dedupType,
description: LogsDedupDescription[dedupType],

Loading…
Cancel
Save