This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Aug 07, 2023
-
-
Ngoc Khuat authored
-
- Jul 21, 2023
-
-
Cam Saul authored
-
- Jul 04, 2023
-
-
john-metabase authored
This reverts commit 9da0bd76.
-
- Jun 26, 2023
-
-
Noah Moss authored
-
- Jun 21, 2023
-
-
Dennis Schridde authored
Revert "Compile with direct_link=true (#28357)" and "Respect MB_COLORIZE_LOGS and MB_EMOJI_IN_LOGS environment variables (#31612)" (#31732) This can cause environment variables set at compile time to affect runtime, cf. https://github.com/metabase/metabase/issues/30518. We keep the changes to JVM options and logging startup time, since they were independently useful. This reverts commit e3285698 and commit 380cd8a3.
-
- Jun 20, 2023
-
-
john-metabase authored
-
- Jun 10, 2023
-
-
Ariya Hidayat authored
-
- Jun 09, 2023
-
-
Noah Moss authored
-
- Jun 07, 2023
-
-
Nemanja Glumac authored
-
- Jun 04, 2023
-
-
Nemanja Glumac authored
We migrated from CircleCI a long time ago and are now using GitHub Actions. But even without that CircleCI, like many other CI providers, sets the `CI` environment variable to `true` or to `1` by default. This PR updates the `interactive?` check to use that env var as fallback.
-
- Apr 28, 2023
-
-
Jeff Bruemmer authored
-
- Apr 26, 2023
-
-
Tim Macdonald authored
* allow formData uploads * basic CSV uploads from collections * add dropzone support for collections * Add CSV uploads feature and have postgres and H2 support it (#29636) * Add csv uploads feature and have postgres support it * Add h2 support * CSV: schema detection (#29650) * CSV / Admin Upload Settings (#29709) * allow formData uploads * basic CSV uploads from collections * add dropzone support for collections * allow formData uploads * basic CSV uploads from collections * add dropzone support for collections * Add CSV uploads feature and have postgres and H2 support it (#29636) * Add csv uploads feature and have postgres support it * Add h2 support * Add defsettings * Add table prefix setting * add data upload settings * Add newline * update settings mock * Whether or not uploads are enabled --------- Co-authored-by:
Cal Herries <39073188+calherries@users.noreply.github.com> Co-authored-by:
Callum Herries <hi@callumherries.com> * Create table and insert rows from CSV uploads for postgres (#29677) * WIP create table and insert rows * Add newline * Use multimethods * WIP * Fix postgres * Fix postgres impl * Use detect-schema and add test * Fix load-from-csv arglists * Undo whitespace change * Use empty db instead * Add table and field tests * Remove prn * Uniquify names * newline * Add test for float * Add a test for the table contents * Tidy load-from-csv * Drop the table if loading the csv fails * Drop the table only if loading the csv fails * whitespace * Address SQL injection vulnerability * Use the slugified file-name as the table-name * Fix kondo * Using absolute path instead of relative * Fix kondo * Detect types for empty CSV files appropriately (#29754) * Create models from CSV uploads (#29966) * Wire up CSV uploads, sync the new table Still need to create a model * Check database support for CSV uploads better * Another test * Create model after sync * Fix request with formData * Fix tests * Fix tests * Revert "Fix request with formData" This reverts commit 66f146a41cf42feb34dbb03ed8566fa4220d0642. * Add whitespace --------- Co-authored-by:
Tim Macdonald <tim@tsmacdonald.com> * Fix postgres support for uploads (#29922) * Check write perms for collection (#29976) * Rename metabase.csv -> metabase.upload (#29975) * Rename metabase.csv -> metabase.upload * Add docstring * Rename alias for release.common.upload --------- Co-authored-by:
Callum Herries <hi@callumherries.com> * WIP - 29598 csv status toast (#29757) * temp * generalize StatusListing types * Putting a pin in this for now * poorly done typing * generalizing upload function names * point to real API * Fixing Storybook * Permissions for Status Listing * use formdata and fix types --------- Co-authored-by:
Ryan Laurie <iethree@gmail.com> * Don't support redshift (#29981) * Handle uploads to the root collection (#29985) * Allow the uploads schema to be nil (for MySQL, etc.) (#29987) * CSV upload: fix stack overflow in detect-schema (#29983) * Fix stack overflow error on detect schema * map + vec -> mapv --------- Co-authored-by:
Tim Macdonald <tim@metabase.com> * reload collection data after upload (#30009) * MySQL support for uploads (#29829) * Add MySQL support for uploads * Rename arg to upload-type * Use new ns name * Allow no table-name prefix to be specified and fix tests --------- Co-authored-by:
Tim Macdonald <tim@tsmacdonald.com> * Fix setting descriptions (#30023) * Batch CSV insertion for better performance (#30028) * CSV upload e2e tests (#30005) * add CSV upload e2e tests * update tests * H2 support for uploads (#29828) * Add uploads support for H2 * Rename arg * whitespace * Use new metabase.upload ns name * Fix tests for H2 * Make table and field matching case insensitive * Fix kondo error --------- Co-authored-by:
Tim Macdonald <tim@tsmacdonald.com> * Clear CSV upload state after a while (#30014) * clear upload status after 5s * make async behavior clearer * CSV Upload Dates and Datetimes Types (#30076) * Simple dates * Simple datetimes * Fix coalesce for date and datetime * Add mysql and h2 types * Fix test * Misc cleanup * Fix test --------- Co-authored-by:
Tim Macdonald <tim@tsmacdonald.com> * Fix Kondo (rebase gone wrong) * MySQL test fix * Fix order of Metabot setting * adding unit tests to upload actions and reducers (#30161) * adding unit tests to upload actions and reducers * use fetch-mock * Adding component unit test * Check CSV Upload permissions on the frontend (#30094) * CSV / Admin Upload Settings (#29709) * allow formData uploads * basic CSV uploads from collections * add dropzone support for collections * allow formData uploads * basic CSV uploads from collections * add dropzone support for collections * Add CSV uploads feature and have postgres and H2 support it (#29636) * Add csv uploads feature and have postgres support it * Add h2 support * Add defsettings * Add table prefix setting * add data upload settings * Add newline * update settings mock * Whether or not uploads are enabled --------- Co-authored-by:
Cal Herries <39073188+calherries@users.noreply.github.com> Co-authored-by:
Callum Herries <hi@callumherries.com> * properly check if user can upload to a collection * do some db checking * don't check admin status for upload notification * misc cleanup * fix rebase * add loggedin check to statusListing also combines container + view component into a single file * update unit tests * update tests --------- Co-authored-by:
Cal Herries <39073188+calherries@users.noreply.github.com> Co-authored-by:
Callum Herries <hi@callumherries.com> * Csv/misc bugfixes (#30219) * Support empty header names * Handle long CSV names more appropriately Handle duplicate column names in CSVs * Test fix * Partition CSV inserts a little more intelligently * Test fix * Remove 'duplicate' from duplicated column names * More intelligent sampling * Add comment re. Postgres table-name-length-limit * Quote column names, clean up tests When unquoted, we couldn't use reserved words (true, false, group, etc.) as column names * Fix test Now that we quote things, H2 is case-sensitive * Use dialect-appropriate quoting Also clean up some card-filtering tests so they work with a dirty DB * Fix deduplication * Remove use of setting/get * Remove unneeded migration --------- Co-authored-by:
Callum Herries <hi@callumherries.com> * Fix test (#30383) --------- Co-authored-by:
Ryan Laurie <iethree@gmail.com> Co-authored-by:
Cal Herries <39073188+calherries@users.noreply.github.com> Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com> Co-authored-by:
Callum Herries <hi@callumherries.com> Co-authored-by:
Nick Fitzpatrick <nick@metabase.com>
-
- Apr 18, 2023
-
-
Ariya Hidayat authored
The core logic is still from the release script in bin/release. The change here mostly wiring it up to GitHub Action so that it can be trigged upon a new git tag (during the release process).
-
- Apr 13, 2023
-
-
Braden Shepherdson authored
There are now four families of FE builds: - `build` does a one-shot dev build. - `build-watch` watches for changes and does dev rebuilds; no server. - `build-hot` is `build-watch` plus a development web server. - `build-release` is a one-shot release mode build. Each family has `:cljs` and `:js` variants, to build just one part.
-
Anton Kostenko authored
* Build experimental multi-arch docker image (partially #13119)
-
- Mar 30, 2023
-
-
Ngoc Khuat authored
-
Tim Macdonald authored
* Add ^:multipart option to defendpoint (Allows file uploads) * Add license information * Add CDDL v. 1
-
- Mar 28, 2023
-
-
Cam Saul authored
* Improved implementation * Amazing code cleanup * Cleanup * More tests
-
- Mar 21, 2023
-
-
Roman Abdulmanov authored
-
- Mar 20, 2023
-
-
Tim Macdonald authored
It does the wrong thing when passing in a list of :steps. c.f. discussion at https://metaboat.slack.com/archives/C010L1Z4F9S/p1678905945881399
-
- Mar 13, 2023
-
-
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>
-
- Mar 08, 2023
-
-
dpsutton authored
Occasionally in CI we get ``` “Syntax error compiling at (release/version_info_test.clj:46:26).\nNo such var: json/read-json\n”, ``` from `release.version-info-test`. This namespace requires `[clojure.data.json :as json]` and uses the function `json/read-json` which is deprecated since version 2.x. The way that deprecated function is defined in version 2.0.2 is ```clojure (ns clojure.data.json) ... (load "json_compat_0_1") ``` and in `clojure/data/json_compat_0_1.clj`: ```clojure (in-ns 'clojure.data.json) (defn read-json "DEPRECATED; replaced by read-str. ...) ``` And I guess the way that hawk requires some namespaces we can get into this half loaded, half not finished state and the var is not (yet) defined. So we can just put aside this nonsense and use a non-deprecated var that isn't defined with a `load` statement but in the regular namespace we require.
-
- Mar 07, 2023
-
-
dpsutton authored
Calling our basis function with just :oss or :ee we don't end up with an `:argmap` key. ```clojure uberjar=> (def basis (create-basis :oss)) ,#'build.uberjar/basis uberjar=> (:argmap basis) nil ;; nothing extra in oss uberjar=> (def basis (create-basis :ee)) ,#'build.uberjar/basis uberjar=> (:argmap basis) {:extra-paths ["enterprise/backend/src"]} ;; and if other aliases are used: uberjar=> (def basis' (b/create-basis {:project "deps.edn" :aliases [:dev :test]})) ,#'build.uberjar/basis' uberjar=> (:argmap basis') {:extra-deps {lambdaisland/deep-diff2 {:mvn/version "2.7.169"}, methodical/methodical {:mvn/version "0.15.1"}, io.github.metabase/hawk {:sha "45ed36008014f9ac1ea66beb56fb1c4c39f8342b"}, ....} :extra-paths ["dev/src"...] :jvm-opts ["-Dmb.run.mode=dev" ...] :exec-fn metabase.test-runner/find-and-run-tests-cli} ```
-
- Mar 01, 2023
-
-
Cam Saul authored
* Release script fix * Add test
-
Emmad Usmani authored
-
Cam Saul authored
* Build Script overhaul * Remove stray deps.edn * Include :ci profile for build and release tests * Fix release script * Update markdown dox * Update another dox * Tweakz * Don't pin new version of data.xml to core project, just for build scripts * Ignore unrecognized options * Fix i18n/enumerate
-
- Feb 27, 2023
-
-
Mark Bastian authored
Added post-collection retrieval function `remove-other-users-personal-collections` that will filter out any personal collection that doesn't belong to the current user when the `exclude-other-user-collections=true` path param is used. Also added unit tests for both the `api/collection/` and `api/collection/tree` endpoint.
-
- Feb 23, 2023
-
-
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
-
- Feb 21, 2023
-
-
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>
-
Nemanja Glumac authored
* Expand the glob to include TS(X) files * Use console error * Re-order imports * Print the missing files in red * Fix glob pattern * Add script to pre-commit hooks * Remove the check from CI
-
- Feb 20, 2023
-
-
Nemanja Glumac authored
-
- Feb 17, 2023
-
-
john-metabase authored
* Removes :presto driver and tests * Merges :presto-common into :presto-jdbc * Adds migration to update presto databases to presto-jdbc --------- Co-authored-by:
Cam Saul <github@camsaul.com>
-
Cam Saul authored
* Oracle Honey SQL 2 * Remove debugging function * Fix concat() * Oracle should use numbers for booleans when loading test data
-
- Feb 09, 2023
-
-
Mark Bastian authored
Upgrade to Jetty 11 via https://github.com/sunng87/ring-jetty9-adapter. Required updating from javax servlet packages to jakarta, since jakarta is newer.
-
- Feb 08, 2023
-
-
Cam Saul authored
-
- Jan 27, 2023
-
-
Case Nelson authored
* Script to copy athena jdbc jar to our maven repo Since amazon is still not putting their athena jdbc on to maven, the easiest thing for us to do is setup a maven-y s3 repo and copy their jar into it. This script allows you to run: `./bin/athena.bb <version> [--deploy]` For example: `./bin/athena.bb 2.0.35 --deploy` Will download the 2.0.35 jar from amazon's release bucket, create and update the necessary maven repo files, then upload all those files to our maven repo. It uses the jar build WITHOUT the AWS SDK. You must have `bb` (babashka), `aws` (awscli), and `shasum` commands available. You must have aws credentials available, e.g. through `aws configure` * Add comment explaining script to script * Use iterate instead of loop for find-pred Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com> * Update bin/athena.bb Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com> * Update bin/athena.bb Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com> --------- Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com>
-
- Jan 23, 2023
-
-
john-metabase authored
* Fixes MongoDB OrderedMap encoding with nippy * Removes flatland/ordered from build-drivers deps
-
- Dec 29, 2022
-
-
Noah Moss authored
* standardize ns formatting in all src/ namespaces * small fixes * test formatting * enterprise files * fix whitespace linter error * fix kondo error * bin files * reformat shared files * fix errors * fix another error * mostly fix import to use parenthesis and have it at a new line * fix wrong spacing Co-authored-by:
Ngoc Khuat <qn.khuat@gmail.com>
-
- Dec 21, 2022
-
-
john-metabase authored
* Start-of-cycle 46 basic dependency version bump Some dependencies with available major version bumps are only updated to the latest minor version of the current major version. Some additional dependencies will be updated in future PRs. * Removes commons-lang from sparksql deps exceptions * Fixes MongoDB SRV test for monger 3.6.0 * fixes SQLite datetime tests for new driver version 3.40
-
- Dec 15, 2022
-
-
john-metabase authored
-