Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Jan 04, 2023
  2. Jan 03, 2023
    • Case Nelson's avatar
      Mongo remove v3 support (#27176) · 9c6997bb
      Case Nelson authored
      
      * Fix mongo version checking for now
      
      * Add minor versions for comparison
      
      * Handle nil case
      
      * newline
      
      * Replace _
      
      * Use dbms-version semantic-version instead
      
      * Compare only the major and minor version
      
      * Fix mongo database-supports?
      
      * Fix duplicate require
      
      * Fix typo
      
      * Remove expressions from version check
      
      * Fix various mongo expressions
      
      `trim`, `rtrim`, `ltrim` needed to be wrapped in `{"input" expr}` object
      `replace` needed to be wrapped in `{"input" expr "find" ...
      "replacement" ...}' object
      `substring` needed to fill in the 3rd argument, optional in mbql but
      required in mongo. Also to use a 1 based index
      
      * Generalize semantic-version-gte
      
      * Used synced dbms_version for testing feature support
      
      * Expressions are only supported by mongo 4.2+
      
      * Disable some tests
      
      * Fix mongo division
      
      Handle nulls with an upfront condition check.
      Handle multiple divisors.
      
      * Remove unused namespace
      
      * Throw exeception if using replace on mongo < 4.4
      
      * Skip test because of #27249
      
      * Move minimum Mongo CI version to 4.2
      
      * Fix sorting by expressions
      
      $sort needs to come before $project otherwise we can only see the
      projected fields, however expressions are only added in $project.
      
      So now if a sort includes an expression, we will use $addFields to be
      able to sort by that expression.
      
      * Disable tests for expressions inside aggregations
      
      To be addressed by #27275
      
      * Handle aggregation nested in an expression
      
      * Remove :truncation-start workaround
      
      * Enable tests for expressions inside aggregations
      
      * Fix datetime-math-tests
      
      * Make sure dbms_version is included when fetching database for store
      
      * Update doc for replace to indicate it should replace all occurrences
      
      * Fix order-by-test
      
      * Handle embedded special aggregations (#27315)
      
      * Handle embedded special aggregations
      * Preserve aggregation options for nested aggregations
      * Use top-level aggregation name as group name
      
      * Disable nil punning on semantic version check (#27317)
      
      * Optimize produced query for division when dividing by literals
      
      * Rename var
      
      * Use reduce to build division
      
      * Fix reduction
      
      * Clean up formatting and document some details
      
      Co-authored-by: default avatarCallum Herries <hi@callumherries.com>
      Co-authored-by: default avatarTamás Benkő <tamas@metabase.com>
      Co-authored-by: default avatarmetamben <103100869+metamben@users.noreply.github.com>
      Unverified
      9c6997bb
    • Cam Saul's avatar
      [Toucan 2 Prep] Add `define-*-hydration-method` macros (#27475) · 13f5d3d8
      Cam Saul authored
      * [Toucan 2 Prep] Add helper for extending `IModel`; namespace Toucan properties
      
      * Clean namespaces
      
      * Test fixes :wrench:
      
      * [Toucan 2 Prep] Add `define-*-hydration-method` macros
      
      * Sort namespaces
      
      * Disable Eastwood `:unused-private-vars` linter
      Unverified
      13f5d3d8
    • Luis Paolini's avatar
      Simplify dockerfile (#27463) · 84725d36
      Luis Paolini authored
      Simplify the main Dockerfile removing custom circleci images
      Unverified
      84725d36
    • Bryan Maass's avatar
      Start malli-dev mode in (dev/start!) iff is-dev? (#27473) · d2f10e9f
      Bryan Maass authored
      - add the rest of malli reserved aliases
      - malli.util :as [mu -> mut] (had collision with metabase.util.malli)
      Unverified
      d2f10e9f
    • Cam Saul's avatar
      [Toucan 2 Prep] Add helper for extending `IModel`; namespace Toucan properties (#27474) · 2d22d3af
      Cam Saul authored
      * [Toucan 2 Prep] Add helper for extending `IModel`; namespace Toucan properties
      
      * Clean namespaces
      
      * Test fixes :wrench:
      Unverified
      2d22d3af
    • Cal Herries's avatar
      datetime-diff function for athena (#27205) · ae59ec81
      Cal Herries authored
      * Add datetime-diff implementation for athena
      
      * Don't run some tests for drivers not supporting timestamptz
      
      * Fix for date types
      
      * Use date-trunc helper
      
      * Add comment about Athena's timestamp with time zone type
      
      * Add datetime-diff-time-zones-athena-test
      
      * Fix typo
      
      * Fix typo
      
      * Rewrite comment
      
      * Tidying
      
      * Add athena-datetime-diff-mixed-types-test
      
      * Fix typo
      
      * Adjust comments + formatting
      
      * Adjust comments
      
      * Format SQL query
      
      * Align requires
      Unverified
      ae59ec81
    • Cal Herries's avatar
      datetime-diff function for SQLite (#27076) · ff2934bf
      Cal Herries authored
      * Add sqlite datetime-diff
      
      * Refactor sqlite
      
      * Exclude sqlite from datetime-diff-type-test
      
      * Fix sqlite temporal fields losing type info on sql.qp->honeysql
      
      * Leave the default impl for sql.qp/date
      Unverified
      ff2934bf
    • Cal Herries's avatar
      datetime-diff function for Oracle (#27196) · 3779a169
      Cal Herries authored
      * Add oracle datetime-diff
      
      * Remove duplicate method impls
      
      * Remove unused require
      Unverified
      3779a169
  3. Dec 31, 2022
  4. Dec 29, 2022
  5. Dec 28, 2022
  6. Dec 27, 2022
  7. Dec 26, 2022
  8. Dec 25, 2022
  9. Dec 24, 2022
  10. Dec 23, 2022
Loading