This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Aug 15, 2024
-
-
Uladzimir Havenchyk authored
* disable cypress-terminal-report locally * one more check * cleanup
-
- Aug 14, 2024
-
-
metamben authored
* Remove support for questions with metric source * Fix e2e test
-
Nemanja Glumac authored
-
Kamil Mielnik authored
-
Kamil Mielnik authored
* Fix flake * Inline the function
-
Oisin Coveney authored
-
Romeo Van Snick authored
* Add defaultTemporalBucket helper * Add helper to pick default breakout * Move breakout to the front or add one if it does not exist * Add updateQuery to AggregationPicker props * Add tests for creation and reordering of temporal breakouts * Reuse defaultTemporalBucket in withDefaultTemporalBucket * Reorder query operations to make sure the correct names get generated * Remove dependency on referential equality of breakout * Rename updateQuery to onQueryChange * Remove onAddAggregations and onUpdateAggregation for onQueryChange * Extract query update in to separate function * Remove on{Add,Update,Remove}Aggregation in favor of onQueryChange * Remove aggregations from summarize details * Fix e2e tests * Remove conflicting test * Fix recent clause in unit tests * Fix superflouous check for columnAndBucket * Future proof breakout check * Remove reliance on details in the useSummarize hook * Remove details in unit tests * Removal of default summarization should not trigger a query change
-
- Aug 13, 2024
-
-
Nemanja Glumac authored
-
metamben authored
-
Nemanja Glumac authored
* Try to fix dashboard-filters-number flake * Try to fix dashboard-filters-number flake * Intercept all dashboard data requests for number filters
-
Nemanja Glumac authored
Repro #46756: Add/remove a single column in a model with tables joined by themselves adds/removes all columns (#46757)
-
- Aug 12, 2024
-
-
Uladzimir Havenchyk authored
-
Denis Berezin authored
-
Nick Fitzpatrick authored
* Revert "Remove unused humanizeCoercionStrategy and its test suite (#36136)" This reverts commit 5375347e. * humanize coercion strategies, add e2e test * unit test adjustment * pr feedback
-
- Aug 10, 2024
-
-
Aleksandr Lesnenko authored
* conditional dismissal step * check for download status in the container * try fixing flakes again * try again * chartPathWithFillColor already verifies chart has been rendered
-
- Aug 09, 2024
-
-
Oisin Coveney authored
-
Romeo Van Snick authored
Move the compare to the past aggregation to the bottom of the dropdown and hide it when no temporal breakouts are available (#46500) * Move the compare to the past aggregation to the bottom of the dropdown * Fix missing icon property * Hide 'Compare to the past' when there are no temporal columns * Update copy in tests * Add test for questions with no temporal columns * Fix unit test for AggregationPicker * Allow adding a compare aggregation when the first breakout is not temporal too * Rename to 'Compare to the past' in custom column action * Rename to 'Compare to the past' in column drill * Update copy in tests for actions and drills * Move canAddTemporalAggregation to CompareAggregation utils * Use aggregations from the query always * Remove unnecessary displayName check
-
- Aug 08, 2024
-
-
Aleksandr Lesnenko authored
* fix downloads e2e flakes * fix flake
-
Nemanja Glumac authored
* Add tooltip to the data step cell * Conditionally display tooltip * Add unit tests for the data step * Add unit tests for the join step * Move the abstraction to the NotebookDataPicker * Cover the tooltip behavior with E2E test * Update test
-
Nick Fitzpatrick authored
* useLogRecentItem * updating tests * unit tests * e2e test * PR Feedback * log questions / models * Accept :dataset instead of :model * Adding e2e test for recent activity datasets, reverting 'await' changes * Add e2e for collection moving error --------- Co-authored-by:
dan sutton <dan@dpsutton.com>
-
Aleksandr Lesnenko authored
* make series style settings tab first * spec
-
- Aug 07, 2024
-
-
Aleksandr Lesnenko authored
* fix pie e2e flake * try fixing pie e2e flake * try fixing pie e2e flakes * last resort * drop realHover
-
Alexander Polyankin authored
-
Nemanja Glumac authored
* Add E2E support for notebook joins * Add negative test cases
-
Raphael Krut-Landau authored
-
Dennis Schridde authored
== Goal == Prevent admins of Metabase Cloud instances with Metabase Cloud Storage from accidentally breaking their upload configuration, since in this scenario that is automatically managed by Metabase Cloud to use the attached data warehouse. == How to test == On a subscription with Metabase Cloud Storage: * The "Uploads" section in the left sidebar of `/admin/settings` does not show * A "not found" page is shown at `/admin/settings/uploads` where one would otherwise expect the "Uploads Settings" page * `PUT /api/setting` with an `uploads-settings` field in the body fails with `403 Forbidden` and the setting is not changed * `PUT /api/setting/uploads-settings` fails with `403 Forbidden` and the setting is not changed * `GET /api/setting` contains an element with `key: "uploads-settings"` and a value * `GET /api/setting/uploads-settings` responds with the value * `GET /api/session/properties` contains the `uploads-settings` field Closes: https://github.com/metabase/harbormaster/issues/5121 Co-authored-by:
Ryan Laurie <iethree@gmail.com>
-
Emmad Usmani authored
* truncate total text in pie chart * add story * Update Loki Snapshots * add e2e test --------- Co-authored-by:
Metabase Automation <github-automation@metabase.com>
-
Uladzimir Havenchyk authored
* e2e: add cypress-terminal-report * enable video recording * revert error * add a comment * Update e2e/support/cypress.js Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com> --------- Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com>
-
Uladzimir Havenchyk authored
-
Raphael Krut-Landau authored
* fix(webapp/browse): Fix e2e test of recently viewed models * Remove try/catch block from e2e config file
-
- Aug 06, 2024
-
-
Raphael Krut-Landau authored
fix(webapp/browse): Fix bug where verified filter is applied to recents even when no verified models exist (#46462)
-
Anton Kulyk authored
* Add repro test * Fix selectors and getSubmittableQuestion * Add null check
-
Nemanja Glumac authored
* WIP Open notebook data source in new tab * WIP * Implement the new functionality with `pickerInfo` * Use destructured value * Add the simplest possible E2E test as PoC * Smoke test * Add basic coverage for questions * Add basic coverage for models * Source question has been archived scenario * Add basic permissions test * Expand to the user without wite query permissions * Fix title * Add another permission scenario * Add E2E coverage for a source being native * Add coverage for the native model * Address review comment re: `pickerInfo` * Extract `getUrl` to utils * Add support for the middle/scroll click * Add unit tests * Add a negative test case * Fix title
-
Alexander Polyankin authored
Support both name & field ref-based column keys in viz settings on read and upgrade on write (#46383)
-
- Aug 05, 2024
-
-
Uladzimir Havenchyk authored
-
Sloan Sparger authored
* prevents users from moving items to the trash if they are in the trash already and archives instead of moves in cases where item is moved to or from the trash * reverts detecting if dragging in or out of the trash not setting the collection id, this will be prevented on the BE instead * adds test coverage for dragging and dropping items to/from/within the trash (one of which is failing until we can make a BE change) * Throw away `collection_id` when marking archived This is a hack around a frontend issue. Apparently, the undo functionality depends on calculating a diff between the current state and the previous state. Sometimes this results in the frontend telling us to *both* mark an item as archived *and* "move" it to the Trash. Let's just say that if you're marking something as archived, we throw away any `collection_id` you passed in along with it. --------- Co-authored-by:
John Swanson <john.swanson@metabase.com>
-
Mahatthana (Kelvin) Nomsawadi authored
* Update popover dark theme on part of ParameterFieldWidget (#45813) * Add filter visual tests * Simplify embed CSS colors * [WIP] theme filter popover * Move theme to global node, so it affects portal too * Fix embed colors * Theme part of ParameterFieldWidget * Add story for parameter with dropdown * Update loki snapshots * Update more popover style * Update loki snapshots * Remove outdated snapshots * Update loki snapshots with production build * Fix loki not working with `userEvent` * Theme mantine popover * Improve dark theme text-brand visibility * Update loki snapshots from master change * Fix new colors not working in SDK * Fix flaky Loki tests * Filter popover dark theme part 2 (#46284) * Theme Date all options * wip add month and year filter * Fix wrong CSS custom property declaration * Test hover state * Update Loki snapshots * Theme date month and year * Add quarter and year tests * Theme date single and date range * Style relative date * Update frontend/src/metabase/admin/datamodel/components/filters/pickers/DatePicker/DatePickerHeader.styled.tsx Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> --------- Co-authored-by:
Denis Berezin <denis.berezin@metabase.com> * Complete theming filter popover night mode (#46365) * Style unit of time and number widget * Attempt to fix flaky Loki snapshots * Address white background checkbox on dark theme * Style search filter single value * Fix mis color * Update snapshots * Remove duplication on play functions since they're long * Milestone 2 polishing (#46382) * Matches the footer padding with header padding * Update snapshots * Add E2E to prevent further problem * Try to reduce flaky Loki tests * Remove unused color shades (#46421) * Update no results illustration to work better on dark theme * Update loki snapshots --------- Co-authored-by:
Denis Berezin <denis.berezin@metabase.com>
-
Kamil Mielnik authored
* Refactor dashboard helpers to TypeScript * Reuse existing helper * Refactor cy.createQuestionAndDashboard to a function helper - there was no good place to put it, so I also created new helpers/api directory - and I moved all helpers using cy.request (with 1 exception, where a CSV download helper also does a bunch of assertions) in there * Merge TS command definitions into a single file * Export types * Make dashboardDetails optional * Export StructuredQuestionDetails * Remove duplicated function * Extract createNativeQuestion to separate file - 1 exported helper per file, no exceptions! * Reuse const * Add test for unit of time parameters * Improve assertions * Extract createDashboardWithParameters * Add tests for time parameters * Fix hardcoded parameter_mappings ids * Format code * Extract checkButtonVisible * Improve test names * Add tests for location parameters * Reuse const * Update test name * Add WidgetStatusButton * Add unit tests for WidgetStatusButton * Rename handler * Remove redundant assertions * Add iconSize prop * Fix styling * Replace WidgetStatusIcon with WidgetStatusButton - Remove WidgetStatusIcon * Fix tooltip issue * Fix tooltip for good * Use default compact button size * Prevent overflow * Fix alignment issues in parameter sidebar - Remove iconSize prop - Simplify StatusConfig * Update padding in Unit of Time input to make it consistent with other inputs in dashboard parameter sidebar * Update unit tests * Rename WidgetStatusButton to WidgetStatus * Explicitly specify what is a button * Update helpers in tests * Update when buttons are displayed according to the new spec, update tests * Simplify label * Remove utils * Adjust padding * Update reset icon * Make the button gray when color is undesired * Remove old definitions * Add missing export * Remove unused type * Add test for location (single value) * Add test for id (single value) * Add more assertions * Add test for id (multiple values) * Improve name * Add tests for number (single and multi value) * Add tests for text (single and multi value) * Rename file * Update comment * Update test name * Use unique ids * Use new color name * Add a test for chevron icons alignment * Lift className up * Make types more specific * Sort attributes * Revert "Make types more specific" This reverts commit 2e6994b5. * Revert "Use new color name" This reverts commit 2cc68df6. * Remove TODO * Introduce editFilter util, refactor chevron assertions to work with any number of chevrons * Connect label to the default value input in ParameterSettings * Add a whitespace in the default value label when required "(required)" is shown * Add parameter sidebar tests for unit of time * Add parameter sidebar tests for date filters * Extract checkParameterSidebarDefaultValue * Add parameter sidebar tests for location - single values * Add parameter sidebar tests for location - multiple values * Use constants for test case names * Add parameter sidebar tests for id parameters - single values * Add parameter sidebar tests for id parameters - multi values * Add parameter sidebar tests for number parameters - single values * Add parameter sidebar tests for number parameters - multi values * Add parameter sidebar tests for text parameters - single values * Add parameter sidebar tests for text parameters - multi values * Extract checkDashboardFilters * Use checkDashboardFilters in time parameters * Use checkParameterSidebarDefaultValue in checkDashboardFilters * Use checkDashboardFilters everywhere * Sort helpers * Rename checkDashboardFilters to checkDashboardParameters * Rename checkOnlyOneButtonVisible to checkStatusIcon * Add test suite for sql filters, coverage for text filter - single value * Add a whitespace in the default value label when required "(required)" is shown - SQL filters - Similar to 930dd3a5 * Add test suite for sql filters, coverage for number filters * Add test for sql filters - date * Remove unused things, rename placeholder to labelOrPlaceholder * Apply label only to 1 input * Add test for sql filters - field parameters * Fix date tests * Make all sql filters tests work * Add assertions for required without default in text filters * Add assertions for required without default in date filters * Add assertions for required without default in field filters * Allow clearing required SQL filters without default value * Add a test to ensure comma-separated numeric values work * Update unit test * Update helper * Update e2e tests * Use != null and == null checks with defaultValue instead of just checking if its truthy/falsy * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Add button boilerplate * Add getCanResetFilters selector * Move canResetFilters to utils * Add explicit return types * Implement the button action * Rename * Simplify action * Optimize: use single action * Use parameterHasNoDisplayValue to account for empty strings * Run `yarn test-visual:loki` and then `yarn loki approve` after merging master - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Rename getHiddenParameterSlugs to getTabHiddenParameterSlugs * Take all tabs into account * Add unit tests for canResetFilter * Format test name * Fix non-human-friendly aria-label * Add assertions for "Reset all filters" button's visibility * Unnest helpers from describe * Add a test for comma-separated values * Improve typing * Fix typing * Add tests for multiple tabs and auto-apply-filters on/off * Improve test name * Remove redundant util * Remove redundant condition * Verify card results get filtered * Test that all tabs are affected * Fix test case with autoApplyFilters: false * Add tests for resetting to default value * Fix wrong initial state in reduce * Fix updated parameters not being applied * Add reset all filters assertions * Remove unused attribute * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069
-
Kamil Mielnik authored
* Refactor dashboard helpers to TypeScript * Reuse existing helper * Refactor cy.createQuestionAndDashboard to a function helper - there was no good place to put it, so I also created new helpers/api directory - and I moved all helpers using cy.request (with 1 exception, where a CSV download helper also does a bunch of assertions) in there * Merge TS command definitions into a single file * Export types * Make dashboardDetails optional * Export StructuredQuestionDetails * Remove duplicated function * Extract createNativeQuestion to separate file - 1 exported helper per file, no exceptions! * Reuse const * Add test for unit of time parameters * Improve assertions * Extract createDashboardWithParameters * Add tests for time parameters * Fix hardcoded parameter_mappings ids * Format code * Extract checkButtonVisible * Improve test names * Add tests for location parameters * Reuse const * Update test name * Add WidgetStatusButton * Add unit tests for WidgetStatusButton * Rename handler * Remove redundant assertions * Add iconSize prop * Fix styling * Replace WidgetStatusIcon with WidgetStatusButton - Remove WidgetStatusIcon * Fix tooltip issue * Fix tooltip for good * Use default compact button size * Prevent overflow * Fix alignment issues in parameter sidebar - Remove iconSize prop - Simplify StatusConfig * Update padding in Unit of Time input to make it consistent with other inputs in dashboard parameter sidebar * Update unit tests * Rename WidgetStatusButton to WidgetStatus * Explicitly specify what is a button * Update helpers in tests * Update when buttons are displayed according to the new spec, update tests * Simplify label * Remove utils * Adjust padding * Update reset icon * Make the button gray when color is undesired * Remove old definitions * Add missing export * Remove unused type * Add test for location (single value) * Add test for id (single value) * Add more assertions * Add test for id (multiple values) * Improve name * Add tests for number (single and multi value) * Add tests for text (single and multi value) * Rename file * Update comment * Update test name * Use unique ids * Use new color name * Add a test for chevron icons alignment * Lift className up * Make types more specific * Sort attributes * Revert "Make types more specific" This reverts commit 2e6994b5. * Revert "Use new color name" This reverts commit 2cc68df6. * Remove TODO * Introduce editFilter util, refactor chevron assertions to work with any number of chevrons * Connect label to the default value input in ParameterSettings * Add a whitespace in the default value label when required "(required)" is shown * Add parameter sidebar tests for unit of time * Add parameter sidebar tests for date filters * Extract checkParameterSidebarDefaultValue * Add parameter sidebar tests for location - single values * Add parameter sidebar tests for location - multiple values * Use constants for test case names * Add parameter sidebar tests for id parameters - single values * Add parameter sidebar tests for id parameters - multi values * Add parameter sidebar tests for number parameters - single values * Add parameter sidebar tests for number parameters - multi values * Add parameter sidebar tests for text parameters - single values * Add parameter sidebar tests for text parameters - multi values * Extract checkDashboardFilters * Use checkDashboardFilters in time parameters * Use checkParameterSidebarDefaultValue in checkDashboardFilters * Use checkDashboardFilters everywhere * Sort helpers * Rename checkDashboardFilters to checkDashboardParameters * Rename checkOnlyOneButtonVisible to checkStatusIcon * Add test suite for sql filters, coverage for text filter - single value * Add a whitespace in the default value label when required "(required)" is shown - SQL filters - Similar to 930dd3a5 * Add test suite for sql filters, coverage for number filters * Add test for sql filters - date * Remove unused things, rename placeholder to labelOrPlaceholder * Apply label only to 1 input * Add test for sql filters - field parameters * Fix date tests * Make all sql filters tests work * Add assertions for required without default in text filters * Add assertions for required without default in date filters * Add assertions for required without default in field filters * Allow clearing required SQL filters without default value * Add a test to ensure comma-separated numeric values work * Update unit test * Update helper * Update e2e tests * Use != null and == null checks with defaultValue instead of just checking if its truthy/falsy * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Use parameterHasNoDisplayValue to account for empty strings * Run `yarn test-visual:loki` and then `yarn loki approve` after merging master - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069 * Run `yarn test-visual:loki` and then `yarn loki approve` - see https://metaboat.slack.com/archives/C505ZNNH4/p1721289287037069
-
Romeo Van Snick authored
* Make number also have custom parameter values * Render the correct label in the dropdown for number inputs * Mock paramter values endpoint in number input test * Add test for custom labels on number input * Fix number input test * Allow entering comma separated values using labels * Only show custom labels in popover * Use getLabel and getValue helpers to avoid indexing confusion * Remove calls to parameter endpoints for number input * Do not parse the value from the label * Add support for number parameters in the source picker modal * Filter number values * Add e2e test for number parameters with custom source * Remove card option for number parameters * Set the correct initial value for number parameters without fields * Do not render number parameter as search box when it is a list * Fix e2e tests for number lists * Remove e2e tests for card source dashboard filters * Add tests for native filter custom source * Show the dropdown when picking the default value for number parameters * Clear values_source_config when changing parameter type * Restore a parameters' values_source_config when changing the parameter type back * Clear and restore values_source_config for template tags when chaning type * Add e2e test for restoring of template tag sources_value_config * Add e2e test for clear and restore of static-list for dashboard parameters * Fix input type for numbers * Fix broken test * Display labels for ParameterValuePicker too * Clear and restore values_source_type when changing parameter type * Clear and restore values_source_type for tag parameters * Clear and restore values_query_type when changing parameter type * Clear and restore value_query_type for parameters tags * Update tests to test for reset to also apply to values_source_config and values_query_type
-