This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Mar 04, 2020
-
-
Cam Saul authored
* Upgrade Jetty version * Remove async-wait middleware * Move re= test macro * Add mt/user->credentials alias * Convert metabase.server-test to new style * Rework dataset-test to use metabase.test * Use atom instead of agent for tracking in-flight queries * Streaming QP context should correctly pass the canceled-chan created by StreamingResponse * Save query executions synchronously * i18n the query logs * Reworked StreamingResponse * Almost working
* Test fixes * Test impl & some perf improvements * Test/lint fix -
Tom Robinson authored
-
- Mar 03, 2020
- Mar 02, 2020
- Feb 26, 2020
-
-
Walter Leibbrandt authored
* Port tests from expectations to clojure.test * Fix docstring * Added :question template tag type with lookup * s/question/card/ * Fix typo: s/substitue/substitute/g * Wrap card query parameter data in a record Just like `FieldFilter`s. * Unrelated: Improve test layout * Add substitution of card query parameters in queries This implementation is incomplete. * Finish substitution of card query in parent query * Basic FE support for question template tags * Update card ID on tag name update Also, don't use `\d` in regexes. * yarn prettier * Add support for MBQL queries in template tag lookup * Return query strings directly as tag value * Fix query type lookup * Initialize QP store for MBQL→native conversion * Fix MBQL to native query conversion * Port tests from expectations to clojure.test * Add middleware to resolve tables/fields from referenced cards This needs to happen before `substitute-parameters` in the QP pipeline, so that `substitute-parameters` can convert any MBQL queries (from referenced cards) into native queries. Maybe it should be consolidated with the other resolution steps. * Use mbql-query util instead of manual query def * Add docstring to now public function * Remove unused import * Fix docstring positioning
* Clean ns declaration * Convert tests to clojure.test * Be more specific about errors we're looking expecting Invalid queries caused unexpected exceptions to be thrown when checking permissions. * Recursively check permissions of referenced queries * Add incomplete test [WIP] * Finish permission check test for referenced MBQL queries * Add tests for referenced native queries perms check * Clean ns * Use existing mbql-to-native middleware Rather than calling driver-specific `mbql->native` directly. * Fix formatting * Use more comprehensive qp func for converting query to native * front end updates * Check that all referenced queries are from the same db * Add test for checking db id of referenced MBQL query * Clean ns * add metadata and better error states to UI * move error message beneath the question picker * Combine `vals`+`filter`+`map` into a single `keep` * Rename `CardQuery`→`ReferencedCardQuery` * Cosmetic: fix typo and formatting * Test substitution of multiple sub-queries * Test CTE syntax substitution of multiple sub-queries * Clean ns * Clean ns * Simplify referenced card substitution tests * Test recursive sub-query substitution * Cosmetic: typos * Fix parameter names in comments * Check that queries don't include circular sub-queries * Clean ns * Give users a more user-friendly error for circular referencing sub-queries * Test referencing queries with parameters * Update src/metabase/query_processor/middleware/resolve_referenced.clj Co-Authored-By:Maz Ameli <maz@metabase.com> * Fix error message and combine card name queries * Wrap sub-query error in a more user friendly explanation * Cosmetic: function argument alignment * Test error handling of referenced sub-queries * Remove unused 1-arity version of `card-subquery-graph` * Cosmetic: indentation * Normalize l10n of error messages * Reuse functions for looking up referenced cards from query * implement FE PR feedback * card -> card_id backend changes * fix tests * fix another test * disallow space between # and number * Align new middleware with newer QP architecture * Align sub-query error handling with the new QP It seems like exceptions are handled more consistently in the new QP, so we can be less hacky. * (Re)wrap sub-query errors in user-friendly expalanation * Rename `xformf`→`rff` to align with QP changes * force cypress click on select placeholder * move popover attachement and cap its height * icon spacing * customize highlighting for template tags Co-authored-by:
Paul Rosenzweig <paulrosenzweig@users.noreply.github.com> Co-authored-by:
Maz Ameli <maz@metabase.com>
-
- Feb 25, 2020
- Feb 20, 2020
-
-
Cam Saul authored
* Fix streaming downloads -- send correct headers * Don't include file download headers for normal QP API responses * GZIP compress streaming responses * Startup perf improvement
-
- Feb 19, 2020
- Feb 06, 2020
-
-
Tom Robinson authored
-
- Feb 04, 2020
-
-
Cam Saul authored
-
- Feb 03, 2020
-
-
Cam Saul authored
* Fix test failures [ci drivers] * Test fixes [ci drivers]
-
Simon Belak authored
Cast nominator to to float when doing integer division
-
- Jan 30, 2020
-
-
Daniel Higginbotham authored
202 status for all streaming endpoints, closes #11783
-
Simon Belak authored
-
- Jan 27, 2020
-
-
Walter Leibbrandt authored
* Improve error message for invalid Google auth token * Don't include punctuation in link text * Add tip about providing full Google client ID * Update test to check for updated error message
-
Daniel Higginbotham authored
mechanism for the FE to handle exceptions when response is streaming
-
- Jan 22, 2020
- Jan 21, 2020
-
-
Cam Saul authored
* Add MySQL latest, MariaDB 10.2, and MariaDB latest to CI [ci mysql] * Add upper limit to number of results returned by GET /api/search endpoint * Rewrite tests in metabase.api.search-test to use new style * Rework DB & test component init code so they can be retried after failing without having to restart REPL/redefine vars * Log application DB product/version info; include in troubleshooting info * Log DB version info when starting tests
-
Tom Robinson authored
* Fix logic for getting card database/table when using nested queries. Resolves #11496 * Add tests for fix
Co-authored-by:Cam Saul <1455846+camsaul@users.noreply.github.com>
-
- Jan 17, 2020
- Jan 16, 2020
-
-
Cam Saul authored
-
- Jan 14, 2020
-
-
Cam Saul authored
[ci postgres]
-
Cam Saul authored
Works around upstream bug in Postgres JDBC driver pgjdbc/pgjdbc#425 Also includes a lot of test reformatting/cleanup
-
Daniel Higginbotham authored
close #10469
-
Daniel Higginbotham authored
convert messages_test to use clojure.test, simplify test a little
-
- Jan 13, 2020
-
-
Cam Saul authored
-
Tim Pope authored
`expect` picks a function name based on a hash of the form, which means that all four functions defined by `expect-for-response-formats` share the same name and only the last actually runs. This change gives each function a unique name.
-
Daniel Higginbotham authored
use custom column names in pulses
- Jan 10, 2020
-
-
Cam Saul authored
* Fix BigQuery driver from Leiningen [ci bigquery] [ci sparksql] (#11650) * Fix SQL Server field filters against boolean Fields. [ci drivers] * Test fixes for drivers with no TIME data type [ci oracle] [ci presto] [ci redshift] [ci snowflake] [ci sparksql] * Fix boolean field filters for Oracle [ci oracle] [ci sparksql]
-