This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Jul 30, 2021
-
-
Dalton authored
* Update babel dependencies to latest * Remove some old babel dependencies The dependencies in this commit include dependencies that have been renamed, such as babel-cli which is now @babel/cli. It also includes dependencies that have been replaced, such as babel-preset-stage-0 and its ilk, which have been replaced with @babel/preset-env. * Remove babel-register dependency This is referenced in our webpack.config.js file. I don't think we need Babel in our Node envionment, but I could be wrong, so leaving this as a separate commit. * Remove @babel/standalone and dependent code We're using @babel/standalone to support the writing of JSX in our internal-only ScratchApp editor. Unfortunately, this dependency is large--1.5mb not gzipped--and our current build does not intelligently split bundles, meaning our users our burdened by the size of this dependency whenever they must redownload the Metabase JS bundle. I'm removing it. We should still be able to write JS in the ScratchApp, but JSX no longer. * Add @babel/node to dev deps Needed by a cypress command * Add browserslist config Babel's preset-env dep needs this config to determine how to transform our JavaScript. By default I believe it ends up defaulting to "defaults." "defaults" is equivalent to the following rules: > 0.5%, last 2 versions, Firefox ESR, not dead A comma between rules represents a UNION operator. Per https://www.metabase.com/docs/latest/faq/general/supported-browsers.html we have deprecated IE 11 so I am including that explicitly in our browserslist. * Update babelrc plugins and presets - Replaced presets with preset-env and preset-react - Updated the names of some plugins, like transform-decorators-legacy, which is now @babel/plugin-proposal-decorators with an explicit "legacy: true" passed in the config. - Removed add-react-displayname because it is included in preset-react - Removed transform-builtin-extend because it is included in preset-env* - Removed syntax-trailing-function-commas because it is supported by all browsers we support * note: There is a "loose" config option for handling the extension of builtin classes. We may need it, but I am not sure. * Update babel cli args Replace -q with --quiet because -q no longer exists * Fix circular dep in auth.js by making it async Our app unfortunately contains MANY circular dependencies. Some, like this one, caused problems when the app instantiates because the "refreshCurrentUser" method is undefined when auth.js is initially run. While we should in the future avoid having circular deps in the first place, making them run async by requiring the dep and function run-time fixes this particular issue. * Fix circular dependency in metabase/redux/requests.js The handleActions and createAction methods imported from "metabase/lib/redux" are actually just methods from the "redux-actions" dependency... so importing those methods directly from that dep fixes this circular dependency problem. * Remove references to global.services and exports in metabase/services This line breaks the build. Git blame says the line is 5 years old, and I wouldn't expect such code to be used with how our app now requires deps. * Fix MBQLArrayClause problem caused by Array extension * Explicitly pass args from flatMap to function via anonymous cb I think the old Array.prototype.flatMap prototype must've had different args. They are now "currentValue, index, array" so when we passed it "enumeratePaths" as a callback, the second arg of enumeratePaths gets set to a number. This breaks the logic of enumeratePaths because it is a recursive function that depends on that second arg getting initialized as an empty array by default. * Remove code that spreads non-iterable value in array New Babel is stricter about handling this sort of code that doesn't match the JS spec. You can't spread an undefined value inside of an iterator. * Update jest and babel-jest to latest Updating Babel breaks our unit tests. Updating nothing causes every test to fail due to a Babel version mismatch. Updating only babel-jest causes the following error: TypeError: Jest: a transform must export a `process` function There may be a way around updating Jest, but updating it does not appear to be too difficult. * Set the testEnvironment to jsdom This was the default testEnvironment in our old version of jest. At some point the default was changed to node. * Remove unfinished "pending" unit tests I'm unfamiliar with this pending function, but the function no longer exists, causing the tests to fail. * don't pass async callback to describe * Update name of runTimersToTime to advanceTimersByTime * Fix incorrectly nested unit test * mock SVGElement.prototype.getBBox method * Don't return values in describe callback * Move variable declaration to above usage * Fix prettier error * Upgrade `documentation` library to the latest version (13.x.x) This library was the only one left that was still using Babel 6. * Return an MBQLClause instance after using Array methods * remove 'not IE 11' from browserslist * Remove mock that breaks unit test Co-authored-by:
Nemanja <31325167+nemanjaglumac@users.noreply.github.com>
-
- Jul 29, 2021
-
-
Noah Moss authored
-
Noah Moss authored
-
Cam Saul authored
* Fix some Eastwood failures * Fix a lot of Eastwood errors now that it runs against test namespaces [ci skip] * Run Eastwood against test namespaces [WIP] * Bump Eastwood version to fix some errors in Eastwood itself * Fix another lint warning * Fix test failure * More test fixes
* Fix all the warnings! * Test fix * Bump Eastwood GH action timeout to 20 minutes (!) -
Jeff Bruemmer authored
-
- Jul 28, 2021
-
-
Cam Saul authored
-
Alexander Lesnenko authored
-
Alexander Lesnenko authored
* auto cherry pick to release branch on merge into master * rename workflow, label
-
Anton Kulyk authored
-
Anton Kulyk authored
-
dpsutton authored
-
Anton Kulyk authored
-
Anton Kulyk authored
* Rename collection's plugin `formFields` * Add tests for collection type field visibility * Limit collection types visibility * Fix cypress tests
-
Anton Kulyk authored
* Add icon prop to LegendItem * Add icon prop to LegendHeader components * Add headerIcon prop to Visualization * Add headerIcon prop to DashCard * Display official badge on questions in regular dashboards * Add headerIcon prop to Funnel * Add headerIcon prop to LineAreaBarChart * Extract hasLegendHeader variable * Pass headerIcon to visualisations with custom header * Add E2E tests * Add Icon prop-types * Use imported Icon prop-types * Fix post-rebase issue
-
Anton Kulyk authored
* Add `update_collection_tree_authority_level` field * Add authority level tree update * Test authority level children bulk update
-
Anton Kulyk authored
* Add getCollectionIcon function * Add isRegularCollection function * Display official badge in collections sidebar * Don't dim official badge icon in collections sidebar * Show root collection icon * Use `CollectionsList.Icon` for "All personal collections" * Fix CollectionBadge icon color * Display official collection badge in search results * Test official badge displayed correctly in sidebar * Test official badge is shown throughout the app * Show official badge icon in SavedQuestionPicker * Use existing isPersonalCollection utility * Show official badge icon in QuestionPicker * Show official badge icon in CollectionPicker * Minor CollectionIcon refactoring * Use function declaration for isRegularCollection * Add editCollection test helper * Add changeCollectionTypeTo helper * Remove duplicated assertions * Add helper to create official collection * Add testOfficialBadgeInSearch helper
-
Anton Kulyk authored
* Add badge icon * Add empty PLUGIN_FORM_WIDGETS * Add empty PLUGIN_COLLECTIONS * Extract `getWidgetComponent` from FormWidget * Allow adding EE-only form widgets * Add `authority_level` field to collections * Fix SegmentedControl's `value` prop-type * Specify icon sizes for SegmentedControl's options * Add FormCollectionAuthorityLevel form widget * Add `PLUGIN_COLLECTION_COMPONENTS` * Add CollectionAuthorityLevelIcon * Move ToggleMobileSidebarIcon out of PageHeading * Display official badge on collection page * Add authority level to collections plugin * Rename `AUTHORITY_LEVELS` to `EE_AUTHORITY_LEVELS` * Patch collections plugin with EE authority levels * Fix authority level value for new collection form * Add `cy.createCollection` command * Add `describeWithoutToken` Cypress helper * Test user can manage collection authority level * Test collection types available only in EE * Run prettier * Keep regular collection opts in AUTHORITY_LEVEL * Fix test comment * Translate collection type names * Avoid aliasing regular authority level
-
Anton Kulyk authored
-
Greg Wilson authored
* Outlining items for troubleshooting guide for sandboxing. * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com> * Incorporating minor suggestions * Incorporating comment from @flamber * Converting sandboxing troubleshooting guide to prose * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com> * Johannes' fixes * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/sandboxing.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Jeff's edits Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com> Co-authored-by:
Jeff Bruemmer <jeff@metabase.com>
-
Alexander Lesnenko authored
-
Greg Wilson authored
* Minor fixes to performance troubleshooting guide * Update docs/troubleshooting-guide/performance.md Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com> * Fixing a few small issues with the performance troubleshooting guide. * Another fix to performance troubleshooting Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com>
-
- Jul 27, 2021
-
-
Cam Saul authored
-
Cam Saul authored
* Enable clj-kondo failures on missing docstring; remove bikeshed * Add missing docstrings
-
Alexander Lesnenko authored
* Fix image is rendered as url when there is a click behavior for the column * add unit spec repro
-
Alexander Lesnenko authored
* Fix people dropdown goes outside of the screen * unskip repro
-
Alexander Lesnenko authored
-
Greg Wilson authored
* First draft of performance troubleshooting guide. * Update docs/troubleshooting-guide/performance.md Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com> * Update docs/troubleshooting-guide/performance.md Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com> * Update docs/troubleshooting-guide/performance.md Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com> * Incorporating @flamber suggestions * Updating troubleshooting guide Co-authored-by:
flamber <1447303+flamber@users.noreply.github.com>
-
Jeff Bruemmer authored
-
Greg Wilson authored
* Editing FAQ. - Minor updates to wording. - Changed a couple of links to point at /learn articles. - Regularizing title levels. - Moved all out-of-page links into page foot to simplify consistency checking. * Update docs/faq/general/do-we-need-a-data-processing-agreement.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/does-metabase-do-x.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/does-metabase-have-access-to-my-companys-data.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/how-do-i-ask-for-help.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/is-metabase-508-compliant.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/is-metabase-508-compliant.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/is-metabase-508-compliant.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/using-metabase/cant-access-data-i-need.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/using-metabase/i-am-not-getting-email-notifications.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/using-metabase/how-do-i-reset-my-password.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/using-metabase/how-do-i-ask-questions.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/using-metabase/how-do-i-answer-questions-with-joins.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/supported-browsers.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/what-if-i-find-a-bug.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/general/what-languages-can-be-used-with-metabase.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/setup/how-do-i-integrate-with-sso.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/setup/i-am-having-trouble-running-metabase.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/setup/what-is-h2.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/setup/which-databases-does-metabase-support.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/using-metabase/cant-access-data-i-need.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/faq/using-metabase/how-do-i-answer-questions-when-data-is-in-multiple-databases.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> Co-authored-by:
Jeff Bruemmer <jeff@metabase.com>
-
- Jul 26, 2021
-
-
Ariya Hidayat authored
extend is deprecated, see the previous PR #17048
-
Greg Wilson authored
* First editing pass through troubleshooting guide * Update docs/troubleshooting-guide/application-database.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/application-database.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/application-database.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/timezones.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/application-database.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/datawarehouse.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/docker.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Update docs/troubleshooting-guide/index.md Co-authored-by:
Jeff Bruemmer <jeff@metabase.com> * Moving comma Co-authored-by:
Jeff Bruemmer <jeff@metabase.com>
-
Nemanja Glumac authored
-
Anton Kulyk authored
-
Nemanja Glumac authored
-
Anton Kulyk authored
* Improve prop-types, move to the top of the file * Make FormField a functional component * Simplify default props assignment * Remove redundant comparisons * Add InputContainer component * Extract ALL_DOT_CHARS regexp for form field id * Simplify Label * Extract rootClassNames * Fix formFieldId * Fix FormField prop type
-
- Jul 23, 2021
-
-
Dalton authored
* add question details sidebar (code from bucm) update some cy tests rmv moderation-related code rmv padding on description merge history button logic into label lint fix update some clicks in cy tests update styles to use styled-components fix more cy tests rmv unused component rmv unused reference rmv unused prop remove styling code that is no longer necessary rmv extraneous space fix translation rmv added util class move styled component to own file * add revision util tests * rmv some unneeded question panel styling * move files into query_builder directory * rearrange stuff in file * ClampedDescription unit test * add QuestionActionButtons unit tests * add SavedQuestionHeaderButton test * add QuestionActivityTimeline tests * tweak/improve props/propTypes * fix cy test referencing question description * fix revision history cy test * Question sidebar visual polish (#16942) * style tweaks * restyle Revert button * add a little breadcrumb spacing * make LastEditInfoLabel use Badge instead of TextButton * bring back TextButton * Revision History => History * fix activity timeline unit test * rmv unused styled components Co-authored-by:
Dalton Johnson <daltojohnso@users.noreply.github.com> * hide 'add a description' button when read only * update permissions cy tests * update ClampedDescription unit test * use size enum instead of boolean * move export to bottom of file * move modal magic strings to a constants file * clobber all qb state when reloading * Fix reversion cy tests Co-authored-by:
Maz Ameli <maz@metabase.com>
-
Jeff Evans authored
Implement JDBC based Presto driver Adding new Presto JDBC driver using the PrestoDB JDBC driver from `https://github.com/prestodb/presto` Marking the old Presto driver as being `superseded-by` the new one Pulling out common Presto code into new presto-common driver (modeled after the relationship between, ex: `googleanalytics` and `google)` Putting common QP/HoneySQL logic into the new (abstract) :presto-common driver Updating :presto driver to extend from the new common driver and only adding HTTP/REST API related methods Adding implementation of Presto JDBC driver, named :presto-jdbc, extending from :presto-common and :sql-jdbc Using com.facebook.presto/presto-jdbc as underlying JDBC driver dependency (since this is explicitly for Presto clusters, as opposed to Trino) Adapting code from the existing Presto driver where appropriate Adding new dependency-satisfied? implementation for :env-var, to allow for a plugin to require an env var be set, and making the Presto JDBC driver depend on that (specifically: `mb-enable-presto-jdbc-driver`) Adding CircleCI configuration to run against the newer Presto (0.254) Docker image Adding explicit ordering in a few tests where it was missing Fixing presto-type->base-type (timestamps were being synced as :type/Time because the regex pattern was wrong) Add tx/format-name test implementation for :presto-jdbc to lowercase table name Make modified test Oracle friendly Fixing bug parsing the `[:zone :time]` case within `metabase.util.date-2.parse/parse-with-formatter`; the offset is nil so it can't be passed directly in this case, so use the `standard-offset` fn (which was moved from `date-2` to `common` to get a standard offset for that zone Fixing more test failures by adding explicit ordering Changing sync to check whether the driver supports foreign keys before attempting to sync those (since drivers might throw an exception if attempting to check) Moving some common test dataset functionality between :presto and :presto-jdbc to a new test.data ns for :presto-common Adding HoneySQL form for :count-where, since we have to explicitly give a higher precision Decimal in order for Presto to not reduce the precision in results Put limit within subquery for `expression-using-aggregation-test` (since ordering from subquery is not guaranteed in Presto) Adding impls for ->prepared-substitution to handle substitutions for native query params Adding HoneySQL impls for `mod` (to do as "mod(x,y)" and `timestamp` (since it's a function with no parens to invoke) functions Adding various `sql.qp/date` impls that use the `AT TIME ZONE` operator to account for report tz, and make bucketing tests happy
-
Nemanja Glumac authored
-
Nemanja Glumac authored
-