This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Apr 20, 2023
-
-
Ngoc Khuat authored
-
- Apr 19, 2023
-
-
Cam Saul authored
-
- Apr 18, 2023
-
-
Cam Saul authored
* Fix clj-kondo analysis for `defclause` * Fix Kondo config * Fix typo
-
- Apr 11, 2023
-
-
Cam Saul authored
* Add QP test middleware to validate converted pMBQL queries against MLv2 schema * Revert 'fix' for #29944 * Fix ups * Hack * Fix final test failure * Remove unused namespace * Fix Kondo warning * Skip #29958
-
- Mar 31, 2023
-
-
Braden Shepherdson authored
This is a great way to make sure the conversion in both directions is robust; every feature of MBQL is exercised somewhere in the BE tests. In a few cases the `mbql-query` is called from a context where a `(is ...)` test won't work - those places can use a `mbql-query-no-test` instead. There were actually only two of these. This exposed several issues in `->legacy-MBQL` which have now been fixed.
-
- Mar 29, 2023
-
-
Cam Saul authored
* [MLv2] Basic QP support for MLv2 queries * Fix data/id init on launch * Fix Kondo errors * Add missing docstrings * Seriously Kondo!
-
Braden Shepherdson authored
This supports both parsing out the tags and constructing the template tags map, with `card-id` and all. This is not quite a FE no-op because the humanization of text is slightly different between `metabase.util.humanization` and the JS humanization library. This improves JS<->CLJS conversion to handle UUIDs and be smarter about enums, both of which were needed to handle converting template tag maps. Extracted a `js=` test helper to `metabase.test.util.js/=` since many tests need to compare JS objects, which are not JS `==` to each other.
-
- Mar 28, 2023
-
-
Cam Saul authored
* Improved implementation * Amazing code cleanup * Cleanup * More tests
-
Ngoc Khuat authored
* use resolve-model with keyword check * do the same for primary-key and fix a check in serialization
-
Ngoc Khuat authored
* db/update-where -> t2/update --------- Co-authored-by:
Cal Herries <39073188+calherries@users.noreply.github.com>
-
- Mar 27, 2023
-
-
Ngoc Khuat authored
* (db/simple-insert! Model opts) -> (t2/insert! (t2/table-name Model) opts) * (db/simple-delete! model opts) => (t2/delete! (t2/table-name) opts) * (db/simple-insert-many! Model opts) => (t2/insert! (t2/table-name Model) opts)
-
- Mar 24, 2023
-
-
Ngoc Khuat authored
* (db/transaction body) -> (t2/with-transaction [_conn] body) * (db/with-call-counting) -> (t2/with-call-count) * db/execute -> t2/query-one
-
- Mar 23, 2023
-
-
Ngoc Khuat authored
* db/count -> t2/count * db/exists -> t2/exists
-
Cal Herries authored
* Use type/JSON instead of type/SerializedJSON * Tidy migration * Update migration * Fix rollback migration for h2 * whitespace * Add test for migration * Fix test * Add rollback * whitespace * Test JSONB type as well as JSON * Don't fingerprint JSON columns * Remove comment, that might be wrong in the future * Update test * Add tests for fingerprinting * Use base-type JSON for fingerprinting base query * Add test for visibility-type=details-only * undo . * Change migration id * Fix migration test * Merge master * Exclude mariadb from tests * Make is-mariadb? public
-
Ngoc Khuat authored
* convert db\/insert! to t2
-
- Mar 22, 2023
-
-
Braden Shepherdson authored
It's broken there because it tries to capture the Var returned by `defn` in a `let`. Vars aren't real in CLJS, so this doesn't work. The compile succeeds but the JS output is subtly broken.
-
- Mar 21, 2023
-
-
Ngoc Khuat authored
-
Ngoc Khuat authored
-
Ngoc Khuat authored
db/update! -> t2/update!
-
- Mar 20, 2023
-
-
Cam Saul authored
* Query D E S C R I P T I O N S * WIP * MLv2 Query description * Test fixes * More robust error handling * MLv2 more shuffling things around * Remove unneeded impl * lib.expressions -> lib.expression * Address PR feedback
-
Ngoc Khuat authored
* db/select-one-field -> t2/select-one-fn * `db/select-field` -> `t2/select-fn-set` * db/select-ids -> t2/select-pk-set * db/select-field->field -> t2/select-fn->fn * db/select-field->id -> t2/select-fn->pk * `db/select-id->field` -> `t2/select-pk->field` * add discourage var
-
- Mar 17, 2023
-
-
Ngoc Khuat authored
* db/select-one -> t2/select-one
-
Ngoc Khuat authored
* `db/select-one-id` -> `t2/select-one-pk` * add discourage var
-
Ngoc Khuat authored
* db/select-one-field -> t2/select-one-fn * add discourage var
-
- Mar 16, 2023
-
-
metamben authored
* Add filter constructor functions * Revert changes to defop * Address linter complaints * Add function to set the query filter * Address linter complaints * Fix test name
-
Case Nelson authored
* Add an aggregate function to add aggregations to queries * Call ->op-arg on aggregate input * Allow any in aggregations for now because expressions on aggregates are allowed * We have to recurse into clauses
-
- Mar 13, 2023
-
-
Case Nelson authored
* Initial aggregation functions for metabase-lib * Remove comment for build? * Move defop to common * Add docstrings * Make eastwood happy
-
john-metabase authored
* Moves to actively-maintained clj-yaml and removes obsolete pinned deps * Adds discouraged namespace rule for clj-yaml (use metabase.util.yaml) Co-authored-by:
Braden Shepherdson <braden@metabase.com>
-
Cal Herries authored
* Add migration for deleting the abandonment email task * Start+stop scheduler around the migration * Update clj-kondo * Rename migration * Change to 46 * Fix define-migration * Add test * Update ns description * Remove stop-scheduler! from migration * Remove migration dependency on metabase.task * Restore mdb.connection -> mdb * Update custom-migrations ns docstring * Remove unused code * Fix comment
-
- Mar 07, 2023
-
-
Cam Saul authored
* MLv2 metadata overhaul, second try * Stricter linting for MLv2 * Address PR feedback
-
- Mar 02, 2023
-
-
Ngoc Khuat authored
-
- Mar 01, 2023
-
-
Cam Saul authored
* Metabase lib PoC RFC [ci skip] * Cleanup [ci skip] * `:lib/uuid` overhaul [ci skip] * More tests [ci skip] * Basic join support [ci skip] * Simplify a few things, more tests, etc. [ci skip] * Pipeline queries FTW [ci skip] * Metabase® Lib™ v2 * Fix cljs test assertions * No bees please * Update docstring * Mega simplification * Fix Kondo warnings * Address PR feedback * Fix Malli util for Cljc * Oops, `instrument!` should be public * Cloverage do not instrument JS util namespace * Fix Cloverage again * Don't count MySQL or Postgres namespaces for Coverage * Address PR feedback * Move dispatch value keyword function to util * Revert acccidental require * Test fix * Fix Cljs =? * Fix totally unrelated broken links
-
- Feb 27, 2023
-
-
Braden Shepherdson authored
Dev experience: - CLJS now has source maps - Devtools extension renders CLJS data in Chrome (et al) Devtools - Use a debug build of CLJS in the tests - Fixed line numbers and breakpoints being off-by-one in Devtools CLJC infra: - More robust direct approach to JS<->CLJS conversions, powered by Malli transformers. - Powerful `define-getters-and-setters` macro to generate the accessors.
-
- Feb 24, 2023
-
-
Cam Saul authored
* Mark `hx/` and `h1x/` namespaces and their vars as deprecated * Fix snowflake failures * Remove unneeded honey-sql-version bindings
-
- Feb 23, 2023
-
-
Cam Saul authored
* Snowflake Honey SQL 2 * Test fix
* Use Honey SQL 2 for GTAP compilation in sandboxing tests * Test fix -
Noah Moss authored
* new clojure migration for v1->v2 permissions * updates * fix rebase issue * fix reflection warning * fix final test and address comment about macro name * fix indentation * revert changes to defmigration macro to try to fix final test
-
Case Nelson authored
* Convert sqlite driver to honey-sql-2 * Fix bad case statement * We can't run native queries with AS for oracle * Dont call ->honeysql on a honeysql-expr * Fix bad call to h2x * Identifier needs to be wrapped * Update kondo config * Fix test * Remove hformat fn handler * Rotate the Snowflake DB prefix AGAIN * `sql.qp/format-honeysql` needs to wrap stuff in parens when generating SQL snippets * Update tests to match new expected SQL format * Sort namespaces * Fix the flaky paging test * Fix flaky `metabase.query-processor-test.timezones-test/filter-datetime-by-date-in-timezone-test` * MySQL test fix
* Try running Redshift with a beefier runner --------- Co-authored-by:Cam Saul <github@camsaul.com> Co-authored-by:
Cam Saul <1455846+camsaul@users.noreply.github.com>
-
- Feb 22, 2023
-
-
Case Nelson authored
Co-authored-by:
Cam Saul <1455846+camsaul@users.noreply.github.com> Co-authored-by:
Cam Saul <github@camsaul.com>
-
- Feb 21, 2023
-
-
Cam Saul authored
* MISC improvements * Update test/metabase/models/secret_test.clj Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com> * Update .clj-kondo/hooks/clojure/test.clj Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com> * Update .clj-kondo/hooks/clojure/test.clj Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com> --------- Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com>
-
dpsutton authored
* Custom migrations Current syntax: specify the migration with ``` - changeSet: id: v46.00-080 author: dpsutton comment: Uppercases all Card names changes: - customChange: class: "metabase.db.custom_migrations.ReversibleUppercaseCards" ``` and in the new namespace metabase.db.custom-migrations: ```clojure (defmigration UppercaseCards (db/execute! {:update :report_card :set {:name :%upper.name}})) (def-reversible-migration ReversibleUppercaseCards (db/execute! {:update :report_card :set {:name :%upper.name}}) (db/execute! {:update :report_card :set {:name :%lower.name}})) ``` * Use db provided by liquibase * edit docstring * set *warn-on-reflection* to fix lint error & rebase --------- Co-authored-by:
Noah Moss <noahbmoss@gmail.com> Co-authored-by:
Noah Moss <32746338+noahmoss@users.noreply.github.com>
-