Skip to content

Commit

Permalink
run tests and update snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wei <menwe@amazon.com>
  • Loading branch information
mengweieric committed Sep 26, 2022
1 parent 5a46f8a commit 210918a
Show file tree
Hide file tree
Showing 16 changed files with 22,021 additions and 22,123 deletions.
8 changes: 4 additions & 4 deletions dashboards-observability/common/types/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export interface ILogExplorerProps {
) => void;
savedObjectId: string;
getExistingEmptyTab: (params: EmptyTabParams) => string;
qm: QueryManager;
queryManager: QueryManager;
}

export interface IExplorerProps {
Expand Down Expand Up @@ -130,7 +130,7 @@ export interface IExplorerProps {
appBaseQuery?: string;
callback?: any;
callbackInApp?: any;
qm: QueryManager;
queryManager: QueryManager;
}

export interface SavedQuery {
Expand Down Expand Up @@ -316,13 +316,13 @@ export interface EventAnalyticsProps {
timestampUtils: TimestampUtils;
http: HttpStart;
notifications: NotificationsStart;
qm: QueryManager;
queryManager: QueryManager;
}

export interface DataConfigPanelProps {
fieldOptionList: IField[];
visualizations: IVisualizationContainerProps;
qm?: QueryManager;
queryManager?: QueryManager;
}
export interface GetTooltipHoverInfoType {
tooltipMode: string;
Expand Down
6 changes: 3 additions & 3 deletions dashboards-observability/public/components/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface ObservabilityAppDeps {
dslService: any;
savedObjects: any;
timestampUtils: any;
qm: QueryManager;
queryManager: QueryManager;
}

// for cypress to test redux store
Expand All @@ -40,7 +40,7 @@ export const App = ({
dslService,
savedObjects,
timestampUtils,
qm,
queryManager,
}: ObservabilityAppDeps) => {
const { chrome, http, notifications } = CoreStartProp;
const parentBreadcrumb = {
Expand Down Expand Up @@ -133,7 +133,7 @@ export const App = ({
timestampUtils={timestampUtils}
http={http}
notifications={notifications}
qm={qm}
queryManager={queryManager}
{...props}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const Explorer = ({
setEndTime,
callback,
callbackInApp,
qm,
queryManager,
}: IExplorerProps) => {
const dispatch = useDispatch();
const requestParams = { tabId };
Expand Down Expand Up @@ -769,7 +769,7 @@ export const Explorer = ({
handleOverrideTimestamp={handleOverrideTimestamp}
callback={callbackForConfig}
changeIsValidConfigOptionState={changeIsValidConfigOptionState}
qm={qm}
queryManager={queryManager}
/>
);
};
Expand Down Expand Up @@ -926,7 +926,7 @@ export const Explorer = ({

if (selectedContentTabId === TAB_CHART_ID) {
// parse stats section on every search
const statsTokens = qm.queryParser().parse(tempQuery).getStats();
const statsTokens = queryManager.queryParser().parse(tempQuery).getStats();

const updatedDataConfig = getUpdatedDataConfig(statsTokens);
await dispatch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const LogExplorer = ({
history,
notifications,
http,
qm,
queryManager,
}: ILogExplorerProps) => {
const dispatch = useDispatch();
const tabIds = useSelector(selectQueryTabs).queryTabIds.filter(
Expand Down Expand Up @@ -185,7 +185,7 @@ export const LogExplorer = ({
curSelectedTabId={curSelectedTabIdRef}
http={http}
searchBarConfigs={searchBarConfigs}
qm={qm}
queryManager={queryManager}
/>
</>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports[`Field component Renders a sidebar field 1`] = `
anchorPosition="rightUp"
button={
<FieldButton
className="dscSidebarItem"
className="shard__fieldSelectorField explorer__fieldSelectorField"
dataTestSubj="field-agent-showDetails"
fieldAction={
<React.Fragment>
Expand Down Expand Up @@ -67,7 +67,7 @@ exports[`Field component Renders a sidebar field 1`] = `
}
isActive={false}
onClick={[Function]}
size="s"
size="m"
/>
}
closePopover={[Function]}
Expand All @@ -85,7 +85,7 @@ exports[`Field component Renders a sidebar field 1`] = `
className="euiPopover__anchor"
>
<FieldButton
className="dscSidebarItem"
className="shard__fieldSelectorField explorer__fieldSelectorField"
dataTestSubj="field-agent-showDetails"
fieldAction={
<React.Fragment>
Expand Down Expand Up @@ -131,10 +131,10 @@ exports[`Field component Renders a sidebar field 1`] = `
}
isActive={false}
onClick={[Function]}
size="s"
size="m"
>
<div
className="osdFieldButton osdFieldButton--small dscSidebarItem"
className="osdFieldButton shard__fieldSelectorField explorer__fieldSelectorField"
>
<button
className="osd-resetFocusState osdFieldButton__button"
Expand All @@ -151,23 +151,23 @@ exports[`Field component Renders a sidebar field 1`] = `
aria-label="string"
className="osdFieldIcon"
iconType="tokenString"
size="s"
size="l"
title="string"
>
<span
className="euiToken euiToken--euiColorVis1 euiToken--square euiToken--light euiToken--small osdFieldIcon"
className="euiToken euiToken--euiColorVis1 euiToken--square euiToken--light euiToken--large osdFieldIcon"
style={Object {}}
>
<EuiIcon
aria-label="string"
size="m"
size="l"
title="string"
type="tokenString"
>
<EuiIconEmpty
aria-hidden={true}
aria-label="string"
className="euiIcon euiIcon--medium euiIcon-isLoading"
className="euiIcon euiIcon--large euiIcon-isLoading"
focusable="false"
role="img"
style={null}
Expand All @@ -176,7 +176,7 @@ exports[`Field component Renders a sidebar field 1`] = `
<svg
aria-hidden={true}
aria-label="string"
className="euiIcon euiIcon--medium euiIcon-isLoading"
className="euiIcon euiIcon--large euiIcon-isLoading"
focusable="false"
height={16}
role="img"
Expand Down
Loading

0 comments on commit 210918a

Please sign in to comment.