This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Mar 16, 2021
-
-
Tim Macdonald authored
* Search dashboard descriptions * Restrict dashboardcard_count score to cards * Restrict pinned score to appropriate models * Add fullness-scorer * Kill a silly function * D'oh * Get rid of text-score-max
-
Luis Paolini authored
* Change webpack config Use the parallel:true flag in the Uglify plugin to use all cores in a CPU for minification which greatly improves front end build time. You will now be able to take advantage of that watercooler you asked Santa for Christmas * Kick the build Co-authored-by:
Tim Macdonald <tsmacdonald@gmail.com>
-
Cam Saul authored
Merge 38.1 -> master part 5
-
Nemanja authored
# Conflicts: # enterprise/frontend/test/metabase-enterprise/audit/auditing.cy.spec.js # enterprise/frontend/test/metabase-enterprise/sandboxes/sandboxes.cy.spec.js # frontend/test/metabase/scenarios/admin/settings/localization.cy.spec.js # frontend/test/metabase/scenarios/dashboard/chained-filters.cy.spec.js # frontend/test/metabase/scenarios/dashboard/dashboard.cy.spec.js # frontend/test/metabase/scenarios/public/public.cy.spec.js # frontend/test/metabase/scenarios/question/filter.cy.spec.js # frontend/test/metabase/scenarios/question/native.cy.spec.js # frontend/test/metabase/scenarios/question/view.cy.spec.js
-
Cam Saul authored
-
Ariya Hidayat authored
-
Raimon Grau authored
Provide means to add entities to the application db using specmonstah library. There are 4 main parts to it: - specs for column types (id, names, emails...). Used to generate random values. - specs for entities. Aggregations of types - schema. Structure of the dependency graph. Used by specmonstah to create the entities in the right order, and to link fks between them. - insert. - Generating the entity graph, then removing the `id`s (so the underlying db adds them and the id's don't clash with already existing ones). - Adjust field values that have constraints besides DB ones. - insert to the db using `toucan`.
-
dpsutton authored
* Add lsp and config ```emacs-lisp (use-package lsp-mode :ensure t :hook ((clojure-mode . lsp) (clojurec-mode . lsp) (clojurescript-mode . lsp)) :config (setq lsp-enable-indentation nil) (setq lsp-enable-file-watchers nil) ;; annoying and i can't specify paths ;; add paths to your local installation of project mgmt tools, like lein (dolist (m '(clojure-mode clojurec-mode clojurescript-mode clojurex-mode)) (add-to-list 'lsp-language-id-configuration `(,m . "clojure")))) ``` * Add socket repl support to project.clj (also include reveal) * Configure lsp so that enterprise is on the classpath
-
Cam Saul authored
-
- Mar 15, 2021
-
-
dpsutton authored
* First pass using coercions * Coercions * Handle effective_type coercion_strategy in test data sets * special-type -> semantic type in sample db ```clojure user> (def config (metabase.db.spec/h2 {:db (str "/Users/dan/projects/clojure/metabase/resources/sample-dataset.db" ";UNDO_LOG=0;CACHE_SIZE=131072;QUERY_CACHE_SIZE=128;COMPRESS=TRUE;" "MULTI_THREADED=TRUE;MVCC=TRUE;DEFRAG_ALWAYS=TRUE;MAX_COMPACT_TIME=5000;" "ANALYZE_AUTO=100")})) user> (jdbc/execute! config ["UPDATE _metabase_metadata SET keypath = 'PEOPLE.ZIP.semantic_type' WHERE keypath = 'PEOPLE.ZIP.special_type'" ]) [1] user> (jdbc/execute! config ["UPDATE _metabase_metadata SET keypath = 'REVIEWS.BODY.semantic_type' WHERE keypath = 'REVIEWS.BODY.special_type'" ]) [1] ``` * Correct mismatch in validation preventing sync * fixing up alternative date tests * More passing tests * Tests for values, nested queries, fetch metadata * tests * tests passing * Fixup mongo qp for coercions locally i have some failing tests that are off by 1 errors: Fail in compile-time-interval-test [36m:mongo[0m Make sure time-intervals work the way they're supposed to. [:time-interval $date -4 :month] should give us something like Oct 01 2020 - Feb 01 2021 if today is Feb 17 2021 expected: [{$match {$and [{:$expr {$gte [$date {:$dateFromString {:dateString 2020-10-01T00:00Z}}]}} {:$expr {$lt [$date {:$dateFromString {:dateString 2021-02-01T00:00Z}}]}}]}} {$group {_id {date~~~day {:$let {:vars {:parts {:$dateToParts {:date $date}}}, :in {:$dateFromParts {:year $$parts.year, :month $$parts.month, :day $$parts.day}}}}}}} {$sort {_id 1}} {$project {_id false, date~~~day $_id.date~~~day}} {$sort {date~~~day 1}} {$limit 1048576}] actual: [{"$match" {"$and" [{:$expr {"$gte" ["$date" {:$dateFromString {:dateString "2020-11-01T00:00Z"}}]}} {:$expr {"$lt" ["$date" {:$dateFromString {:dateString "2021-03-01T00:00Z"}}]}}]}} {"$group" {"_id" {"date~~~day" {:$let {:vars {:parts {:$dateToParts {:date "$date"}}}, :in {:$dateFromParts {:year "$$parts.year", :month "$$parts.month", :day "$$parts.day"}}}}}}} {"$sort" {"_id" 1}} {"$project" {"_id" false, "date~~~day" "$_id.date~~~day"}} {"$sort" {"date~~~day" 1}} {"$limit" 1048576}] diff: - [{"$match" {"$and" [{:$expr {"$gte" [nil {:$dateFromString {:dateString "2020-10-01T00:00Z"}}]}} {:$expr {"$lt" [nil {:$dateFromString {:dateString "2021-02-01T00:00Z"}}]}}]}}] + [{"$match" {"$and" [{:$expr {"$gte" [nil {:$dateFromString {:dateString "2020-11-01T00:00Z"}}]}} {:$expr {"$lt" [nil {:$dateFromString {:dateString "2021-03-01T00:00Z"}}]}}]}}] * ee fixes * UI to set coercion type * Don't need to populate effective-type here it actually has knock on effects: - does more work now as almost every field has an update to do in `add-extra-metadata` - we have databases that have state that we don't create. druid for example has stuff to mimic the dataset in tqpt/with-flattened-dbdef on checkins but we don't actually create this. And our dbdef has a field called "date" that is not present in the druid db, so if we attempt to add metadata it fails and kills the rest of the metadata that we add. - tests need this metadata to be present and the error causes field visibilities (for example) to not be set * Docstrings on shared lib * Add effective and coercion to redshift expectations * Fixup google analytics * Derecordize instead of recordize the expectation object details didn't work out well here. they added way more stuff from the db than what is flowing through here. ```clojure actual: {:field {:name "DATE", :parent_id nil, :table_id 69, :base_type :type/Date, :effective_type :type/Date, :coercion_strategy nil, :semantic_type nil}, :value {:type :date/all-options, :value "past5days"}} diff: - {:field {:description nil, :database_type "VARCHAR", :fingerprint_version 0, :has_field_values nil, :settings nil, :caveats nil, :fk_target_field_id nil, :custom_position 0, :active true, :last_analyzed nil, :position 1, :visibility_type :normal, :preview_display true, :database_position 0, :fingerprint nil, :points_of_interest nil}} ``` Object defaults adds quite a bit of stuff such that we'd be dissoc'ing more than we are currently adding in Co-authored-by:
Cam Saul <1455846+camsaul@users.noreply.github.com>
-
Cam Saul authored
-
Kyle Doherty authored
* remove background to make icon identification easier * change color based on pinned status * add type context to items [ci skip] * linkify table and schema info * add collection link and use saved question copy [ci skip] * underline style [ci skip] * incorporate descriptions [ci skip] * show segment descriptions [ci skip] * add context to segments and metrics [ci skip] * fallback description * Update frontend/src/metabase/search/components/SearchResult.jsx Co-authored-by:
Tim Macdonald <tim@metabase.com> * Update frontend/src/metabase/search/components/SearchResult.jsx Co-authored-by:
Dalton <daltojohnso@users.noreply.github.com> * restructure and simplify search result component - simplify jsx structure - show display_name for metrics and segments - remove collection parent info for now - fix show description for collections if they exist * prettier * use capitalize fn * add key for contextText items * extract InfoText * tweak fn name * prettier Co-authored-by:
Tim Macdonald <tim@metabase.com> Co-authored-by:
Dalton <daltojohnso@users.noreply.github.com>
-
Ariya Hidayat authored
* Custom expression: constrain the type for boolean nodes/sub-expressions * Avoid scope conflict
-
Dalton authored
* Don't clobber entire app when react catches an error * Add ErrorCard component * wrap header in ttag
-
Dalton authored
-
Dalton authored
* replace prefix search with contains in parameter value search * Dashboard filters search everywhere, not just the prefix (#15153) Co-authored-by:
Tim Macdonald <tim@metabase.com>
-
- Mar 12, 2021
-
-
Ariya Hidayat authored
* CI: Run clj-kondo linter * Add some more paths
-
Ariya Hidayat authored
-
Luis Paolini authored
* Add container build for metabase-enterprise-head * Add build argument * Delete script to build images
-
Jeff Evans authored
-
Nemanja Glumac authored
* Try to use UI to get to the tables in test
-
- Mar 11, 2021
-
-
Cam Saul authored
* Optimize SQL Server GROUP BY and ORDER BY with :year, :month, or :day bucketing * Avoid unneeded CAST() statements * More tests
* Revert unneeded changes * Test fixes * Don't count MySQL and Postgres driver namespaces for test coverage * Address feedback from @dpsutton; test fixes * Test fixes -
Ariya Hidayat authored
-
Dalton authored
* Refactor ParameterValueWidget Primary goal is to be more precise with what props we pass to the "Widget" component as we are willy-nilly passing props when we don't need to, and I'd prefer to be explicit (and correct) with which props we pass to Widget. Also pulled a few pure functions off the component and replaced the deprecated lifecycle functions we were using. * Add missing proptypes
-
Cam Saul authored
-
Jeff Evans authored
Update Oracle driver to have the `ssl` (boolean) option, with the expectation that any keystore/truststore params have been set as JVM parameters Updating CircleCI config to allow for the following parameters to the `test-driver` orb: - `extra-env`: a string that will be prepended to the `lein test` invocation, in order to set environment variables specifically for that test run. Expected to look like `VAR_NAME=a VAR_NAME_2=b`. Defaults to blank (i.e. nothing). - `test-selector`: a string that represents the Leiningen test [selectors](https://cljdoc.org/d/leiningen/leiningen/2.9.5/api/leiningen.test#test). Defaults to `:all` (i.e., run all tests). Adding RDS root CA truststore file to our resources so that CircleCI (and anyone else, really) can refer to it Defining new `be-tests-oracle-ssl-ee test-driver` task, and is identical to it except for the env vars required to connect via SSL instead (by specifying the RDS root CA trust store). It only runs a few Oracle driver specific tests, not the full suite, since we are really only concerned with connectivity here. Updating Oracle driver docs to discuss relevant JVM params and configuration
-
Tim Macdonald authored
-
Ariya Hidayat authored
-
- Mar 10, 2021
-
-
Howon Lee authored
Turkish i, you won't strike again, hopefully
-
Ariya Hidayat authored
-
Cam Saul authored
Merge 0.38.1 part 3: Merge #15005 into master
-
- Mar 09, 2021
-
-
Nemanja authored
# Conflicts: # enterprise/frontend/test/metabase-enterprise/sandboxes/sandboxes.cy.spec.js # frontend/test/metabase-db/mysql/custom-column.cy.spec.js # frontend/test/metabase/scenarios/admin/datamodel/metadata.cy.spec.js # frontend/test/metabase/scenarios/admin/settings/localization.cy.spec.js # frontend/test/metabase/scenarios/dashboard/dashboard-drill.cy.spec.js # frontend/test/metabase/scenarios/dashboard/x-rays.cy.spec.js # frontend/test/metabase/scenarios/question/custom_column.cy.spec.js # frontend/test/metabase/scenarios/question/filter.cy.spec.js # frontend/test/metabase/scenarios/question/nested.cy.spec.js # frontend/test/metabase/scenarios/question/new.cy.spec.js # frontend/test/metabase/scenarios/question/notebook.cy.spec.js # frontend/test/metabase/scenarios/question/nulls.cy.spec.js # frontend/test/metabase/scenarios/visualizations/drillthroughs/chart_drill.cy.spec.js # frontend/test/metabase/scenarios/visualizations/drillthroughs/dash_drill.cy.spec.js # frontend/test/snapshot-creators/default.cy.snap.js
-
Cam Saul authored
Merge 38.1 part 2 v2
-
Cam Saul authored
-
Tim Macdonald authored
-
- Mar 08, 2021
-
-
Jeff Evans authored
Add test utility fn to find a free port, and call that from test-ssh-tunnel-reconnection-h2 instead of picking a random one
-
- Mar 06, 2021
-
-
Reza Lotun authored
This was duplicated with the "feature or project implementation" template.
-
- Mar 05, 2021
-
-
Kyle Doherty authored
-
Cam Saul authored
* Shared CLJ/CLJS lib (PoC/WIP) * PoC 2.0 * Fixes
* More test fixes * Bump shadow-cljs version * Fix more stuff * Need to ^:export the exports * CI fixes * Add eslintignore * Ignore cljs files for FE code coverage * Try prefixing CLJS -> JS import with goog: * Revert indentation change * No goog: * Add .prettierignore * Use advanced build for now for JS tests unit we can figure out how to make it work
-
- Mar 04, 2021
-
-
Cam Saul authored
-