Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Mar 01, 2023
    • metabase-bot[bot]'s avatar
      [E2E] Regroup and move all related files to the root (#28749) (#28777) · 28b00a04
      metabase-bot[bot] authored
      
      * Register new E2E path alias
      
      * Move E2E support files
      
      * Move E2E runner files
      
      * Move E2E snapshot related files
      
      * Move E2E visual regression tests
      
      * Move E2E `downloads` scenarios
      
      * Move E2E `admin` scenarios
      
      * Move E2E `auditing` scenarios
      
      * Move E2E `bining` scenarios
      
      * Move E2E `ccollections` scenarios
      
      * Move E2E `cross-version` scenarios
      
      * Move E2E `custom-column` scenarios
      
      * Move E2E `dashboard` scenarios
      
      * Move E2E `dashboard-filters` scenarios
      
      * Move E2E `dashboard` reproductions
      
      * Move E2E `embedding` scenarios
      
      * Move E2E `filters` scenarios
      
      * Move E2E `joins` scenarios
      
      * Move E2E `models` scenarios
      
      * Move E2E `native-filters` scenarios
      
      * Move E2E `native` scenarios
      
      * Move E2E `onboarding` scenarios
      
      * Move E2E `organization` scenarios
      
      * Move E2E `permissions` scenarios
      
      * Move E2E `question` scenarios
      
      * Move E2E `visualizations` scenarios
      
      * Move E2E `sharing` scenarios
      
      * Move E2E `docker-compose`
      
      * Fix commands imports
      
      * Fix helpers imports
      
      * Fix downloads reproductions imports
      
      * Fix integration imports
      
      * Move visual regression tests
      
      * Various fixes
      
      * Move `validate-e2e-files` script
      
      * Add eslint rules for E2E folder
      
      * Improve file paths
      
      * Move `cross-version` tests into scenarios
      
      * Path fixes
      
      * Register E2E alias in tsconfig
      
      * Fix failing tests after rebase
      
      Co-authored-by: default avatarNemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
      28b00a04
  2. Feb 01, 2023
  3. Dec 05, 2022
  4. Oct 17, 2022
  5. Oct 04, 2022
  6. Aug 17, 2022
  7. Jul 06, 2022
  8. Jun 26, 2022
  9. Mar 01, 2022
  10. Feb 14, 2022
  11. Feb 03, 2022
  12. Jan 20, 2022
  13. Jan 17, 2022
  14. Dec 22, 2021
  15. Dec 21, 2021
  16. Dec 10, 2021
  17. Dec 06, 2021
  18. Sep 17, 2021
    • Anton Kulyk's avatar
      Feature | More Granular Caching Controls (Frontend) (#17802) · 7d6e031b
      Anton Kulyk authored
      * Rename dashboard details edit action
      
      * Use render props at dashboard edit form
      
      * Add enterprise caching plugin
      
      * Move dashboard entity forms to own file
      
      * Make FormField's margin configurable
      
      * Pass custom style to FormField
      
      * Use null as a default cacheTTLFormField value
      
      * Add tests for DashboardDetailsModal
      
      * Add cache_ttl field to DashboardDetailsModal
      
      * Add tests for CreateDashboardModal
      
      * Test cache_ttl is invisible when creating a dashboard
      
      * Remove not used mocks
      
      * Add tests for EditQuestionInfoModal
      
      * Move question entity forms to own file
      
      * Add cache_ttl field to EditQuestionInfoModal
      
      * Test cache_ttl is invisible when creating a question
      
      * Extract CacheTTLField component
      
      * Don't show cache field if caching is disabled
      
      * Fix typo
      
      * Update cache_ttl field look
      
      * Revert "Pass custom style to FormField"
      
      This reverts commit 3944ca8ff1dcad478f0f1c3a1973f454447c88c1.
      
      * Revert "Make FormField's margin configurable"
      
      This reverts commit ca7dc434532038da736012147f6889e6cc01ec11.
      
      * Fix CacheTTLField width
      
      * Add descriptionPosition prop to FormField
      
      * Add DatabaseCacheTTLField
      
      * Show cache_ttl field on database form
      
      * Use 24h as a default database cache TTL field value
      
      * Fallback to database cache_ttl in question form
      
      * Remove console.log
      
      * Fix request body assertion for CreateDashboardModal
      
      * Fix request body assertions for EditQuestionModal
      
      * Fix request body assertions for DashboardDetailsModal
      
      * Fix cache_ttl not included in `PUT /api/card/:id`
      
      * Use simple for for EditQuestionInfoModal
      
      * Refactor how unit tests mock caching settings
      
      * Add dashboard caching EE test
      
      * Add question caching EE test
      
      * Add caching e2e test for database add/edit
      
      * Remove debug stuff
      
      * Add error state to CacheTTLField
      
      * Fix DB cache field reverts to default value on 0
      
      * Validate cache_ttl field
      
      * Add getQuestionsImplicitCacheTTL helper
      
      * Remove redundant tests
      
      * Remove not used import
      
      * Nomalize `cache_ttl: 0` to null
      
      * Fix duplicated card update request
      
      * Add QuestionCacheTTLField component
      
      * Add test-id to Radio's option names
      
      * Use a new cache TTL field for questions
      
      * Check setting cache_ttl to null in E2E tests
      
      * Style question cache TTL field
      
      * Add dashboard ID to query request body
      
      * Extend `duration` formatting helper to support hours
      
      * Fix default caching duration display
      
      * Fix tests
      
      * Fix old dashboard edit action title
      
      * Fix missing translations
      
      * Add prop types to EditQuestionInfoModal
      
      * Remove `test.todo`
      
      * Simplify `getQuestionsImplicitCacheTTL`
      
      * Use `space` style helper
      
      * Add `key` prop to `jt`
      
      * Move time coverting utils to lib/time
      
      * Hide caching field label if just showing the input
      
      * Fix unit tests
      
      * Fix flacky E2E test
      
      * Add hover style for "More options" control
      
      * Fix missing translation
      
      * Use placeholder for cache inputs
      
      * Fix E2E tests to use cache field's placeholder
      
      * Feature flag for caching UI
      7d6e031b
  19. May 19, 2021
    • Anton Kulyk's avatar
      Display link to database integration docs when connecting a new database (#16018) · 9ea3518a
      Anton Kulyk authored
      * Add basic AddDatabaseHelpCard component
      
      * Display database engine on HelpCard
      
      * Display help link for cloud instances
      
      * Display link to database setup docs
      
      * Dispaly help card at `/admin/database/create`
      
      * Test help card changes copy on new db page
      
      * Display db setup help card on Setup
      
      * Display help card only when db engine is selected
      
      * Fix not translated string
      
      * Use styled-components for AddDatabaseHelpCard
      9ea3518a
  20. May 03, 2021
  21. Mar 10, 2021
    • Nemanja Glumac's avatar
      Consolidate users in Cypress tests (#15058) · ef824613
      Nemanja Glumac authored
      
      * Move user groups above users
      
      * Use `email` in a user object instead of `username`
      
      * Add `createUser` function
      
      - Get rid of `makeUserObject` and store users' group membership directly within the user object
      
      * Improve `createUser` function
      
      * Add sandboxed user to the main `USERS` object
      
      * Use newly constructed `sandboxed` user in tests
      
      * Export `signInAsSandboxedUser()`
      
      * Fix function name
      
      Co-authored-by: default avatarPaul Rosenzweig <paulrosenzweig@users.noreply.github.com>
      
      * Fix linter errors
      
      * Simplify `createUser()` function
      
      * Use user attributes directly in tests
      
      * Fix broken tests
      
      * Destructure users in tests
      
      * Use double quotes
      
      * Extract Cypress user data (#15103)
      
      * Extract user data in a separate file
      
      * Convert `createUser` function to a Cypress custom command
      
      * Convert `signIn` function to a Cypress custom command
      
      * Convert `signInAsAdmin` function to a Cypress custom command
      
      * Convert `signInAsNormalUser` function to a Cypress custom command
      
      * Convert `signInAsSandboxedUser` function to a Cypress custom command
      
      * Convert `signOut` function to a Cypress custom command
      
      * Guard against user groups data falling out of sync
      
      Co-authored-by: default avatarPaul Rosenzweig <paulrosenzweig@users.noreply.github.com>
      ef824613
  22. Mar 01, 2021
    • Nemanja Glumac's avatar
      Add Cypress custom log command (#14986) · 3ce314be
      Nemanja Glumac authored
      * Add custom Cypress log function
      
      Shoutout to @filiphric for the original idea and inspiration.
      
      * Update all occurrences of `cy.log`
      
      * Remove `.only` from a test left by mistake
      
      * Reset log counter for each test
      3ce314be
  23. Feb 02, 2021
  24. Jan 15, 2021
    • Nemanja Glumac's avatar
      Merge `Run Cypress OSS tests in isolation` PR from `release-x.37.x` branch (#14372) (#14394) · 31943ecc
      Nemanja Glumac authored
      * Run Cypress OSS tests in isolation (#14372)
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/databases/add.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/hide_tables.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/table.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/databases/list.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/data_ref.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/operators.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/settings.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/trendline.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/reference/databases.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/downloads.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/segments.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/metrics.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/permissions/permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/settings/spinner.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/auth/search.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/auth/signin.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/dashboard_data_permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/dashboard-drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/embed.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/title-drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/loading.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/nested-cards.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/text-box.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/home/activity-page.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/native_subquery.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/nested.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/view.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/visualizations/drillthroughs/dash_drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/home/overworld.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase-db/postgres/custom-column.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/alert/alert.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/parameters-embedded.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/settings/settings.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/databases/edit.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/alert/alert.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/pulse/pulse.cy.spec.js` [ci skip]
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/snippets.cy.spec.js` (#14380)
      
      * Fix `downloads.cy.spec.js`
      
      This file was different on `master`, and that's why the version from `release-x.37.x` branch didn't work.
      It had to be adjusted to be able to run in isolation.
      
      * Fix `pulse.cy.spec.js`
      31943ecc
  25. Jan 14, 2021
    • Nemanja Glumac's avatar
      Run Cypress OSS tests in isolation (#14372) · 3c5071c1
      Nemanja Glumac authored
      * Run all tests in isolation for `frontend/test/metabase/scenarios/permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/databases/add.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/hide_tables.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/table.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/databases/list.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/data_ref.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/operators.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/settings.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/trendline.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/reference/databases.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/downloads.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/segments.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/datamodel/metrics.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/permissions/permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/settings/spinner.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/auth/search.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/auth/signin.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/dashboard_data_permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/dashboard-drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/embed.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/title-drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/loading.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/nested-cards.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/text-box.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/home/activity-page.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/native_subquery.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/nested.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/view.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/visualizations/drillthroughs/dash_drill.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/home/overworld.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase-db/postgres/custom-column.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/alert/alert.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/parameters-embedded.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/settings/settings.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/admin/databases/edit.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/alert/alert.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/dashboard/permissions.cy.spec.js`
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/pulse/pulse.cy.spec.js` [ci skip]
      
      * Run all tests in isolation for `frontend/test/metabase/scenarios/question/snippets.cy.spec.js` (#14380)
      3c5071c1
  26. Jan 06, 2021
    • Cam Saul's avatar
      Merge x.37.5back into master (#14282) · 288494de
      Cam Saul authored
      
      * #11907 Repro: Tooltip should display correct value for unaggregated data [ci skip] (#14102)
      
      
      Co-authored-by: default avatarflamber <1447303+flamber@users.noreply.github.com>
      
      * #11957 Repro: Changing filters shouldn't drop aggregated filter [ci skip] (#14103)
      
      * #13187 Repro: FE should respect (BE) settings for `auto_run_queries` [ci skip] (#14120)
      
      * Mac App build script tweaks
      
      * Defer the parser and its related construction until it's needed (#14133)
      
      Expression parser construction is expensive (mainly due to grammar validation
      via Chevrotain's performSelfAnalysis). Thus, instantiating the parsers at the
      initialization time will lead to a signifant delay in DOMContentLoaded,
      thereby affecting (among others) the embedding performance.
      
      To avoid this, simply defer that step until parsing is really needed
      (which is actually far far later, i.e. when the user is using the
      notebook).
      
      * Add a clarifying comment regarding parser lazy loading
      
      * Fix #13187: FE should respect settings for `auto_run_queries` on page load (#14121)
      
      Closes #13187
      
      * Remove initial state from `auto_run_queries`
      
      * Assert that `auto_run_queries` is ON by default for sample dataset
      
      This test confirms that toggle works without explicitly setting the initial state to `true`.
      
      * Improve toggle's accessibility
      
      Reference: https://a11y-style-guide.com/style-guide/section-forms.html#kssref-forms-toggles
      
      
      
      * Adjust Cypress tests
      
      * #13415 Repro: Visualization type should be respected when entering a question from a dashboard [ci skip] (#14142)
      
      * Fix #13299: Misconfigured "Port" label and input fields (#14134)
      
      Closes #13299
      
      * Add `aria-labelledby` attribute to numeric form fields
      
      * Update affected Cypress tests
      
      * #13175 Repro: Can not do arithmetic in filter expressions (#14155)
      
      * #14193 Repro: Custom column is dropped after removing filter (that comes after aggregation) [ci skip] (#14197)
      
      * Fix 13868 (second try) (#14248)
      
      * Fix 13868
      
      * Unskip Cypress test
      
      * #14255 Repro: CC and table column same name [REGRESSION] [ci skip] (#14267)
      
      * Backport migrations fixups from master (#14276)
      
      * Misc code improvements (#14247)
      
      * Add test-cypress-open-no-backend
      
      * Enable test endpoints for dev
      
      * More are+ test util function to metabase.test
      
      * Improve the way with-temp-defaults are reloaded for models
      
      * Simplify defendpoint macro a bit; convert tests to new style
      
      * Rework a few more tests
      
      * Code cleanup
      
      Co-authored-by: default avatarNemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
      Co-authored-by: default avatarflamber <1447303+flamber@users.noreply.github.com>
      Co-authored-by: default avatarAriya Hidayat <ariya@metabase.com>
      288494de
  27. Dec 18, 2020
  28. Dec 17, 2020
  29. Mar 11, 2020
  30. Jan 17, 2020
  31. Jan 09, 2020
Loading