This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Aug 28, 2024
-
-
Anton Kulyk authored
-
Oisin Coveney authored
-
-
Raphael Krut-Landau authored
fix(admin/performance): Ensure that the strategy form is not considered dirty if the user changes an empty field to that field's default value, or vice versa (#46543)
-
lbrdnk authored
-
Braden Shepherdson authored
Previously, truncating a `:type/DateTime` column by `:month` or `:day` would return a `:type/Date`, which subtly broke the query. In particular, if you try to order-by the breakout column `Created At (month)` then it would not get de-duplicated, causing a SQL error about conflicting ORDER BY clauses. Fixes #46992.
-
Uladzimir Havenchyk authored
-
- Aug 27, 2024
-
-
Alexander Polyankin authored
-
Aleksandr Lesnenko authored
-
Jeff Bruemmer authored
* clarify caching doc * edit
-
John Swanson authored
Previously, `visible-collection-ids` was effectively "free" in that we'd cached `collection-id->collection` for *all* collections, within a single request, and then locally filtered it for permissions without needing to hit the database again. To be honest, there is probably a better fix for this - we're repeatedly calling `visible-collection-ids` when we probably could just save a single copy of it and use it when calculating the effective location of every collection. However, this is a very quick and low-risk fix, and I want to prioritize getting this done, and then we can improve it later. Locally, I copied down the database from stats and timed the `/api/search?model_ancestors=true` endpoint. Before my "speedup" PR (https://github.com/metabase/metabase/pull/46942) it took ~7 seconds to return results. After my "speedup" PR, it took ~15s to return results. :grimace: With this change, it takes 818ms to return results.
-
Alexander Polyankin authored
-
appleby authored
* Fix typo in expression-clause-normalization-test s/time-interval/relative-time-interval/ * Add missing table-id to card def to fix failing legacy-ref-test * Ensure that if yarn test-cljs fails it fails the CI checks When configured to autorun, the command shadow-cljs compile test will exit success even if test failures occur in the node test. See https://github.com/thheller/shadow-cljs/issues/425 In order to ensure our CI checks fail when cljs tests fail, we need to invoke node directly. To prevent running the tests twice, remove `:autorun true` from the `:test` target in shadow-cljs.edn.
-
Raphael Krut-Landau authored
fix(questions + admin/performance): Improve Clear cache button text and question refresh button tooltip (#46791)
-
Jeff Bruemmer authored
-
appleby authored
* zoom-in-timeseries-drill: do not include :hour and :minute for DATE columns When the user attempts to drill through a DATE column, we should not return :hour or :minute drill throughs from available-drill-thrus. Previously we did, which resulted in an error being displayed when the user attempted to select them. Modify next-breakout-unit in zoom_in_timeseries.cljc to not return :hour or :minute units for :type/Date columns, which prevents these from being returned by available-drill-thrus, which prevents them appearing in UI context menus. * Use lib.temporal-bucket/available-temporal-buckets Per review feedback, use lib.temporal-bucket/available-temporal-buckets to get the valid-current-units in metabase.lib.drill-thru.zoom-in-timeseries. * Do not construct zipmap just to lookup the next unit Rather than constructing a zipmap from `valid-current-units', which requires iterating over the seq twice, just traverse the seq once and return the next item in the seq (if any). Constructing a zipmap made sense in the old code because it was constructed once from static data and used many times for lookup. In the new version, the vec of `valid-current-units` is dynamic and dependent on the type of the breakout. * PR suggestion: use threading macro rather than nested sexps Co-authored-by:
Braden Shepherdson <braden@metabase.com> * PR suggestion: use threading macro rather than transducer / eduction * PR suggestion: reduce boilerplate in zoom-in-timeseries tests Reduce code dup by looping over aggregation and bucketing options rather than having a separate deftest for each. --------- Co-authored-by:
Braden Shepherdson <braden@metabase.com> Fixes #39366
-
Nicolò Pretto authored
* use loki to test png exports on questions * try to put the img in the body to see if it fixes the scrollbar issues in ci * fix linting issues * let's try again in ci * Attempt to make CI wait before taking a snapshot for downloaded PNGs * Use the snapshots from CI for PNG downloads * pdf export test thanks to kelvin suggestion about just testing the png * refactored the code to extract a util function * remove pdf tests as they broke in ci
* Update frontend/src/metabase/env.ts Co-authored-by:Phoomparin Mano <poom@metabase.com> * Update frontend/src/metabase/lib/loki-utils.ts --------- Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> Co-authored-by:
Phoomparin Mano <poom@metabase.com>
-
John Swanson authored
-
Tim Macdonald authored
Analyze queries synchronously on save
-
Chris Truter authored
-
Luis Paolini authored
Lotsa fixes for this
-
bryan authored
* entity id translation + tests * add api level test * simplify definition of eid-table->model + add test * update tests to take keywords * improve comment * generate the eid-table->model map * delete now-obsolete test * make it work in oss * put the resulting response into a key, so we can add more information later * formatting * use model names without the model/ prefix as keys * Creates list of `api/model->db-model` - update keys for util/entity_id request - update shape of util/entity_id response - add test for not-found eids * formatting * Respond to code review feedback --------- Co-authored-by:
Oisin Coveney <oisin@metabase.com>
-
github-automation-metabase authored
-
github-automation-metabase authored
Co-authored-by:
Metabase bot <metabase-bot@metabase.com>
-
Ngoc Khuat authored
-
Chris Truter authored
-
Uladzimir Havenchyk authored
-
Chris Truter authored
-
Chris Truter authored
-
Kamil Mielnik authored
* Convert e2e-custom-column-helpers to TS * Refactor createTimeline, createTimelineEvent & createTimelineWithEvents to TS * Fix circular imports
-
- Aug 26, 2024
-
-
appleby authored
Failing after changes in 13983247 Per slack conversation, ok to disable: https://metaboat.slack.com/archives/C013N8XL286/p1724711461313089?thread_ts=1724414568.662469&cid=C013N8XL286
-
Chris Truter authored
-
John Swanson authored
* Don't encrypt boolean settings (by default) We have tooling to disable encryption on settings even when the `MB_ENCRYPTION_SECRET_KEY` is set. Turn it on by default for all boolean settings, which don't need to be encrypted. I also optimized the code that decrypts settings on startup because I didn't want to delay startup if someone had set a bunch of boolean settings. With 20 set, the old version added about 200+ ms to startup, about 10ms per boolean setting, whether or not it was encrypted or in the DB already. The optimized version selects all the never-encrypt values from the database at once (a bit silly, but we also just exclude raw `true` and `false` values so we don't bother checking them) and updates them if they're encrypted - this adds ~40ms to startup with 20 encrypted boolean settings (about 2ms per boolean setting) and ~5ms to startup on subsequent runs, when no encrypted values are in the DB.
-
Braden Shepherdson authored
This testing is too strict to support some legitimate use cases that have no workaround at present. We can bring back this type-checking eventually, once it's possible to correctly express things like automatic coercion of strings to numbers in `SUM` aggregations. Fixes #44431.
-
Uladzimir Havenchyk authored
* fix import order in the files with disabled rules * remove hack * minor
-
Jeff Bruemmer authored
-
Alex Yarosh authored
* serialization clarification * Update docs/installation-and-operation/serialization.md Co-authored-by:
Jeff Bruemmer <jeff.bruemmer@gmail.com> * Update docs/installation-and-operation/serialization.md Co-authored-by:
Jeff Bruemmer <jeff.bruemmer@gmail.com> * Update docs/installation-and-operation/serialization.md Co-authored-by:
Jeff Bruemmer <jeff.bruemmer@gmail.com> * Update docs/installation-and-operation/serialization.md Co-authored-by:
Jeff Bruemmer <jeff.bruemmer@gmail.com> --------- Co-authored-by:
Jeff Bruemmer <jeff.bruemmer@gmail.com>
-
Paul Leclercq authored
Co-authored-by:
Cam Saul <1455846+camsaul@users.noreply.github.com>
-
Daksh Shah authored
-
Bruno Ferreira authored
Seems that `glue:GetCatalogImportStatus` is also needed for the integration with Amazon Athena because there's multiple AccessDenied on cloudtrail if this permission is missing: ``` { "eventVersion": "1.09", "userIdentity": { "type": "IAMUser", "principalId": "***********************", "arn": "arn:aws:iam::*************:user/metabase", "accountId": "**********************", "accessKeyId": "*******************", "userName": "metabase" }, "eventTime": "2024-04-11T08:29:00Z", "eventSource": "glue.amazonaws.com", "eventName": "GetCatalogImportStatus", "awsRegion": "eu-west-1", "sourceIPAddress": "***********", "userAgent": "DriverVersion/02.00.35.1001/JDBCVersion/4.2/PluginName/IAM, aws-sdk-java/1.12.339 Linux/5.10.213-201.855.amzn2.x86_64 OpenJDK_64-Bit_Server_VM/11.0.22+7 java/11.0.22 clojure/1.11.1 vendor/Eclipse_Adoptium cfg/retry-mode/legacy", "errorCode": "AccessDenied", "errorMessage": "An unknown error occurred", "requestParameters": null, "responseElements": null, "requestID": "*************************************", "eventID": "*************************************", "readOnly": true, "eventType": "AwsApiCall", "managementEvent": true, "recipientAccountId": "*************************************", "eventCategory": "Management", "tlsDetails": { "tlsVersion": "TLSv1.3", "cipherSuite": "TLS_AES_128_GCM_SHA256", "clientProvidedHostHeader": "glue.eu-west-1.amazonaws.com" } } ```
-