Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explorer fixes #216

Merged
merged 8 commits into from
Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions dashboards-observability/common/constants/explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export const TAB_EVENT_ID_TXT_PFX = 'main-content-events-';
export const TAB_CHART_ID_TXT_PFX = 'main-content-vis-';
export const HAS_SAVED_TIMESTAMP = 'hasSavedTimestamp';
export const FILTER_OPTIONS = ['Visualization', 'Query'];
export const SAVED_QUERY = 'savedQuery';
export const SAVED_VISUALIZATION = 'savedVisualization';
export const SAVED_OBJECT_ID = 'savedObjectId';
export const SAVED_OBJECT_TYPE = 'objectType';

export const DATE_PICKER_FORMAT = 'YYYY-MM-DD HH:mm:ss';
export const TIME_INTERVAL_OPTIONS = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ export function DatePicker(props: IDatePickerProps) {
style={{maxWidth: '40vw'}}
>
<EuiSuperDatePicker
start={ startTime }
end={ endTime }
showUpdateButton={ false }
start={startTime}
end={endTime}
dateFormat={uiSettingsService.get('dateFormat')}
onTimeChange={(e) => {
const start = e.start;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { DatePicker } from './date_picker';
import '@algolia/autocomplete-theme-classic';
import { Autocomplete } from './autocomplete';
import { SavePanel } from '../../explorer/save_panel';
import { useCallback } from 'react';
import { PPLReferenceFlyout } from '../helpers';

export interface IQueryBarProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const DocViewRow = (props: IDocViewRowProps) => {
key={ uniqueId('datagrid-cell-') }
className={ clsName }
>
{ content }
{ typeof(content) === 'boolean' ? String(content) : content }
</td>);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { EuiGlobalToastList } from '@elastic/eui';
import { Toast } from '@elastic/eui/src/components/toast/global_toast_list';
import { isEmpty } from 'lodash';
import React, { ReactChild, useState } from 'react';
import { HashRouter, Route, Switch } from 'react-router-dom';
import { HashRouter, Route, Switch, useHistory } from 'react-router-dom';
import { RAW_QUERY } from '../../../common/constants/explorer';
import { ObservabilitySideBar } from '../common/side_nav';
import { Home as EventExplorerHome } from './home';
Expand All @@ -29,6 +29,7 @@ export const EventAnalytics = ({
http,
...props
}: any) => {
const history = useHistory();
const [toasts, setToasts] = useState<Array<Toast>>([]);

const eventAnalyticsBreadcrumb = {
Expand Down Expand Up @@ -86,6 +87,7 @@ export const EventAnalytics = ({
setToast={setToast}
chrome={chrome}
getExistingEmptyTab={getExistingEmptyTab}
history={history}
/>
);
}}
Expand All @@ -111,6 +113,7 @@ export const EventAnalytics = ({
timestampUtils={timestampUtils}
setToast={setToast}
getExistingEmptyTab={getExistingEmptyTab}
history={history}
/>
</ObservabilitySideBar>
);
Expand Down
Loading