This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Apr 05, 2021
-
-
Nemanja Glumac authored
-
Nemanja Glumac authored
-
Paul Rosenzweig authored
This reverts commit c34fa2c0.
-
Cam Saul authored
-
Nemanja authored
-
Nemanja authored
-
Nemanja authored
-
Nemanja authored
-
Nemanja Glumac authored
-
- Apr 04, 2021
-
-
Luis Paolini authored
* Fix EE Dockerhub for once and for all * Try to overload the ARG attribute * Kick the CI
-
- Apr 02, 2021
-
-
Cam Saul authored
-
dpsutton authored
* Throw an error if a setting already exists ```clojure setting-test=> (defsetting site-name (deferred-tru "A testing setting") :visibility :public) Execution error (ExceptionInfo) at metabase.models.setting/register-setting! (setting.clj:464). Setting :site-name already registered in metabase.public-settings setting-test=> (pprint (ex-data *e)) {:existing-setting {:description "The name used for this instance of Metabase.", :cache? true, :default "Metabase", :name :site-name, :type :string, :sensitive? false, :tag java.lang.String, :namespace metabase.public-settings, :visibility :admin}} nil ``` * Tests in ci are run from user * Appease eastwood; don't shadow function `setting-name` this pattern is exactly what the helpful protocol does. i actually wanted to call that protocol but it throws an error if it doesn't exist which is a bit much for our purposes * Move namespace name into setting information
-
Paul Rosenzweig authored
-
Tim Macdonald authored
-
Jeff Evans authored
Only attempt to sync schemas that have some/any possible permissions Make syncable-schemas multimethod, whose base implementation is the same as the previous private fn Override syncable-schemas for Redshift to add a filtering step to the transducer pipeline to check for the schema privilege, by calling the HAS_SCHEMA_PRIVILEGE Redshift function to check for USAGE permission Making all-schemas function public since it's now invoked from the Redshift driver Fixing redshift-types-test to remove order flakiness Adding test that confirms that a real schemas with no permissions aren't synced
-
dpsutton authored
```clojure schema=> (->> (ns-publics 'metabase.mbql.schema) (keep (fn [[s v]] (:clause-form (meta v)))) (run! pprint)) [:not-null :field Field] [:interval :n s/Int :unit RelativeDatetimeUnit] [:regex-match-first :s StringExpressionArg :pattern s/Str] [:var :field-or-expression FieldOrExpressionDef] [:does-not-contain :field StringExpressionArg :string-or-field StringExpressionArg :options (optional StringFilterOptions)] [:= :field EqualityComparable :value-or-field EqualityComparable :more-values-or-fields (rest EqualityComparable)] [:log :x NumericExpressionArg] [:< :field OrderComparable :value-or-field OrderComparable] [:floor :x NumericExpressionArg] [:metric :metric-id (s/cond-pre helpers/IntGreaterThanZero helpers/NonBlankString)] [:ends-with :field StringExpressionArg :string-or-field StringExpressionArg :options (optional StringFilterOptions)] [:relative-datetime :n (s/cond-pre (s/eq :current) s/Int) :unit (optional RelativeDatetimeUnit)] [:sum :field-or-expression FieldOrExpressionDef] [:time-interval :field field :n (s/cond-pre s/Int (s/enum :current :last :next)) :unit RelativeDatetimeUnit :options (optional TimeIntervalOptions)] [:rtrim :s StringExpressionArg] [:ceil :x NumericExpressionArg] [:starts-with :field StringExpressionArg :string-or-field StringExpressionArg :options (optional StringFilterOptions)] [:<= :field OrderComparable :value-or-field OrderComparable] [:upper :s StringExpressionArg] [:* :x NumericExpressionArg :y NumericExpressionArg :more (rest NumericExpressionArg)] [:min :field-or-expression FieldOrExpressionDef] [:inside :lat-field OrderComparable :lon-field OrderComparable :lat-max OrderComparable :lon-min OrderComparable :lat-min OrderComparable :lon-max OrderComparable] [:ltrim :s StringExpressionArg] [:desc :field FieldOrAggregationReference] [:contains :field StringExpressionArg :string-or-field StringExpressionArg :options (optional StringFilterOptions)] [:expression :expression-name helpers/NonBlankString] [:is-empty :field Field] [:substring :s StringExpressionArg :start NumericExpressionArg :length (optional NumericExpressionArg)] [:stddev :field-or-expression FieldOrExpressionDef] [:> :field OrderComparable :value-or-field OrderComparable] [:replace :s StringExpressionArg :match s/Str :replacement s/Str] [:sqrt :x NumericExpressionArg] [:concat :a StringExpressionArg :b StringExpressionArg :more (rest StringExpressionArg)] [:count-where :pred Filter] [:- :x NumericExpressionArg :y NumericExpressionArgOrInterval :more (rest NumericExpressionArgOrInterval)] [:asc :field FieldOrAggregationReference] [:cum-count :field (optional Field)] [:value :value s/Any :type-info (s/maybe ValueTypeInfo)] [:or :first-clause (s/recursive #'Filter) :second-clause (s/recursive #'Filter) :other-clauses (rest (s/recursive #'Filter))] [:exp :x NumericExpressionArg] [:time :time (s/cond-pre java.time.LocalTime java.time.OffsetTime) :unit TimeUnit] [:between :field OrderComparable :min OrderComparable :max OrderComparable] [:sum-where :field-or-expression FieldOrExpressionDef :pred Filter] [:not :clause (s/recursive #'Filter)] [:cum-sum :field-or-expression FieldOrExpressionDef] [:coalesce :a ExpressionArg :b ExpressionArg :more (rest ExpressionArg)] [:is-null :field Field] [:/ :x NumericExpressionArg :y NumericExpressionArg :more (rest NumericExpressionArg)] [:>= :field OrderComparable :value-or-field OrderComparable] [:not-empty :field Field] [:distinct :field-or-expression FieldOrExpressionDef] [:percentile :field-or-expression FieldOrExpressionDef :percentile NumericExpressionArg] [:round :x NumericExpressionArg] [:power :x NumericExpressionArg :y NumericExpressionArg] [:aggregation-options :aggregation UnnamedAggregation :options AggregationOptions] [:+ :x NumericExpressionArg :y NumericExpressionArgOrInterval :more (rest NumericExpressionArgOrInterval)] [:abs :x NumericExpressionArg] [:median :field-or-expression FieldOrExpressionDef] [:share :pred Filter] [:case :clauses CaseClauses :options (optional CaseOptions)] [:segment :segment-id (s/cond-pre helpers/IntGreaterThanZero helpers/NonBlankString)] [:max :field-or-expression FieldOrExpressionDef] [:!= :field EqualityComparable :value-or-field EqualityComparable :more-values-or-fields (rest EqualityComparable)] [:count :field (optional Field)] [:lower :s StringExpressionArg] [:length :s StringExpressionArg] [:trim :s StringExpressionArg] [:and :first-clause (s/recursive #'Filter) :second-clause (s/recursive #'Filter) :other-clauses (rest (s/recursive #'Filter))] [:avg :field-or-expression FieldOrExpressionDef] [:aggregation :aggregation-clause-index s/Int] nil schema=> ```
-
Nemanja Glumac authored
-
Luis Paolini authored
* Add Kyrgyz Som to currency list * Show currency selector in Native Queries
-
Nemanja Glumac authored
* Switch the rule to "error" * Disable linting for `prop-types` in unit tests * Disable linting for `prop-types` in all affected files
-
Nemanja Glumac authored
* Upgrade Cypress to v6.8.0 (latest) * Fix failing test in CI * Fix the problem where Cypress does not render Nav bar locally More info: - https://www.eliostruyf.com/tests-running-iframe-cypress-e2e-tests/ - https://docs.cypress.io/faq/questions/using-cypress-faq#Is-there-any-way-to-detect-if-my-app-is-running-under-Cypress
-
Robert Roland authored
To address connection pools that go beyond the maxPoolSize of 15, reduce the maxIdleTimeExcessConnections so it'll start to pare back the pool towards minPoolSize sooner. See swaldman/c3p0#65 for an explanation. Resolves metabase/metabase#8679
-
Howon Lee authored
-
- Apr 01, 2021
-
-
Cam Saul authored
* Explicitly specify %throwable in Log4j logging pattern so the ex-data gets printed This tweaks means Exceptions get rendered for logging with .toString instead .getMessage. See https://github.com/clojure/tools.logging/tree/31073fe1fbb0533f3c775fa667de70809f24b127#log4j2 and https://logging.apache.org/log4j/2.x/manual/layouts.html#Patterns * Remove ad-hoc query perms check on save logic from metabase.models.card. We already do this in metabase.api.card, so in practice this is redundant code. * Better permissions exceptions when missing ad-hoc perms for creating/updating a Card * Fix #11719 * Return more info with most API exception responses * Add tests for #11719 and #14931 * Fix namespace lint errors * Fix error message grammar (thanks @jeff303)
-
Cam Saul authored
Fix druid throwing "Invalid type marker byte 0x3c for expected value token" errors if limit is 1048575 (#15452) * Better error logging for druid * Apparently Druid queries don't like the number 1058575 * Test fix
-
Alexander Lesnenko authored
-
Cam Saul authored
-
Alexander Lesnenko authored
-
Luis Paolini authored
* Bumped Lein 2.8 with 2.9.5 in CircleCI image Simplify executors (all use the unified image now) * Pinning down to specific container * [ci nocache]
-
Jeff Bruemmer authored
-
Walter Leibbrandt authored
-
Cam Saul authored
-
- Mar 31, 2021
-
-
Cam Saul authored
-
Cam Saul authored
* Fix SAML redirect to /collection/root/ * Test util HTTP client should automatically URL-encode query parameters. * Simplify HTTP client * Minor tweaks * Remove *url-encode-query-parameters?* * experimental CI fix: cache build script deps * Fix typo * Fix Circle config again * Fetch BE deps if deps.edn files change * Use CI executor for be-deps, so we have the Clojure CLI
-
Cam Saul authored
* Bump a few dep versions and add missing exclusions * Fix export timezones; fix Excel time values * Text fixes & other improvements * Test fix
* Move some XLSX/CSV specific tests into appropriate test namespaces * Fix SQLite parsing of date-only values * address PR feedback -
Cam Saul authored
-
Cam Saul authored
-
Alexander Lesnenko authored
* disable submit button on pristine user settings form * replace using dirty state with pristine state inside admin panel forms
-
Dalton authored
-
Tim Macdonald authored
* Set lein as the preferred build tool for Cider * Add search-typeahead-enabled setting
-
Dalton authored
-