This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Aug 24, 2023
-
-
Cam Saul authored
QP: use MLv2 metadata provider. Eliminate 50% of app DB calls and improve performance by 10%+ (#33221) * QP use MLv2 metadata provider (34/2) * (22/2) * (21 / 0) * (20 / 4) * (7 / 2) * (2/0) * Cleanup; (3/0) * Last two test fixes * (36 / 2) * (8 / 1) * Reorder stuff * Test fixes
* Test fixes * Some test fixes * More test fixes * Test fix * MongoDB test fix * B I G cached metadata provider performance improvements * Revert breaking change * Fix Kondo * Make sure application database metadata provider returns Database :features * Test fix * Parallel tests for QP macroexpansion middleware * `with-current-user` is fine in parallel tests. * Add test util remap metadata providers and rework remap middleware to use mock MLv2 data * Address PR feedback * Improve unrelated flaky test * Some test improvements * Fix lint error * MLv2-ize `nest-query-test` * Fix typo in PR feedback changes * More parallelization and test fixes * Convert lots more tests to mock metadata * Test fix? * Fix Card update logic * Another Card update logic fix * Another round of fixes * Hopefully no more test fixes * Evil test fixes * Test fix 1 * Test fix
-
- Aug 22, 2023
-
-
Cam Saul authored
* Parallel QP tests; linter improvements; move QP test fns * Cleanup * Move query->expected-cols * Fix QP test namespace * Test fix
* Fix merge issues * Revert unrelated changes * Test fix * Fix some things that are actually ^:parallel safe * Remove Oracle logic for destroying DBs from different sessions since we don't test on AWS anymore * Use ReentrantReadWriteLock for getting + creating test datasets to avoid race conditions * Add non-`metabase.test` versions of things to the disallowed list for `^:parallel` tests
-
- Jul 31, 2023
-
-
Alexander Polyankin authored
-
- Jul 20, 2023
-
-
Cam Saul authored
* MLv2: Kondo linter improvements & cleanup * Revert version bump
-
- Jun 02, 2023
-
-
Cam Saul authored
* Ban `tt/with-temp` and convert usages to Toucan 2 * Ban `tt/with-temp*` and convert usages to Toucan 2 * Revert changes not meant for this PR * Ban `mt/with-temp` and replace usages with `t2.with-temp/with-temp` * Fixes
* Fix indentation * fix syntax in models.secret_test --------- Co-authored-by:Ngoc Khuat <qn.khuat@gmail.com>
-
- Apr 19, 2023
-
-
Cam Saul authored
-
- Apr 18, 2023
-
-
Cam Saul authored
* Fix clj-kondo analysis for `defclause` * Fix Kondo config * Fix typo
-
- 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
-
- Mar 02, 2023
-
-
Ngoc Khuat authored
-
- 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 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>
-
- Feb 10, 2023
-
-
Cam Saul authored
* Support Honey SQL 2 for SQL QP * Sort namespace * Make Postgres/Redshift be Honey SQL 2-only * Test fix
* Fix busted * Redshift test fixes * Sort namespaces * Fix Postgres convert_timezone * Fix linter config. * Fix one last test failure * Redshift test fix * Test fixes and some extra validation etc. * Update common.clj * Update common.clj * Update common.clj -
Braden Shepherdson authored
Some JVM-specific functions are now in `metabase.util.jvm`, but they are re-exported (in CLJ) by `metabase.util`.
-
- Feb 02, 2023
-
-
Mark Bastian authored
Added bans for print and friends. Fixed issues in kondo config where a macroexpansion put in a print by replacing with (constantly nil) as a no-op.
-
- Jan 18, 2023
-
-
Tim Macdonald authored
* Bump clj-kondo to 2022.12.10 [Fixes #27512] * Use Kondo's :config-in-call instead of grosser hacks
-
- Jan 03, 2023
-
-
Cam Saul authored
* [Toucan 2 Prep] Add helper for extending `IModel`; namespace Toucan properties * Clean namespaces * Test fixes
* [Toucan 2 Prep] Add `define-*-hydration-method` macros * Sort namespaces * Disable Eastwood `:unused-private-vars` linter -
Cam Saul authored
* [Toucan 2 Prep] Add helper for extending `IModel`; namespace Toucan properties * Clean namespaces * Test fixes
-
- Dec 29, 2022
-
-
Bryan Maass authored
The new macro is called defendpoint. The previous defendpoint is now defendpoint-schema, as per @camsaul's idea. It'll make it easier to realize that we should use the Malli version of defendpoint going forward. * adds malli defendpoint + linting + tests - I decided to add a new defendpoint macro -- it is nearly exactly the same as `defendpoint`. If the duplication is an issue I can handle that too. * malli-defendpoint -> defendpoint-malli * defendpoint -> defendpoint-schema * defendpoint-malli -> defendpoint * fine tuning error messages + comments - fix kondo config * put back dox-for-plumatic * fix name collision * adds local malli description ns + test * update alias in test * linting fix * linting fix pt. 2 * hook up umd/describe
-
- Dec 09, 2022
-
-
Case Nelson authored
Kondo made a recent change to try deriving positional information for introduced tokens, unfortunately it is rarely accurate and can make working with our macros difficult in lsp.
-
- Sep 22, 2022
-
-
Cam Saul authored
* 347 errors, 34 warnings * 89 errors, 66 warnings * 63 errors, 39 warnings * 52 errors, 33 warnings * 23 errors, 22 warnings * 13 errors, 4 warnings * Fix the last few errors. * Sort Kondo config
-
- Aug 23, 2022
-
-
Cam Saul authored
* [Toucan 2 prep] Don't invoke Toucan models as functions * Some fixes * Test fixes * Test fix * [Toucan 2 prep] Don't call `type` or `class` on Toucan models * Test fixes * More test fixes
* Replace perms protocol with multimethods; derive models from perms policy keywords * Test fixes * Appease Eastwood * Fix errors now that App has been merged in * Empty commit to trigger CI
-
- Aug 22, 2022
-
-
Cam Saul authored
* [Toucan 2 prep] Don't invoke Toucan models as functions * Some fixes * Test fixes * Test fix * [Toucan 2 prep] Don't call `type` or `class` on Toucan models * Test fixes * More test fixes
-
Cam Saul authored
* [Toucan 2 prep] Don't invoke Toucan models as functions * Some fixes * Test fixes
-
- Aug 12, 2022
-
-
Cam Saul authored
* Fix some small things * Add Kondo to deps.edn to be able to debug custom hooks from REPL * Fix macroexpansion hook for with-temp* without values * Test config (WIP) * More misc fixes * Disable :inline-def for tests * More misc fixes * Fix $ids and mbql-query kondo hooks. * Fix with-temporary-setting-values with namespaced symbols * More misc fixes * Fix the rest of the easy ones * Fix hook for mt/dataset * Horrible hack to work around https://github.com/clj-kondo/clj-kondo/issues/1773 . Custom linter for mbql-query macro * Fix places calling mbql-query with a keyword table name * Fix the last few errors in test/ * Fix errors in enterprise/test and shared/test * Fix driver test errors * Enable linters on CI * Enable unresolved-namespace linter for tests * Appease the namespace linter again * Test fixes
-
- Jul 25, 2022
-
-
Case Nelson authored
* wip * Update kondo hook for with-temp* `with-temp*` allows for unpaired bindings if you just want the default model. This would break the `let` that the hook was binding if you had an unpaired temp model followed by others. * Adding tests for emitters and actions Test hydration of :emitters Test hydration of :action Test http emitter execution Test emitter crud Test failure cases around emitter execution Small consistency changes made to non-test code that shouldn't affect happy path FE code, largely 404 checking and keyword/string consistency. * Fix unused requires * Fix macro resolution
-
- Jun 16, 2022
-
-
Braden Shepherdson authored
-
- May 19, 2022
-
-
Cam Saul authored
* `defsetting` setter functions should end in `!` * Fix typo * Update .clj-kondo/hooks/metabase/models/setting.clj * Fix clj-kondo for Toucan defmodel not emitting a docstring * Remove `^:private` metadata on a couple of Settings since it makes Eastwood fussy
-
- Feb 24, 2022
-
-
Michiel Borkent authored
* Refer all * allow refer all in tests * Add toucan test macro config * wip * Improve hooks * Fix formatting issue * Improve * presto * oracle * mongo * druid * zero errors * undo whitespace change * ns linter satisfaction
-
- Feb 03, 2022
-
-
Michiel Borkent authored
* Turn defendpoint config macro into analyze-call hook for better linting * Simplify hook * Remove previous macro config * Fix all errors concerning third party libs * revert whitespace change:
-
- Oct 19, 2021
-
-
Eric Dallo authored
-