This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Dec 07, 2023
-
-
Jerry Huang authored
-
Braden Shepherdson authored
This was missed from #36443. Fixes #33558.
-
metamben authored
Fixes #36459. Also makes sure that legacy to pMBQL works and that simple value expressions can be named.
-
Anton Kulyk authored
* Use `minWidth` instead of `width` * Reserve left padding for the settings icon
-
Gustavo Saiani authored
-
Alexander Solovyov authored
-
- Dec 06, 2023
-
-
Noah Moss authored
-
Cam Saul authored
-
Braden Shepherdson authored
Automatic insights drills have some unusual conditions. This adds `metabase.lib.metadata/editable?` and checks it before returning any drills. On settings: In the app, `MetabaseSettings` is a global singleton and the settings are sometimes updated in place. In the JS testing environment several mock settings instances can exist at once, and the global singleton does not necessarily have the values we want for any given test. This PR makes `metabase.lib.metadata/setting` check for `describe` and `it` to see if we're in the testing environment, and to trust the metadata's `settings` in that case.
-
Cam Saul authored
-
Cam Saul authored
-
Cam Saul authored
-
Noah Moss authored
-
Cal Herries authored
-
Alexander Solovyov authored
so that user knows that workflow has started https://octokit.github.io/rest.js/v20#reactions-create-for-issue-comment
-
Alexander Solovyov authored
Resolves #35677
-
Alexander Polyankin authored
-
Kamil Mielnik authored
* Add expression-clause-for-legacy-expression Fixes #34830. * Add legacy-expression-for-expression-clause * Fix wrapper function name * Include ExpressionClause in Aggregatable type * Use Aggregatable type in aggregate function * Rename query to legacyQuery in Expressions (part 1) * Rename query to legacyQuery in Expressions (part 2) * Rename query to legacyQuery in Expressions (part 3) * Support MLv2 expressionClause in processSource and ExpressionWidget * Revert changes to ExpressionStep as it's out of scope of this task * Use new expressionClause in ExpressionWidget * Use onSelect instead of onSelectLegacy in handleExpressionChange * Remove onSelectLegacy from AggregationPicker * Use nullish coalescing operator * Assert new onChangeExpression argument in test * Assert new onChangeExpression argument in test * Update AggregationPicker tests * Replace toEqual + expect.objectContaining with toMatchObject * Add stageIndex to setup, use destructuring for onSelect arguments * Deal with awkward assertions * Use props in a conservative way * Replace legacyQuery.database() with query + metadata * Add a TODO comment * Add clause prop to AggregationPicker * Migrate clause name * Replace 3rd argument in onChangeExpression with onChangeExpressionClause * Use destructuring * Allow AggregationClause, drop expression from ExpressionEditorTextfield * Make withExpressionName work with AggregationClause * Rename expressionClause to clause * Update tests with new interface * Use overloading instead of generics * Add function body * Rename operator to clause * Revert "Use overloading instead of generics" This reverts commit 3953f85b8f63764cbb09825fa45f52d82efd7b71. * Fix tests failing due to useSelect usage in AggregationPicker * Omit aggregation options converting expressions to legacy Fixes #36120. * Remove temporary hack * Get rid of props spread * Migrate isExpressionEditorInitiallyOpen to MLv2 * Omit aggregation options converting expressions to legacy Fixes #36120. * Normalize legacy expressions as MBQL expressions * Fix isExpressionEditorInitiallyOpen * Update expressionName signature * Pass props in ExpressionStep tests in a usual way * Drop a conditional statement * Bring back expression prop for backwards-compatibility * Update ExpressionWidget validation & tests * Bring back using expression in componentWillReceiveProps * Bring back removed assertion * Remove legacyQuery prop from AggregationPicker * Add a test case for isExpressionEditorInitiallyOpen (which uses Lib.expressionName) * Fix legacyQuery creation * Add assertion for expression name * Fix committing expression with done button * Improve assertions in tests * Make with-expression-name set the display-name of the clause Fixes #36167. This is needed to be able to set/change the display name of custom aggregation columns too. * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Unskip an e2e test * Add expression name assertion * Add expression name assertion * Use displayInfo instead of displayName - see https://github.com/metabase/metabase/pull/36203#discussion_r1410496658 * Deprecate displayName in favor of displayInfo - see https://metaboat.slack.com/archives/C0645JP1W81/p1701341786914219?thread_ts=1701335646.088359&cid=C0645JP1W81 * Use clearer notation * Format code * Use displayInfo instead of expressionName in tests * Add isNamed attribute to ColumnDisplayInfo and ClauseDisplayInfo * Use displayInfo instead of expressionName in AggregationPicker * Drop expressionName * Drop redundant cast * Simplify isExpressionEditorInitiallyOpen interface * Use display-info with :named? instead of expression-name * Improve comment * Add :named? to the schema of display-info * Use conditional types for ExpressionWidget prop * Use getNotebookStep * Simplify condition * Simplify assertions * Use .lastCall * Remove isNamed attribute from ColumnDisplayInfo * Use .lastCall * Fix typing * Bring back legacyQuery prop to AggregationPicker * Fix isExpressionEditorInitiallyOpen for new clauses * Fix unit tests * Remove wrong assertion * Fix assertion * Trigger a change * Revert "Trigger a change" This reverts commit 254913dd85d7aa1059ca712e19e4e9f1e901dc8e. * Fix assertion * Allow FilterClause * Drop legacyFilter usage from FilterPicker, FilterStep & QuestionFilters * Update FilterPicker unit tests * Remove unused function * Fix types in unit test * Remove redundant waitFor * Update ColumnDisplayInfo type * Revert changes to ColumnDisplayInfo, avoid using semanticType & effectiveType attributes * Introduce NamedClause and CustomExpressionClause types * Simplify assertions * Remove casting from FilterPicker * Rename NamedClause to CustomNameClause * Exclude AggregationClause from FilterPicker's interfaces * Avoid casting using generics
-
Denis Berezin authored
* Move embedding settings prep before rendering * Revert not needed change * Add dynamic embedding settings for preview mode, add e2e tests for embedding settings * Refactor test, remove not needed code * Updates for e2e test based on code review
-
Levente Kurusa authored
-
Mahatthana (Kelvin) Nomsawadi authored
* Fix click behavior link to dashboards/questions not using client router * Make the code cleaner * Fix unit tests * Make API clearer * Address review: Handle case insensitive subpath * Add E2E tests * Fix failed E2E tests * Fix another fail E2E test * Add a test to ensure invalid URL won't break navigation * Add tests + ensure multiple level subpath works
-
- Dec 05, 2023
-
-
Cam Saul authored
-
Cam Saul authored
-
Alexander Polyankin authored
-
Mark Bastian authored
* Updating default `number-formatter` for percents The number formatter used in some static viz rendering (e.g. tables) in `metabase.pulse.render.common/number-formatter` had logic to render only integer-valued percents for values between 1 and 100 and render two significant digits otherwise. The FE default formatter uses 2 significant digits consistently in `frontend/src/metabase/lib/formatting/numbers.tsx`: ```js const PRECISION_NUMBER_FORMATTER = d3.format(".2f"); ``` This change modifies `number-formatter` to consistenly use 2 significant digits for percentage types. Note that this does NOT apply to fields with custom formatting. Presently, custom column formatting does not appear to be applied for HTML tables at all for BE rendering while it is applied on the FE. This is a separate issue. This PR just brings the baseline behaviors based on typing into alignment. * Fixing formatting test
-
Jeff Bruemmer authored
-
Nick Fitzpatrick authored
* Adding markdown support to search result descriptions * adding e2e test
-
Jerry Huang authored
-
Braden Shepherdson authored
That fixes "chart legend" clicks and "pivot cell" clicks, which should show underlying records and automatic insights drills. Fixes #35343 and #35394.
-
Nick Fitzpatrick authored
* Adding pagination to All Personal Collections page * adding unit test * test adjustments
-
Oleg Gromov authored
* Rename DashboardHeaderView to match filename * Fix non updating cards on filter mapping to a field * Clean up DashboardApp tests a bit * Clean up Dashboard.jsx cruft * Add Dashboard componentDidUpdate "unit tests" * Simplify setup code as per feedback * Add test for changing dashboard prop in componentDidMount * Change constant names * Fix optional chaining in Dashboard
-
Ryan Laurie authored
-
Luis Paolini authored
* Add version to Dockerfile When you want to build with a specific version, you need to pass it on the build args * Update Dockerfile
-
Kamil Mielnik authored
* Add expression-clause-for-legacy-expression Fixes #34830. * Add legacy-expression-for-expression-clause * Fix wrapper function name * Include ExpressionClause in Aggregatable type * Use Aggregatable type in aggregate function * Rename query to legacyQuery in Expressions (part 1) * Rename query to legacyQuery in Expressions (part 2) * Rename query to legacyQuery in Expressions (part 3) * Support MLv2 expressionClause in processSource and ExpressionWidget * Revert changes to ExpressionStep as it's out of scope of this task * Use new expressionClause in ExpressionWidget * Use onSelect instead of onSelectLegacy in handleExpressionChange * Remove onSelectLegacy from AggregationPicker * Use nullish coalescing operator * Assert new onChangeExpression argument in test * Assert new onChangeExpression argument in test * Update AggregationPicker tests * Replace toEqual + expect.objectContaining with toMatchObject * Add stageIndex to setup, use destructuring for onSelect arguments * Deal with awkward assertions * Use props in a conservative way * Replace legacyQuery.database() with query + metadata * Add a TODO comment * Add clause prop to AggregationPicker * Migrate clause name * Replace 3rd argument in onChangeExpression with onChangeExpressionClause * Use destructuring * Allow AggregationClause, drop expression from ExpressionEditorTextfield * Make withExpressionName work with AggregationClause * Rename expressionClause to clause * Update tests with new interface * Use overloading instead of generics * Add function body * Rename operator to clause * Revert "Use overloading instead of generics" This reverts commit 3953f85b8f63764cbb09825fa45f52d82efd7b71. * Fix tests failing due to useSelect usage in AggregationPicker * Omit aggregation options converting expressions to legacy Fixes #36120. * Remove temporary hack * Get rid of props spread * Migrate isExpressionEditorInitiallyOpen to MLv2 * Omit aggregation options converting expressions to legacy Fixes #36120. * Normalize legacy expressions as MBQL expressions * Fix isExpressionEditorInitiallyOpen * Update expressionName signature * Pass props in ExpressionStep tests in a usual way * Drop a conditional statement * Bring back expression prop for backwards-compatibility * Update ExpressionWidget validation & tests * Bring back using expression in componentWillReceiveProps * Bring back removed assertion * Remove legacyQuery prop from AggregationPicker * Add a test case for isExpressionEditorInitiallyOpen (which uses Lib.expressionName) * Fix legacyQuery creation * Add assertion for expression name * Fix committing expression with done button * Improve assertions in tests * Make with-expression-name set the display-name of the clause Fixes #36167. This is needed to be able to set/change the display name of custom aggregation columns too. * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Add expression name assertion * Unskip an e2e test * Add expression name assertion * Add expression name assertion * Use displayInfo instead of displayName - see https://github.com/metabase/metabase/pull/36203#discussion_r1410496658 * Deprecate displayName in favor of displayInfo - see https://metaboat.slack.com/archives/C0645JP1W81/p1701341786914219?thread_ts=1701335646.088359&cid=C0645JP1W81 * Use clearer notation * Format code * Use displayInfo instead of expressionName in tests * Add isNamed attribute to ColumnDisplayInfo and ClauseDisplayInfo * Use displayInfo instead of expressionName in AggregationPicker * Drop expressionName * Drop redundant cast * Simplify isExpressionEditorInitiallyOpen interface * Use display-info with :named? instead of expression-name * Improve comment * Add :named? to the schema of display-info * Use conditional types for ExpressionWidget prop * Use getNotebookStep * Simplify condition * Simplify assertions * Use .lastCall * Remove isNamed attribute from ColumnDisplayInfo * Use .lastCall * Fix typing * Bring back legacyQuery prop to AggregationPicker * Fix isExpressionEditorInitiallyOpen for new clauses * Fix unit tests * Remove wrong assertion * Fix assertion * Trigger a change * Revert "Trigger a change" This reverts commit 254913dd85d7aa1059ca712e19e4e9f1e901dc8e. * Fix assertion --------- Co-authored-by:
Tamás Benkő <tamas@metabase.com>
-
Cam Saul authored
-
metamben authored
Co-authored-by:
Kamil Mielnik <kamil@kamilmielnik.com>
-
metamben authored
-
Alexander Solovyov authored
resolves #36365
-
Alexander Polyankin authored
-
Ryan Laurie authored
-