Skip to content

Commit

Permalink
chore: Removes the TODOs and uses the default page size (apache#16422)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored and Emmanuel Bavoux committed Nov 14, 2021
1 parent 972d9cd commit 4f1c992
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions superset-frontend/src/views/CRUD/alert/AlertReportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import {
Recipient,
} from './types';

const SELECT_PAGE_SIZE = 2000; // temporary fix for paginated query
const TIMEOUT_MIN = 1;
const TEXT_BASED_VISUALIZATION_TYPES = [
'pivot_table',
Expand Down Expand Up @@ -1048,10 +1047,6 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
<Select
ariaLabel={t('Owners')}
allowClear
// TODO Use default page size (100). To do that, the server
// needs to send the total number of results. Currently, the
// number of results is limited to SELECT_PAGE_SIZE
pageSize={SELECT_PAGE_SIZE}
name="owners"
mode="multiple"
value={
Expand Down Expand Up @@ -1099,10 +1094,6 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
<div className="input-container">
<Select
ariaLabel={t('Database')}
// TODO Use default page size (100). To do that, the server
// needs to send the total number of results. Currently, the
// number of results is limited to SELECT_PAGE_SIZE
pageSize={SELECT_PAGE_SIZE}
name="source"
value={
currentAlert?.database?.label &&
Expand Down Expand Up @@ -1267,10 +1258,6 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
css={{
display: contentType === 'chart' ? 'inline' : 'none',
}}
// TODO Use default page size (100). To do that, the server
// needs to send the total number of results. Currently, the
// number of results is limited to SELECT_PAGE_SIZE
pageSize={SELECT_PAGE_SIZE}
name="chart"
value={
currentAlert?.chart?.label && currentAlert?.chart?.value
Expand All @@ -1288,10 +1275,6 @@ const AlertReportModal: FunctionComponent<AlertReportModalProps> = ({
css={{
display: contentType === 'dashboard' ? 'inline' : 'none',
}}
// TODO Use default page size (100). To do that, the server
// needs to send the total number of results. Currently, the
// number of results is limited to SELECT_PAGE_SIZE
pageSize={SELECT_PAGE_SIZE}
name="dashboard"
value={
currentAlert?.dashboard?.label && currentAlert?.dashboard?.value
Expand Down

0 comments on commit 4f1c992

Please sign in to comment.