This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Sep 27, 2024
-
-
Chris Truter authored
-
- Sep 26, 2024
-
-
lbrdnk authored
* Databricks JDBC driver base * Add databricks CI job * WIP data loading -- it works, further cleanup needed * Cleanup * Implement ->honeysql to enable data loading * Hardcode catalog job var * Implement driver methods and update tests * Derive hive instead of sql-jdbc * Cleanup leftovers after deriving hive * Run databricks tests on push * Cleanp and enable set-timezone * Disable database creation by tests * Add Databricks to broken drivers for timezone tests * Exclude Databricks from test * Enable have-select-privilege?-test * Restore sql-jdbc-drivers-using-default-describe-table-or-fields-impl post rebase * Restore joined-date-filter-test * Adjust to work with dataset definition tests * Adjust alternative date tests * Remove leftover reflecttion warning set * Update test exts * cljfmt vscode * Add databricks to kondo drivers * Update metabase-plugin.yaml * Update databricks_jdbc.clj * Rework test extensions * Update general data loading code to work with Databricks * Reset tests to orig * Use DateTimeWithLocalTZ for TIMESTAMP database type * Convert to LocalDateTime for set-parameter * Update test extensions field-base-type->sql-tyoe * Update database-type->base-type * Enable creation of time columns in test data even though not supported * Fix typo * Update tests * Udpate tests * Update drivers.yml * Disable dynamic dataset loading tests * Adjust the iso-8601-text-fields-should-be-queryable-date-test * Update load-data/row-xform * Add time type exception to test * Update test data loading and enable test * Whitespace * Enable all driver jobs * Update comment * Make catalog mandatory * Remove comment * Remove log level from spec generation * Update sql.qp/datetime-diff * Update read-column-thunk * Remove comment * Simplify date-time->results-local-date-time * Update comment * Move definitions * Update test extension types mapping * Remove now obsolete ddl/insert-rows-honeysql-form implementation * Update sql-jdbc.conn/connection-details->spec for perturb-db-details * Update load-data/do-insert! * Remove ssh tunnel from driver as tests do not work with it * Update test * Promote ::dynamic-dataset-loading to :test/dynamic-dataset-loading and modify corresponding tests * Adjust to broken TIMESTAMP_NTZ sync * Update read-column-thunk to return timestamps always in Z * Comment * Disable tests for dynamic datasets * Return spark jobs into drivers.yml * Update Databricks CI catalog * Remove vscode cljfmt tweak * Update iso-8601-text-fields-expected-rows * Update datetime-diff * Formatting * cljfmt * Add placeholder test * Remove comment * cljfmt * Use EnableArrow=0 connection param * Remove comment * Comment * Update tests * cljfmt * Update driver's deps.edn * Update tests * Implement alternative `describe-table` * WIP Workaround for timestamp_ntz sync, will be thrown away probably * Update metabase-plugin.yaml with schema filters * Update driver to use schema filters and remove now redundant sync implemnetations * Update tests * Update tests extensions * Update test * Add feature flags for fast sync * Implement describe-fields * Implement describe-fks-sql * Enable fast sync features * Use full_data_type * Comment * Add exception for timestamp_ntz columns to new sync code * Implement db-default-timezone * Add timestamp_ntz ignored test * Add db-default-timezone-test * Fix typo * Update setReadOnly * Add comment on setAutoCommit * Update chunk-size * Add timezone-in-set-and-read-functions-test * Drop Athena from driver exceptions * Use set/intersection instead of a filter * Add explicit fast-sync tests * Update describe-fields-sql and add comment * Add preprocess-additional-options * Add leading semicolon test * Disable dataset creation and update comment * Rename driver to `databricks` * Use old secret names * Fix wrongly copied hsql list * Temporarily allow database creation * Add *allow-database-deletion* * Temporarily allow database creation * Disable database creation * cljfmt * cljfmt
-
- Sep 05, 2024
-
-
Cam Saul authored
* API endpoint dox generation should resolve schemas from the registry #46799 * Update Kondo config * Fix formatting
-
- Aug 30, 2024
-
-
Ngoc Khuat authored
* [notification] New method: `channel/can-connect?` (#44955) * [notification] Channel APIs (#45207) * [notification] namespaced channel type (#45527) * [Notification] Render alert for http channel (#45545) * [notification] Add channel description (#45840) * [notification] update API to enable http channels for alert (#45839) * [Notification] Remove channel details for users without write perms (#46034) * [Notification] Serdes channel (#46031) * [Notification] Update http details schema (#45960) * [Notification] Deactivate channels will delete PulseChannel (#46115) * [Notification] audit log for channel create and update (#46113) * [Notification] Disallow undefined key for http channel details (#46712) * [Notification] Handle channel name conflicts (#46818) * Webhooks Admin Section (#46194) * [notification] Fix test pulse endpoint does not work properly for http channels (#46474) (#47050) * [Notification] Fix unable to update multiple channels per type (#47111) * [Notification] Record Task History when pulse sends channel message (#46218) * Enabling Webhook Alerts (#47022) * [Notification] fix cyclic deps (#47379) * [notification] channel serdes spec (#47386) Co-authored-by:
Nick Fitzpatrick <nick@metabase.com>
-
- Aug 20, 2024
-
-
Cam Saul authored
* Kondo Config cleanup * Restore warnings for with-log-messages-for-level until #28827 is merged * Updated clojure.test hooks * Fix kondo warning * Test defn/defmacro exclamation point linter should also use :parallel/disallowed (part 1) * WIP * Time for me to learn to spell * Finish the cleanup * Remove code I was typing as an example * Fix renamed var * Fix the SAML tests * Fix Kondo warning
-
- Aug 16, 2024
-
-
Cam Saul authored
* Kondo Config cleanup * Restore warnings for with-log-messages-for-level until #28827 is merged * Updated clojure.test hooks * Fix kondo warning * Time for me to learn to spell
-
Cam Saul authored
* Beautiful log message capturing
* Don't have log.cljs try to load log.capture, don't know how to make that work * Remove restriction against use in parallel tests * Fix tests using invalid syntax * Port legacy tests * Make this stuff work with Cljs * Fix bad syntax * Convert usages of old version of with-log-messages-for-level to new version * Update other stuff to use the updated macro * Fix stuff * Fix Cljs tests * Fix world's largest test * Appease Kondo * Fix comment * ClojureScript: only emit capture code in dev builds
-
- Aug 14, 2024
-
-
Cam Saul authored
* Add Kondo linter to disallow hardcoded driver names in tests * Fix all tests using hardcoded driver names * Test fixes
* Appease Kondo * Remove normal-drivers-except * Test fix * Test fixes * MongoDB test fixes
-
- Aug 05, 2024
-
-
Chris Truter authored
### Description This change should fix some explosions in stats due to phantom fields, while also making things a bit more rigorous. - Record the table schema in query_field - especially useful for unknown tables - Allow null table names in query_field - they might be phantoms, or they might not - We still have the option to filter them out in tools we build on top - Tighten up matching logic to consider schema
-
- Jul 30, 2024
-
-
John Swanson authored
* Make an internal API for retrieving stale content This introduces the `metabase.stale` module, which has one public function (so far): `metabase.stale/find-candidates`. This takes a set of `collection-ids`, a cutoff date, and pagination/sort info. Next, we introduce an HTTP API endpoint that will figure out the appropriate set of `collection-ids` for a given user/request, call this function, and return the results in the shape we want. Also: for e2e tests, we need a way to mark a card or dashboard as stale. I think the easiest way to do this is to just create a testing endpoint that we can call to update the `last_used_at` or `last_viewed_at` of the card/dashboard to set it to ~7 months ago. --------- Co-authored-by:
bryan <bryan.maass@gmail.com>
-
- Jul 29, 2024
-
-
Braden Shepherdson authored
Expands and refactors `metabase.util.memoize` to support better cross-platform memoization. **Better basic memoization** Use `clojure.core.memoize/memo` (and its clone in CLJS) rather than `clojure.core/memoize` for the "everything forever" strategy. **Bounded memoization** There are a few places (eg. `u/kebab-case-en`) where we want zero-overhead *hits* and expect the input space to be fixed. To guard against runaway memory usage, this **bounded** strategy dumps the entire cache when it overflows. It logs an INFO level note when that happens - the intent here is that the threshold should never actually get hit! **Fast JVM versions** In the special case where the function to memoize takes exactly 1 argument which is a valid map key, we can use `ConcurrentHashMap.computeIfAbsent` as the basis of the cache and have much less overhead. `fast-memo` and `fast-bounded` implement this in CLJ; in CLJS they just call `memo` and `bounded`.
-
- Jul 25, 2024
-
-
metamben authored
Add Azure managed identity support --------- Co-authored-by:
Case Nelson <case@metabase.com>
-
bryan authored
* Adds a middleware that sets 2 dynamic vars - These vars will be used to insert context for embedding analytics * migration adding embedding_client and embedding_version to qe and vl tables * clarify function api * headers come in -> dynamic vars -> written to db When the vars are set we insert their values into query execution and query_log under embedding_client and embedding_version. * update update migrations * add predconditions to migrations * fix tablenames + dataset_test * Code Review responses - remove commented out requires - clarify test for merge-count-maps
-
Noah Moss authored
Co-authored-by:
bryan <bryan.maass@gmail.com>
-
- Jul 23, 2024
-
-
Noah Moss authored
-
Chris Truter authored
-
Tim Macdonald authored
Makes much nicer test output than the resp= nonsense
-
- Jul 18, 2024
-
-
Chris Truter authored
-
Chris Truter authored
-
- Jul 16, 2024
-
-
Ngoc Khuat authored
-
- Jul 15, 2024
-
-
Chris Truter authored
* Consolidate query analysis code * Tighten up more * Missed a spot * More encapsulation * Remove blank line
-
- Jul 10, 2024
-
-
Tim Macdonald authored
-
- Jun 20, 2024
-
-
Chris Truter authored
-
- Jun 19, 2024
-
-
Ngoc Khuat authored
-
- Jun 07, 2024
-
-
Noah Moss authored
-
- Jun 03, 2024
-
-
Cal Herries authored
-
- May 31, 2024
- May 30, 2024
-
-
Cam Saul authored
* Remove Google Analytics driver * Remove more GA-related tests * Un-remove tests that aren't related to GA
-
- May 21, 2024
-
-
Cam Saul authored
* Search API namespace * Search API namespace * Search API namespace * Fix Kondo warnings * Fix typo * Finally solve the MySQL ^:parallel test failures <3 * Make some search tests REPL-friendly * Did I finally fix `^:parallel` MySQL tests? * Ok I give up just make the search tests single-threaded for MySQL/MariaDB. * Revert the stuff to make paralell tests work for MySQL... for now. * Keep new name * Revert deps-graph changes * Remove unused namespaces * Fix Kondo linter for log/info + format * Misc fixes
* Test fixes -
Cam Saul authored
* Squashed commit * Update config * Backport the kondo ignore stuff from other PR. * `metabase.analyze` API namespace
-
- May 20, 2024
-
-
Kamil Mielnik authored
-
- May 10, 2024
-
-
Cam Saul authored
* Remove unused `metabase.api.transform` * Copy the deps graph improvements from my other PR * New combined X-Rays API namespace * Fix kondo error
-
- May 09, 2024
- May 08, 2024
-
-
Cam Saul authored
* Cam's module linter 5000 * Get Kondo passing * Revert changes to usage of mdb.setup/setup-db! * Check ns shapes * Add ns :require shape linter; PR feedback * Linter fixes
-
- Apr 30, 2024
-
-
Cam Saul authored
-
- Apr 29, 2024
-
-
Cam Saul authored
* Fix add-alias-info matching for nominal field literal refs * Minor cleanup * Minimize diff * A bit more cleanup * Cumulative aggregations w/ multiple breakouts should reset counts (#2862) * Update dox * Do the nesting FIRST before adding alias info. * Remove unused * FE for Offset() * Cleanup stray code * Prettier * Kondo * Test fixes
* Better error message when no breakout * Support offset as an expression with no breakouts. Still require an ORDER BY tho. * Fix most stuff * Hack city?????? * Revert nest-query changes and disable the offset-no-breakout test for now. * Appease TypeScript * Test fix * Oracle & MySQL test fixes * Test fixes * Remove maxWorkers for FE unit tests
-
- Apr 22, 2024
-
-
Tim Macdonald authored
-