diff --git a/superset-frontend/src/SqlLab/components/QueryAutoRefresh.jsx b/superset-frontend/src/SqlLab/components/QueryAutoRefresh.jsx index 1ddfbf9b2b84..c68025bc5846 100644 --- a/superset-frontend/src/SqlLab/components/QueryAutoRefresh.jsx +++ b/superset-frontend/src/SqlLab/components/QueryAutoRefresh.jsx @@ -26,8 +26,8 @@ import * as Actions from '../actions/sqlLab'; const QUERY_UPDATE_FREQ = 2000; const QUERY_UPDATE_BUFFER_MS = 5000; -const MAX_QUERY_AGE_TO_POLL = 21600000; -const QUERY_TIMEOUT_LIMIT = 10000; +const MAX_QUERY_AGE_TO_POLL = 21_600_000; +const QUERY_TIMEOUT_LIMIT = 10_000; class QueryAutoRefresh extends React.PureComponent { constructor(props) { diff --git a/superset-frontend/src/SqlLab/components/SqlEditor.jsx b/superset-frontend/src/SqlLab/components/SqlEditor.jsx index 3883c43b2f91..87f3337837aa 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditor.jsx +++ b/superset-frontend/src/SqlLab/components/SqlEditor.jsx @@ -74,7 +74,7 @@ import SqlEditorLeftBar from './SqlEditorLeftBar'; import AceEditorWrapper from './AceEditorWrapper'; import RunQueryActionButton from './RunQueryActionButton'; -const LIMIT_DROPDOWN = [10, 100, 1000, 10000, 100000]; +const LIMIT_DROPDOWN = [10, 100, 1000, 10_000, 100_000]; const SQL_EDITOR_PADDING = 10; const INITIAL_NORTH_PERCENT = 30; const INITIAL_SOUTH_PERCENT = 70; diff --git a/superset-frontend/src/components/LastUpdated/index.tsx b/superset-frontend/src/components/LastUpdated/index.tsx index dc55957300ed..07d33bfcc516 100644 --- a/superset-frontend/src/components/LastUpdated/index.tsx +++ b/superset-frontend/src/components/LastUpdated/index.tsx @@ -21,7 +21,7 @@ import moment, { Moment, MomentInput } from 'moment'; import { t, styled } from '@superset-ui/core'; import Icon from 'src/components/Icon'; -const REFRESH_INTERVAL = 60000; // every minute +const REFRESH_INTERVAL = 60_000; // every minute interface LastUpdatedProps { updatedAt: MomentInput; diff --git a/superset-frontend/src/explore/controls.jsx b/superset-frontend/src/explore/controls.jsx index e54f7ab4d435..8c40c224ac3f 100644 --- a/superset-frontend/src/explore/controls.jsx +++ b/superset-frontend/src/explore/controls.jsx @@ -90,7 +90,7 @@ export const D3_FORMAT_OPTIONS = [ ['DURATION_SUB', 'Duration in ms (100.40008 => 100ms 400µs 80ns)'], ]; -const ROW_LIMIT_OPTIONS = [10, 50, 100, 250, 500, 1000, 5000, 10000, 50000]; +const ROW_LIMIT_OPTIONS = [10, 50, 100, 250, 500, 1000, 5000, 10_000, 50_000]; const SERIES_LIMITS = [0, 5, 10, 25, 50, 100, 500]; @@ -361,7 +361,7 @@ export const controls = { freeForm: true, label: t('Row limit'), validators: [legacyValidateInteger], - default: 10000, + default: 10_000, choices: formatSelectOptions(ROW_LIMIT_OPTIONS), },