Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Jun 07, 2023
  2. Jun 06, 2023
  3. Jun 05, 2023
  4. Jun 02, 2023
  5. Jun 01, 2023
  6. May 31, 2023
  7. May 30, 2023
    • Braden Shepherdson's avatar
      [MLv2] Support `:case` expressions in aggregations (#31088) · f00918c7
      Braden Shepherdson authored
      Fixes #29935.
      
      Part of the issue here was incorrect hand-rolling of the second
      argument to `:case`, the default value. In the failing test case given
      in #29935, it was written as `{:default 0}`. But that's accidentally
      transferring for legacy MBQL works, where the default is an option and
      the options come last rather than first in a clause.
      
      This also fixes `lib.common/->op-arg` to make sure it recurses
      properly. It wasn't recursing into lists or MBQL clauses, which left
      unresolved `(fn [query stage] ...)` functions in eg. `:case`
      alternatives, since those are nested inside lists.
      f00918c7
    • bryan's avatar
      Add type column to collections + hydrate dashboards and cards with it (#30994) · 5b64eafb
      bryan authored
      * add migration for typed collections
      
      * add hydration of collections to card+dashboard api
      
      - adds it for:
        - GET /api/question/:id
        - GET /api/dashboard/:id
      
      * fix test that checks for collection shape
      
      * get tests working with hydrated collection
      
      * typo fixes
      
      * fix more tests
      
      - PUT requests don't hydrate :collection
      
      * update tests to fix param_values {} vs nil inconsistencies
      5b64eafb
    • Tim Macdonald's avatar
      Use faster inserts in MySQL (#30820) · ccfca0f4
      Tim Macdonald authored
      * Use faster inserts in MySQL
      
      * Add local_infile check
      
      * PR feedback
      
      * Fix boolean handling for MySQL
      
      * Fix tests; fix MySQL fallback if local_infile is turned off
      
      * Turn local_infile on for MySQL tests
      
      * Another way of doing MySQL local_infile :/
      
      * sanitize-file-name was a misstep. Not needed for security and could cause problems
      
      * Mistaken docstring
      ccfca0f4
    • Braden Shepherdson's avatar
      [MLv2] Don't allow adding an expression with the same name as a column (#30809) · 239e9992
      Braden Shepherdson authored
      This was causing ambiguous references, since `order-by` clauses
      reference columns from previous stages by name.
      
      Fixes #30401.
      239e9992
    • Cal Herries's avatar
      95dab399
Loading