Skip to content

Commit

Permalink
Run ag-grid migration script
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Mar 21, 2024
1 parent 11ad572 commit 23cb758
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions public/components/common/search/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export const Search = (props: any) => {
};

return (
<div className="globalQueryBar">
(<div className="globalQueryBar">

Check failure on line 313 in public/components/common/search/search.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `(`
<EuiFlexGroup direction="column" gutterSize="s">
<EuiFlexItem>
<EuiFlexGroup gutterSize="s" justifyContent="flexEnd" alignItems="center" wrap>
Expand Down Expand Up @@ -411,7 +411,7 @@ export const Search = (props: any) => {
)}
<EuiFlexItem grow={false} />
{!(queryRedux.selectedTimestamp === '' && queryResults?.datarows) && ( // index with no timestamp, dont show timepicker
<EuiFlexItem className="euiFlexItem--flexGrowZero event-date-picker" grow={false}>
(<EuiFlexItem className="euiFlexItem--flexGrowZero event-date-picker" grow={false}>

Check failure on line 414 in public/components/common/search/search.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `(`
{!isLiveTailOn && (
<DatePicker
startTime={startTime}
Expand All @@ -437,7 +437,7 @@ export const Search = (props: any) => {
isAppAnalytics={isAppAnalytics}
/>
)}
</EuiFlexItem>
</EuiFlexItem>)

Check failure on line 440 in public/components/common/search/search.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `)`
)}
{!showQueryArea && (
<EuiFlexItem grow={false}>
Expand Down Expand Up @@ -560,6 +560,6 @@ export const Search = (props: any) => {
)}
</EuiFlexGroup>
{flyout}
</div>
</div>)

Check failure on line 563 in public/components/common/search/search.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `)`
);
};
4 changes: 2 additions & 2 deletions public/components/event_analytics/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export const Explorer = ({

const mainContent = useMemo(() => {
return (
<div className="dscWrapper">
(<div className="dscWrapper">

Check failure on line 541 in public/components/event_analytics/explorer/explorer.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `(`
{explorerData && !isEmpty(explorerData.jsonData) ? (
<EuiFlexGroup direction="column" gutterSize="none">
{(isDefaultDataSourceType || appLogEvents) && query[SELECTED_TIMESTAMP] !== '' && (
Expand Down Expand Up @@ -667,7 +667,7 @@ export const Explorer = ({
) : (
<NoResults tabId={tabId} />
)}
</div>
</div>)

Check failure on line 670 in public/components/event_analytics/explorer/explorer.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `)`
);
}, [
isPanelTextFieldInvalid,
Expand Down
8 changes: 4 additions & 4 deletions public/components/notebooks/components/notebook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ export class Notebook extends Component<NotebookProps, NotebookState> {
) : null;

return (
<div style={pageStyles}>
(<div style={pageStyles}>

Check failure on line 921 in public/components/notebooks/components/notebook.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `(`
<EuiPage>
<EuiPageBody component="div">
<EuiFlexGroup gutterSize="s" justifyContent="flexEnd">
Expand Down Expand Up @@ -1057,7 +1057,7 @@ export class Notebook extends Component<NotebookProps, NotebookState> {
</>
) : (
// show default paragraph if no paragraphs in this notebook
<div style={panelStyles}>
(<div style={panelStyles}>

Check failure on line 1060 in public/components/notebooks/components/notebook.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `(`
<EuiPanel>
<EuiSpacer size="xxl" />
<EuiText textAlign="center">
Expand Down Expand Up @@ -1105,13 +1105,13 @@ export class Notebook extends Component<NotebookProps, NotebookState> {
</EuiFlexGroup>
<EuiSpacer size="xxl" />
</EuiPanel>
</div>
</div>)

Check failure on line 1108 in public/components/notebooks/components/notebook.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `)`
)}
{showLoadingModal}
</EuiPageBody>
</EuiPage>
{this.state.isModalVisible && this.state.modalLayout}
</div>
</div>)

Check failure on line 1114 in public/components/notebooks/components/notebook.tsx

View workflow job for this annotation

GitHub Actions / Lint

Delete `)`
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ParaInput = (props: {

const RenderParaInput = () => {
return (
<div style={{ width: '100%' }}>
(<div style={{ width: '100%' }}>
{/* If the para is selected show the editor else display the code in the paragraph */}
{para.isSelected ? (
<EuiTextArea
Expand Down Expand Up @@ -97,7 +97,7 @@ export const ParaInput = (props: {
{para.inp}
</EuiCodeBlock>
)}
</div>
</div>)
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function DashboardTable(props: {
const currPercentileFilter = filter ? filter.value : '';
return item ? (
// expand plot ranges to accommodate scale
<BoxPlt
(<BoxPlt
plotParams={{
min:
varianceProps.ticks.length > 1
Expand Down Expand Up @@ -197,7 +197,7 @@ export function DashboardTable(props: {
props.addPercentileFilter(condition, additionalFilters);
},
}}
/>
/>)
) : (
'-'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function LatencyTable(props: {
const currPercentileFilter = filter ? filter.value : '';
return item ? (
// expand plot ranges to accommodate scale
<BoxPlt
(<BoxPlt
plotParams={{
min:
varianceProps.ticks.length > 1
Expand Down Expand Up @@ -207,7 +207,7 @@ export function LatencyTable(props: {
props.addPercentileFilter(condition, additionalFilters);
},
}}
/>
/>)
) : (
'-'
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ export const DataTable = ({ visualizations, layout, config }: any) => {
const onPageSizeChanged = useCallback(
(val: number) => {
setPageSize(val);
gridRef.current.api.paginationSetPageSize(val);
gridRef.current.api.setGridOption("paginationPageSize", val);

Check warning on line 134 in public/components/visualizations/charts/data_table/data_table.tsx

View check run for this annotation

Codecov / codecov/patch

public/components/visualizations/charts/data_table/data_table.tsx#L134

Added line #L134 was not covered by tests
setActivePage(0);
gridRef.current.api.paginationGoToPage(0);
if (isFullScreen) {
gridRefFullScreen.current.api.paginationSetPageSize(val);
gridRefFullScreen.current.api.setGridOption("paginationPageSize", val);

Check warning on line 138 in public/components/visualizations/charts/data_table/data_table.tsx

View check run for this annotation

Codecov / codecov/patch

public/components/visualizations/charts/data_table/data_table.tsx#L138

Added line #L138 was not covered by tests
gridRefFullScreen.current.api.paginationGoToPage(0);
}
},
Expand Down

0 comments on commit 23cb758

Please sign in to comment.