-
- Downloads
Unary number parameter (#43921)
* Allow picking arity of number parameters * Limit to input to have arity 1 when multi is false * Use MultiAutocomplete in NumberInputWidget when arity is 1 * Add test cases for single value numbers * Only change arity when it is n * Fix unit tests for NumberInputWidget * Move arity check for numbers to getNumberParameterArity
Showing
- e2e/test/scenarios/dashboard-filters/dashboard-filters-number.cy.spec.js 12 additions, 6 deletions...ios/dashboard-filters/dashboard-filters-number.cy.spec.js
- e2e/test/scenarios/dashboard-filters/shared/dashboard-filters-number.js 24 additions, 7 deletions...rios/dashboard-filters/shared/dashboard-filters-number.js
- frontend/src/metabase-lib/v1/parameters/constants.ts 1 addition, 0 deletionsfrontend/src/metabase-lib/v1/parameters/constants.ts
- frontend/src/metabase-lib/v1/parameters/utils/operators.ts 4 additions, 0 deletionsfrontend/src/metabase-lib/v1/parameters/utils/operators.ts
- frontend/src/metabase/parameters/components/ParameterValueWidget.jsx 1 addition, 0 deletions...c/metabase/parameters/components/ParameterValueWidget.jsx
- frontend/src/metabase/parameters/components/widgets/NumberInputWidget/NumberInputWidget.tsx 3 additions, 3 deletions...omponents/widgets/NumberInputWidget/NumberInputWidget.tsx
- frontend/src/metabase/parameters/components/widgets/NumberInputWidget/NumberInputWidget.unit.spec.tsx 1 addition, 1 deletion...widgets/NumberInputWidget/NumberInputWidget.unit.spec.tsx
- frontend/src/metabase/parameters/utils/parameter-type.unit.spec.ts 1 addition, 1 deletion...src/metabase/parameters/utils/parameter-type.unit.spec.ts
Please register or sign in to comment