diff --git a/cccs-build/superset/Dockerfile b/cccs-build/superset/Dockerfile
index 1f61ece92288a..27640b957bc5b 100644
--- a/cccs-build/superset/Dockerfile
+++ b/cccs-build/superset/Dockerfile
@@ -25,4 +25,3 @@ ENV BUILD_NUMBER_VAR=${BUILD_NUMBER}
USER superset
-
diff --git a/cccs-build/superset/analytical-platform-requirements.txt b/cccs-build/superset/analytical-platform-requirements.txt
index 3a2a63e02a8c9..eedd0e8cd462b 100644
--- a/cccs-build/superset/analytical-platform-requirements.txt
+++ b/cccs-build/superset/analytical-platform-requirements.txt
@@ -1 +1 @@
-hogwarts-auth~=1.8.0.7820
\ No newline at end of file
+hogwarts-auth~=1.8.0.7820
diff --git a/cccs-build/superset/requirements.txt b/cccs-build/superset/requirements.txt
index 9e122fa763967..5574d9e0a701d 100644
--- a/cccs-build/superset/requirements.txt
+++ b/cccs-build/superset/requirements.txt
@@ -9,4 +9,4 @@ trino>=0.313.0
mysql-connector-python==8.0.26
elasticsearch-dbapi==0.2.4
cachetools~=5.0.0
-typing-extensions<4,>=3.10
\ No newline at end of file
+typing-extensions<4,>=3.10
diff --git a/requirements/local.txt b/requirements/local.txt
index 5edda1dacede5..c4bd3cd599b36 100644
--- a/requirements/local.txt
+++ b/requirements/local.txt
@@ -13,4 +13,3 @@
# The following packages are considered to be unsafe in a requirements file:
# setuptools
-
diff --git a/superset-frontend/README.md b/superset-frontend/README.md
index 99506680c39f4..704de1c662190 100644
--- a/superset-frontend/README.md
+++ b/superset-frontend/README.md
@@ -1,32 +1,42 @@
To pull our own superset-ui packages from our Artifacts Feed when building locally, the steps below should be followed.
# How to build locally
+
## Setup credentials
+
### Step 1
+
Copy the code below to your [user .npmrc](https://docs.microsoft.com/en-us/azure/devops/artifacts/npm/npmrc?view=azure-devops).
+
```
-; begin auth token
-//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/registry/:username=cccs-analytical-platform
-//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/registry/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
+; begin auth token
+//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/registry/:username=cccs-analytical-platform
+//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/registry/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/registry/:email=npm requires email to be set but doesn't use the value
-//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/:username=cccs-analytical-platform
-//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
+//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/:username=cccs-analytical-platform
+//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
//pkgs.dev.azure.com/cccs-analytical-platform/99130e50-b4e3-4d7d-873e-2a947f564b87/_packaging/analytical-platform/npm/:email=npm requires email to be set but doesn't use the value
; end auth token
```
### Step 2
+
Generate a [Personal Access Token](https://dev.azure.com/cccs-analytical-platform/_usersSettings/tokens) with Packaging read & write scopes.
### Step 3
+
Base64 encode the personal access token from Step 2.
One safe and secure method of Base64 encoding a string is to:
+
1. From a command/shell prompt run:
+
```
node -e "require('readline') .createInterface({input:process.stdin,output:process.stdout,historySize:0}) .question('PAT> ',p => { b64=Buffer.from(p.trim()).toString('base64');console.log(b64);process.exit(); })"
```
+
2. Paste your personal access token value and press Enter/Return
3. Copy the Base64 encoded value
### Step 4
+
Replace both [BASE64_ENCODED_PERSONAL_ACCESS_TOKEN] values in your user .npmrc file with your personal access token from Step 3.
diff --git a/superset-frontend/src/cccs-viz/README.md b/superset-frontend/src/cccs-viz/README.md
index a42ac96306d85..d1901d3a45b86 100644
--- a/superset-frontend/src/cccs-viz/README.md
+++ b/superset-frontend/src/cccs-viz/README.md
@@ -17,14 +17,12 @@ specific language governing permissions and limitations
under the License.
-->
-CCCS-VIZ for Superset
-=====================
+# CCCS-VIZ for Superset
-Creating a custom viz
-=====================
+# Creating a custom viz
Modified instructions from
https://superset.apache.org/docs/installation/building-custom-viz-plugins
@@ -36,8 +34,8 @@ cd plugin-chart-data-grid
yo @superset-ui/superset
```
-
Edit `superset/superset-frontend/src/visualizations/presets/MainPreset.js`
+
```diff
+ import { DataGridChartPlugin } from 'src/cccs-viz/plugins/';
@@ -53,6 +51,7 @@ Edit `superset/superset-frontend/src/visualizations/presets/MainPreset.js`
```
Run dev-server
+
```
cd superset/superset-frontend
@@ -66,13 +65,10 @@ Develop the custom viz. You can connect to port 9000 to test your modifications.
-
-
-Test your code changes inside the docker container
-==================
-
+# Test your code changes inside the docker container
Now ready to test docker build
+
```bash
cd superset
@@ -81,6 +77,7 @@ docker build -t 'apache/superset:latest-dev' .
```
You can test your docker image using docker-compose, the docker-compose.yaml uses the image we just built.
+
```bash
cd superset
@@ -90,20 +87,16 @@ docker-compose up
You can connect to superset on port 8088 to test the superset server running inside the docker container.
-
-
-
-
-Commiting your code
-==================
+# Commiting your code
When it works locally from your own docker container you can commit your changes
Add custom viz files and the config files that reference it
+
```bash
cd superset
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/ApplicationLinks.tsx b/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/ApplicationLinks.tsx
index 9c22627aeeb08..5ce8abcd4d888 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/ApplicationLinks.tsx
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/ApplicationLinks.tsx
@@ -108,7 +108,7 @@ export default function ApplicationLinks(props: ApplicationsProps) {
Alfred has seen {appVal.length > 1 ? 'these' : 'this'}{' '}
{infoType}
- {appVal.length > 1 ? "s" : ''} {alfredCount} time
+ {appVal.length > 1 ? 's' : ''} {alfredCount} time
{alfredCount > 1 ? 's' : ''}. Search the{' '}
Alfred
@@ -119,7 +119,7 @@ export default function ApplicationLinks(props: ApplicationsProps) {
Alfred has not seen {appVal.length > 1 ? 'these' : 'this'}{' '}
{infoType}
- {appVal.length > 1 ? "s" : ''}. Search the{' '}
+ {appVal.length > 1 ? 's' : ''}. Search the{' '}
Alfred
{' '}
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/plugin/controlPanel.ts b/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/plugin/controlPanel.ts
index f9d27f76efcf1..d95cba46d5daf 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/plugin/controlPanel.ts
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-application-links/src/plugin/controlPanel.ts
@@ -16,26 +16,26 @@
* specific language governing permissions and limitations
* under the License.
*/
- import { ensureIsArray, t, validateNonEmpty } from '@superset-ui/core';
- import {
- ControlPanelConfig,
- ControlPanelState,
- ControlState,
- ControlStateMapping,
- sharedControls,
- } from '@superset-ui/chart-controls';
-
- const validateAggControlValues = (
- controls: ControlStateMapping,
- values: any[],
- ) => {
- const areControlsEmpty = values.every(val => ensureIsArray(val).length === 0);
- // @ts-ignore
- return areControlsEmpty ? [t('Metrics must have a value')] : [];
- };
-
- const config: ControlPanelConfig = {
- /**
+import { ensureIsArray, t, validateNonEmpty } from '@superset-ui/core';
+import {
+ ControlPanelConfig,
+ ControlPanelState,
+ ControlState,
+ ControlStateMapping,
+ sharedControls,
+} from '@superset-ui/chart-controls';
+
+const validateAggControlValues = (
+ controls: ControlStateMapping,
+ values: any[],
+) => {
+ const areControlsEmpty = values.every(val => ensureIsArray(val).length === 0);
+ // @ts-ignore
+ return areControlsEmpty ? [t('Metrics must have a value')] : [];
+};
+
+const config: ControlPanelConfig = {
+ /**
* The control panel is split into two tabs: "Query" and
* "Chart Options". The controls that define the inputs to
* the chart data request, such as columns and metrics, usually
@@ -108,59 +108,59 @@
* - validateInteger: must be an integer value
* - validateNumber: must be an intger or decimal value
*/
-
- // For control input types, see: superset-frontend/src/explore/components/controls/index.js
- controlPanelSections: [
- {
- label: t('Query'),
- expanded: true,
- controlSetRows: [
- ['adhoc_filters'],
- [
- {
- name: 'metrics',
- override: {
- // visibility: () => true,
- validators: [],
- mapStateToProps: (
- state: ControlPanelState,
- controlState: ControlState,
- ) => {
- const { controls } = state;
- const originalMapStateToProps =
- sharedControls?.metrics?.mapStateToProps;
- const newState =
- originalMapStateToProps?.(state, controlState) ?? {};
- newState.externalValidationErrors = validateAggControlValues(
- controls,
- [controlState.value],
- );
- return newState;
- },
- },
- },
- ],
- [
- {
- name: 'row_limit',
- override: {
- default: 1,
- },
- },
- ],
- ],
- },
- ],
-
- controlOverrides: {
- series: {
- validators: [validateNonEmpty],
- clearable: false,
- },
- row_limit: {
- default: 1,
- },
- },
- };
-
- export default config;
+
+ // For control input types, see: superset-frontend/src/explore/components/controls/index.js
+ controlPanelSections: [
+ {
+ label: t('Query'),
+ expanded: true,
+ controlSetRows: [
+ ['adhoc_filters'],
+ [
+ {
+ name: 'metrics',
+ override: {
+ // visibility: () => true,
+ validators: [],
+ mapStateToProps: (
+ state: ControlPanelState,
+ controlState: ControlState,
+ ) => {
+ const { controls } = state;
+ const originalMapStateToProps =
+ sharedControls?.metrics?.mapStateToProps;
+ const newState =
+ originalMapStateToProps?.(state, controlState) ?? {};
+ newState.externalValidationErrors = validateAggControlValues(
+ controls,
+ [controlState.value],
+ );
+ return newState;
+ },
+ },
+ },
+ ],
+ [
+ {
+ name: 'row_limit',
+ override: {
+ default: 1,
+ },
+ },
+ ],
+ ],
+ },
+ ],
+
+ controlOverrides: {
+ series: {
+ validators: [validateNonEmpty],
+ clearable: false,
+ },
+ row_limit: {
+ default: 1,
+ },
+ },
+};
+
+export default config;
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/README.md b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/README.md
index 07f3dad33f1f6..ff1c4526c8131 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/README.md
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/README.md
@@ -8,9 +8,7 @@ Configure `key`, which can be any `string`, and register the plugin. This `key`
```js
import AtAGlanceChartPlugin from '@superset-ui/plugin-chart-at-a-glance-dns';
-new AtAGlanceChartPlugin()
- .configure({ key: 'at_a_glance_dns' })
- .register();
+new AtAGlanceChartPlugin().configure({ key: 'at_a_glance_dns' }).register();
```
Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/superset-ui/?selectedKind=plugin-chart-at-a-glance) for more details.
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/test/plugin/transformProps.test.ts b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/test/plugin/transformProps.test.ts
index ef3768fbd85f8..6062437712c73 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/test/plugin/transformProps.test.ts
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-dns/test/plugin/transformProps.test.ts
@@ -21,7 +21,7 @@ describe('AtAGlance tranformProps', () => {
data: [{ name: 'Hulk', sum__num: 1 }],
},
],
- theme: supersetTheme
+ theme: supersetTheme,
});
it('should tranform chart props for viz', () => {
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-ip/README.md b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-ip/README.md
index e2390c0eb2490..e3e74ae5f8028 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-ip/README.md
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-ip/README.md
@@ -1,7 +1,5 @@
## @superset-ui/plugin-chart-at-a-glance-ip
-
-
This plugin provides At A Glance for Superset.
### Usage
@@ -10,9 +8,7 @@ Configure `key`, which can be any `string`, and register the plugin. This `key`
```js
import AtAGlanceChartPlugin from '@superset-ui/plugin-chart-at-a-glance-ip';
-new AtAGlanceChartPlugin()
- .configure({ key: 'at_a_glance_ip' })
- .register();
+new AtAGlanceChartPlugin().configure({ key: 'at_a_glance_ip' }).register();
```
Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/superset-ui/?selectedKind=plugin-chart-at-a-glance) for more details.
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id-sas/src/plugin/controlPanel.ts b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id-sas/src/plugin/controlPanel.ts
index be4baf2c932c1..28254fd0b4c8a 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id-sas/src/plugin/controlPanel.ts
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id-sas/src/plugin/controlPanel.ts
@@ -85,13 +85,13 @@ const validateAggControlValues = (
const columnChoices = (datasource: any) => {
if (datasource?.columns) {
return datasource.columns
- .map((col : any) => [col.column_name, col.verbose_name || col.column_name])
+ .map((col: any) => [col.column_name, col.verbose_name || col.column_name])
.sort((opt1: any, opt2: any) =>
opt1[1].toLowerCase() > opt2[1].toLowerCase() ? 1 : -1,
);
}
return [];
-}
+};
const config: ControlPanelConfig = {
// For control input types, see: superset-frontend/src/explore/components/controls/index.js
controlPanelSections: [
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/README.md b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/README.md
index 0d64a8d94d3d4..0dae3c8bfed68 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/README.md
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/README.md
@@ -1,7 +1,5 @@
## @superset-ui/plugin-chart-at-a-glance-user-id
-
-
This plugin provides At A Glance User ID for Superset.
### Usage
@@ -10,9 +8,7 @@ Configure `key`, which can be any `string`, and register the plugin. This `key`
```js
import AtAGlanceChartPlugin from '@superset-ui/plugin-chart-at-a-glance-user-id';
-new AtAGlanceChartPlugin()
- .configure({ key: 'at_a_glance_user_id' })
- .register();
+new AtAGlanceChartPlugin().configure({ key: 'at_a_glance_user_id' }).register();
```
Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/superset-ui/?selectedKind=plugin-chart-at-a-glance-user-id) for more details.
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/src/plugin/controlPanel.ts b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/src/plugin/controlPanel.ts
index bc590c126f820..6d9635df568cb 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/src/plugin/controlPanel.ts
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-at-a-glance-user-id/src/plugin/controlPanel.ts
@@ -62,13 +62,13 @@ const isRawMode = isQueryMode(QueryMode.raw);
const columnChoices = (datasource: any) => {
if (datasource?.columns) {
return datasource.columns
- .map((col : any) => [col.column_name, col.verbose_name || col.column_name])
+ .map((col: any) => [col.column_name, col.verbose_name || col.column_name])
.sort((opt1: any, opt2: any) =>
opt1[1].toLowerCase() > opt2[1].toLowerCase() ? 1 : -1,
);
}
return [];
-}
+};
const queryMode: ControlConfig<'RadioButtonControl'> = {
type: 'RadioButtonControl',
label: t('Query mode'),
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/README.md b/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/README.md
index 1bf7569245232..1c82e203ecdfe 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/README.md
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/README.md
@@ -11,9 +11,7 @@ Configure `key`, which can be any `string`, and register the plugin. This `key`
```js
import CccsGridChartPlugin from '@superset-ui/plugin-chart-cccs-grid';
-new CccsGridChartPlugin()
- .configure({ key: 'cccs-grid' })
- .register();
+new CccsGridChartPlugin().configure({ key: 'cccs-grid' }).register();
```
Then use it via `SuperChart`. See [storybook](https://apache-superset.github.io/superset-ui/?selectedKind=plugin-chart-cccs-grid) for more details.
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/bignumber.mjs b/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/bignumber.mjs
index 128f5f27ebd83..81618cfff8917 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/bignumber.mjs
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/bignumber.mjs
@@ -45,7 +45,6 @@
// *
// */
-
// var
// isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,
@@ -67,7 +66,6 @@
// // the arguments to toExponential, toFixed, toFormat, and toPrecision.
// MAX = 1E9; // 0 to MAX_INT32
-
// /*
// * Create and return a BigNumber constructor.
// */
@@ -76,10 +74,8 @@
// P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null },
// ONE = new BigNumber(1),
-
// //----------------------------- EDITABLE CONFIG DEFAULTS -------------------------------
-
// // The default values below must be integers within the inclusive ranges stated.
// // The values can also be changed at run-time using BigNumber.set.
@@ -162,13 +158,10 @@
// // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'
// ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz';
-
// //------------------------------------------------------------------------------------------
-
// // CONSTRUCTOR
-
// /*
// * The BigNumber constructor and exported function.
// * Create and return a new instance of a BigNumber object.
@@ -372,10 +365,8 @@
// }
// }
-
// // CONSTRUCTOR PROPERTIES
-
// BigNumber.clone = clone;
// BigNumber.ROUND_UP = 0;
@@ -389,7 +380,6 @@
// BigNumber.ROUND_HALF_FLOOR = 8;
// BigNumber.EUCLID = 9;
-
// /*
// * Configure infrequently-changing library-wide settings.
// *
@@ -570,7 +560,6 @@
// };
// };
-
// /*
// * Return true if v is a BigNumber instance, otherwise return false.
// *
@@ -626,7 +615,6 @@
// (bignumberError + 'Invalid BigNumber: ' + v);
// };
-
// /*
// * Return a new BigNumber whose value is the maximum of the arguments.
// *
@@ -636,7 +624,6 @@
// return maxOrMin(arguments, P.lt);
// };
-
// /*
// * Return a new BigNumber whose value is the minimum of the arguments.
// *
@@ -646,7 +633,6 @@
// return maxOrMin(arguments, P.gt);
// };
-
// /*
// * Return a new BigNumber with a random value equal to or greater than 0 and less than 1,
// * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing
@@ -790,7 +776,6 @@
// };
// })();
-
// /*
// * Return a BigNumber whose value is the sum of the arguments.
// *
@@ -804,10 +789,8 @@
// return sum;
// };
-
// // PRIVATE FUNCTIONS
-
// // Called by BigNumber and BigNumber.prototype.toString.
// convertBase = (function () {
// var decimal = '0123456789';
@@ -958,7 +941,6 @@
// };
// })();
-
// // Perform division in the specified base. Called by div and convertBase.
// div = (function () {
@@ -1218,7 +1200,6 @@
// };
// })();
-
// /*
// * Return a string representing the value of BigNumber n in fixed-point or exponential
// * notation rounded to the specified decimal places or significant digits.
@@ -1285,7 +1266,6 @@
// return n.s < 0 && c0 ? '-' + str : str;
// }
-
// // Handle BigNumber.max and BigNumber.min.
// function maxOrMin(args, method) {
// var n,
@@ -1307,7 +1287,6 @@
// return m;
// }
-
// /*
// * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP.
// * Called by minus, plus and times.
@@ -1341,7 +1320,6 @@
// return n;
// }
-
// // Handle values that fail the validity test in BigNumber.
// parseNumeric = (function () {
// var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i,
@@ -1391,7 +1369,6 @@
// }
// })();
-
// /*
// * Round x to sd significant digits using rounding mode rm. Check for over/under-flow.
// * If r is truthy, it is known that there are more digits after the rounding digit.
@@ -1553,7 +1530,6 @@
// return x;
// }
-
// function valueOf(n) {
// var str,
// e = n.e;
@@ -1569,10 +1545,8 @@
// return n.s < 0 ? '-' + str : str;
// }
-
// // PROTOTYPE/INSTANCE METHODS
-
// /*
// * Return a new BigNumber whose value is the absolute value of this BigNumber.
// */
@@ -1582,7 +1556,6 @@
// return x;
// };
-
// /*
// * Return
// * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b),
@@ -1594,7 +1567,6 @@
// return compare(this, new BigNumber(y, b));
// };
-
// /*
// * If dp is undefined or null or true or false, return the number of decimal places of the
// * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.
@@ -1630,7 +1602,6 @@
// return n;
// };
-
// /*
// * n / 0 = I
// * n / N = N
@@ -1655,7 +1626,6 @@
// return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE);
// };
-
// /*
// * Return a new BigNumber whose value is the integer part of dividing the value of this
// * BigNumber by the value of BigNumber(y, b).
@@ -1664,7 +1634,6 @@
// return div(this, new BigNumber(y, b), 0, 1);
// };
-
// /*
// * Return a BigNumber whose value is the value of this BigNumber exponentiated by n.
// *
@@ -1799,7 +1768,6 @@
// return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;
// };
-
// /*
// * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer
// * using rounding mode rm, or ROUNDING_MODE if rm is omitted.
@@ -1815,7 +1783,6 @@
// return round(n, n.e + 1, rm);
// };
-
// /*
// * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b),
// * otherwise return false.
@@ -1824,7 +1791,6 @@
// return compare(this, new BigNumber(y, b)) === 0;
// };
-
// /*
// * Return true if the value of this BigNumber is a finite number, otherwise return false.
// */
@@ -1832,7 +1798,6 @@
// return !!this.c;
// };
-
// /*
// * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b),
// * otherwise return false.
@@ -1841,7 +1806,6 @@
// return compare(this, new BigNumber(y, b)) > 0;
// };
-
// /*
// * Return true if the value of this BigNumber is greater than or equal to the value of
// * BigNumber(y, b), otherwise return false.
@@ -1851,7 +1815,6 @@
// };
-
// /*
// * Return true if the value of this BigNumber is an integer, otherwise return false.
// */
@@ -1859,7 +1822,6 @@
// return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;
// };
-
// /*
// * Return true if the value of this BigNumber is less than the value of BigNumber(y, b),
// * otherwise return false.
@@ -1868,7 +1830,6 @@
// return compare(this, new BigNumber(y, b)) < 0;
// };
-
// /*
// * Return true if the value of this BigNumber is less than or equal to the value of
// * BigNumber(y, b), otherwise return false.
@@ -1877,7 +1838,6 @@
// return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0;
// };
-
// /*
// * Return true if the value of this BigNumber is NaN, otherwise return false.
// */
@@ -1885,7 +1845,6 @@
// return !this.s;
// };
-
// /*
// * Return true if the value of this BigNumber is negative, otherwise return false.
// */
@@ -1893,7 +1852,6 @@
// return this.s < 0;
// };
-
// /*
// * Return true if the value of this BigNumber is positive, otherwise return false.
// */
@@ -1901,7 +1859,6 @@
// return this.s > 0;
// };
-
// /*
// * Return true if the value of this BigNumber is 0 or -0, otherwise return false.
// */
@@ -1909,7 +1866,6 @@
// return !!this.c && this.c[0] == 0;
// };
-
// /*
// * n - 0 = n
// * n - N = N
@@ -2042,7 +1998,6 @@
// return normalise(y, xc, ye);
// };
-
// /*
// * n % 0 = N
// * n % N = N
@@ -2100,7 +2055,6 @@
// return y;
// };
-
// /*
// * n * 0 = 0
// * n * N = N
@@ -2191,7 +2145,6 @@
// return normalise(y, zc, e);
// };
-
// /*
// * Return a new BigNumber whose value is the value of this BigNumber negated,
// * i.e. multiplied by -1.
@@ -2202,7 +2155,6 @@
// return x;
// };
-
// /*
// * n + 0 = n
// * n + N = N
@@ -2296,7 +2248,6 @@
// return normalise(y, xc, ye);
// };
-
// /*
// * If sd is undefined or null or true or false, return the number of significant digits of
// * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.
@@ -2342,7 +2293,6 @@
// return n;
// };
-
// /*
// * Return a new BigNumber whose value is the value of this BigNumber shifted by k places
// * (powers of 10). Shift to the right if n > 0, and to the left if n < 0.
@@ -2356,7 +2306,6 @@
// return this.times('1e' + k);
// };
-
// /*
// * sqrt(-n) = N
// * sqrt(N) = N
@@ -2466,7 +2415,6 @@
// return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);
// };
-
// /*
// * Return a string representing the value of this BigNumber in exponential notation and
// * rounded using ROUNDING_MODE to dp fixed decimal places.
@@ -2484,7 +2432,6 @@
// return format(this, dp, rm, 1);
// };
-
// /*
// * Return a string representing the value of this BigNumber in fixed-point notation rounding
// * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted.
@@ -2505,7 +2452,6 @@
// return format(this, dp, rm);
// };
-
// /*
// * Return a string representing the value of this BigNumber in fixed-point notation rounded
// * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties
@@ -2585,7 +2531,6 @@
// return (format.prefix || '') + str + (format.suffix || '');
// };
-
// /*
// * Return an array of two BigNumbers representing the value of this BigNumber as a simple
// * fraction with an integer numerator and an integer denominator.
@@ -2660,7 +2605,6 @@
// return r;
// };
-
// /*
// * Return the value of this BigNumber converted to a number primitive.
// */
@@ -2668,7 +2612,6 @@
// return +valueOf(this);
// };
-
// /*
// * Return a string representing the value of this BigNumber rounded to sd significant digits
// * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits
@@ -2685,7 +2628,6 @@
// return format(this, sd, rm, 2);
// };
-
// /*
// * Return a string representing the value of this BigNumber in base b, or base 10 if b is
// * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and
@@ -2730,7 +2672,6 @@
// return str;
// };
-
// /*
// * Return as toString, but do not accept a base argument, and include the minus sign for
// * negative zero.
@@ -2739,7 +2680,6 @@
// return valueOf(this);
// };
-
// P._isBigNumber = true;
// P[Symbol.toStringTag] = 'BigNumber';
@@ -2752,19 +2692,16 @@
// return BigNumber;
// }
-
// // PRIVATE HELPER FUNCTIONS
// // These functions don't need access to variables,
// // e.g. DECIMAL_PLACES, in the scope of the `clone` function above.
-
// function bitFloor(n) {
// var i = n | 0;
// return n > 0 || n === i ? i : i - 1;
// }
-
// // Return a coefficient array as a string of base 10 digits.
// function coeffToString(a) {
// var s, z,
@@ -2785,7 +2722,6 @@
// return r.slice(0, j + 1 || 1);
// }
-
// // Compare the value of BigNumbers x and y.
// function compare(x, y) {
// var a, b,
@@ -2826,7 +2762,6 @@
// return k == l ? 0 : k > l ^ a ? 1 : -1;
// }
-
// /*
// * Check that n is a primitive number, an integer, and in range, otherwise throw.
// */
@@ -2839,20 +2774,17 @@
// }
// }
-
// // Assumes finite n.
// function isOdd(n) {
// var k = n.c.length - 1;
// return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;
// }
-
// function toExponential(str, e) {
// return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) +
// (e < 0 ? 'e' : 'e+') + e;
// }
-
// function toFixedPoint(str, e, z) {
// var len, zs;
@@ -2879,10 +2811,8 @@
// return str;
// }
-
// // EXPORT
-
// export var BigNumber = clone();
// export default BigNumber;
diff --git a/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/plugin/buildQuery.ts b/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/plugin/buildQuery.ts
index 2374de369f5a7..b1a0fd98c2f2b 100644
--- a/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/plugin/buildQuery.ts
+++ b/superset-frontend/src/cccs-viz/plugins/plugin-chart-cccs-grid/src/plugin/buildQuery.ts
@@ -62,7 +62,8 @@ const buildQuery: BuildQuery