Skip to content

Commit

Permalink
add one fix for count distribution and update snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: Eric <[email protected]>
  • Loading branch information
mengweieric committed Oct 25, 2023
1 parent 21785d0 commit 34a3d36
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
10 changes: 9 additions & 1 deletion public/components/event_analytics/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,12 @@ export const Explorer = ({
...TIME_INTERVAL_OPTIONS,
]);
selectedIntervalRef.current = { text: 'Auto', value: 'auto_' + minInterval };
dispatch(
updateCountDistribution({
tabId,
data: { selectedInterval: selectedIntervalRef.current.value.replace(/^auto_/, '') },
})
);
};

useEffect(() => {
Expand Down Expand Up @@ -495,7 +501,9 @@ export const Explorer = ({
selectedIntervalRef.current = timeIntervalOptions[intervalOptionsIndex];
getPatterns(intrv, getErrorHandler('Error fetching patterns'));
}}
stateInterval={selectedIntervalRef.current?.value}
stateInterval={
countDistribution.selectedInterval || selectedIntervalRef.current?.value
}
startTime={appLogEvents ? startTime : dateRange[0]}
endTime={appLogEvents ? endTime : dateRange[1]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

exports[`<para_input /> spec renders the markdown component 1`] = `
<div
class="sc-gKXOVf fPkmRS"
class="sc-gLDzan gebGCr"
>
<div
class="sc-bczRLJ hRTESd"
class="sc-beqWaB CSaoA"
/>
<div
style="width: 100%;"
Expand Down Expand Up @@ -52,10 +52,10 @@ exports[`<para_input /> spec renders the markdown component 1`] = `

exports[`<para_input /> spec renders the visualization component 1`] = `
<div
class="sc-gKXOVf fPkmRS"
class="sc-gLDzan gebGCr"
>
<div
class="sc-bczRLJ hRTESd"
class="sc-beqWaB CSaoA"
/>
<div
class="euiFlexGroup euiFlexGroup--gutterSmall euiFlexGroup--alignItemsFlexEnd euiFlexGroup--directionRow euiFlexGroup--responsive"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exports[`<ParaOutput /> spec renders other types of outputs 1`] = `
class="euiText euiText--medium"
>
<div
class="sc-crXcEl gqVnJo"
class="sc-csCMJt hFpeNP"
/>
</div>
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ exports[`<Paragraphs /> spec renders the component 1`] = `
class="euiFormRow__fieldWrapper"
>
<div
class="sc-gKXOVf fPkmRS"
class="sc-gLDzan gebGCr"
>
<div
class="sc-bczRLJ hRTESd"
class="sc-beqWaB CSaoA"
/>
<div
style="width: 100%;"
Expand Down

0 comments on commit 34a3d36

Please sign in to comment.