This project is mirrored from https://github.com/metabase/metabase.
Pull mirroring updated .
- Aug 07, 2024
-
-
lbrdnk authored
* Add :relative-time-interval mbql function * Add relativeDateFilterPartsRelativeTimeInterval * Update display-name-method :relative-time-interval * Update desugar-relative-time-interval * Define relative-time-filter op * Add or update tests * Update tests * Update display-name-method * Update test * Fix positive relative-time-interval shift * Add checkins:1-per-day:60 dataset * Update var name * Bail out from optimization of relative-time-interval desugared filters * Update dataset kondo hook * Generate cache required for kondo hooks in kondo.sh * Rename dataset
-
- Aug 01, 2024
-
-
Chris Truter authored
* Squash * Clean up query modifier for validating card references (#46283) * Fixup bad git merge on test expectation * Tweak docstrings and de-densify logic
-
- Jul 30, 2024
-
-
Uladzimir Havenchyk authored
-
Uladzimir Havenchyk authored
-
- Jul 25, 2024
-
-
Luis Paolini authored
* Make drivers build in parallel rather than sequentially * Make the whitespace linter happy * Add duration to steps
-
- Jul 23, 2024
-
-
Luis Paolini authored
-
- Jul 17, 2024
-
-
Uladzimir Havenchyk authored
-
- Jul 15, 2024
-
-
Ryan Laurie authored
* automate version list update pr * updates * remove release-list babashka script
* Revert "remove release-list babashka script " This reverts commit 372a570f9af030abd6f297116e14568b3b51afa6. * add deprecation message
-
- Jul 08, 2024
-
-
John Swanson authored
* Nicer error messages for linting migrations In general, just throw exceptions instead of using clojure spec here. You'll only get one error per run, but that seems fine. I did keep some specs around, but run them slightly differently. Rather than validating the whole collection of changeSets at once with `s/+`, just `doseq` through the changeSets and validate each one separately. That way, the value that's presented as erroneous is much smaller (a single changeSet) and it's easier to see what went wrong. * Update bin/lint-migrations-file/test/lint_migrations_file_test.clj Co-authored-by:
Noah Moss <32746338+noahmoss@users.noreply.github.com> * Update bin/lint-migrations-file/src/lint_migrations_file.clj Co-authored-by:
Noah Moss <32746338+noahmoss@users.noreply.github.com> * Require preConditions for certain liquibase change types to encourage idempotence (#44578) Co-authored-by:
Ngoc Khuat <qn.khuat@gmail.com> * remove `!`s from non-side-effecty fns * add preConditions to a few v51 migrations --------- Co-authored-by:
Noah Moss <32746338+noahmoss@users.noreply.github.com> Co-authored-by:
Ngoc Khuat <qn.khuat@gmail.com>
-
- May 31, 2024
-
-
Mahatthana (Kelvin) Nomsawadi authored
* Auto tag embedding team for PR review + dry run npm publish * Install changelog generation package * Add the initial changelog * feat(sdk): This is an empty commit. For testing purposes. * Update SDk build script to include changelog * Check if a tag exists * Ensure changelog is in the released package * Fix workflow * Remove unnecessary step * Ensure we can have access to release utils script when checking out master * Fix the step to create a PR updating readme and changelog * Fix changelog generation * Fix couldn't download changelog * Clean up steps
-
- May 30, 2024
-
-
Cam Saul authored
* Remove Google Analytics driver * Remove more GA-related tests * Un-remove tests that aren't related to GA
-
- May 28, 2024
-
-
Anton Kostenko authored
-
- May 17, 2024
-
-
Nemanja Glumac authored
-
- Apr 30, 2024
-
-
Phoomparin Mano authored
* bump react embedding sdk version to 0.1.0 * publish to metabase-embedding-sdk-react using version 0.1.1 * add commands to copy LICENSE and README files to output * use the scoped metabase package * rename file content variable Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> * update embedding sdk package description * update content variable in script Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev> --------- Co-authored-by:
Mahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
-
- Apr 29, 2024
-
-
Phoomparin Mano authored
* add metabase commercial license to embedding-sdk * attach commercial license file to npm package * refactor license file generation
-
- Apr 24, 2024
-
-
Denis Berezin authored
* Isolate click actions * Self review fixes * Add global plugin config * Review fixes * Drill with custom view * Review fixes
-
- Apr 08, 2024
-
-
Cal Herries authored
-
- Apr 04, 2024
-
-
Denis Berezin authored
* Add manual imports fixup * Fixes * Fixes * Review fixes * Review fixes
-
- Apr 02, 2024
-
-
Denis Berezin authored
-
- Feb 06, 2024
-
-
Jeff Bruemmer authored
-
- Jan 31, 2024
-
-
Vamsi Peri authored
Updated the Global Bundle with the content of https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem -O rds-combined-ca-bundle.pem This is the new URL to be used, as described on https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html The new bundle: - removes expired root certificates - keeps certificates for `rds-ca-2019` - adds certificates for all regions for - `rds-ca-rsa2048-g1`: certificate authority with RSA 2048 private key algorithm and SHA256 signing algorithm - `rds-ca-rsa4096-g1`: certificate authority with RSA 4096 private key algorithm and SHA384 signing algorithm - `rds-ca-ecc384-g1`: certificate authority with ECC 384 private key algorithm and SHA384 signing algorithm It fixes #32017 and #27790 Co-authored-by:
Théophile Helleboid <theophile.helleboid.ext@qonto.com>
-
- Jan 18, 2024
-
-
John Swanson authored
Just add a comment warning that the file is autogenerated and not to edit it by hand.
-
- Jan 17, 2024
-
-
Ryan Laurie authored
-
- Jan 09, 2024
-
-
Ngoc Khuat authored
-
- Jan 04, 2024
-
-
Chris Truter authored
-
- Jan 03, 2024
-
-
Ngoc Khuat authored
-
- Dec 20, 2023
-
-
Noah Moss authored
Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com>
-
- Dec 08, 2023
-
-
Cam Saul authored
Use `sorted-set` for `locales.clj` so order doesn't change every time we add a new language (#36617)
-
- Nov 15, 2023
-
-
Cam Saul authored
-
Mahatthana (Kelvin) Nomsawadi authored
* Add fonts in Dockerfile to fix pulses (#31764) Add Noto fonts in Alpine Dockerfile * Fix Docker build command --------- Co-authored-by:
Luis Paolini <paoliniluis@gmail.com>
-
Nemanja Glumac authored
This reverts commit 44de976d.
-
Ngoc Khuat authored
-
- Nov 14, 2023
-
-
Mark Bastian authored
* Adding linter and formatter to staged BE files. Note that `.cljfmt/indents.clj` tries to capture our indent rules and, so far, seems to get things right. There are still some inconsistencies in some of our nses in how we indent assoc(-in) and some t2 functions when it comes to key-value pairs on following lines. Should the keys align with the function call or be indented. Aesthetically, people seem to like indents, but these are functions, so should align with the first argument. IDK that it really matters as long as we have agreement. We may, as we adopt this, have some files be reformatted in unexpected ways for items that have been missed. If so, the developer can simply update the .cljfmt/indents.clj file, rerun the hook, and commit that along with their other changes. * Added whitespace linter. * Updating husky commit hook * Updated hook scripts to be exclusively for staged files. Updated cljfmt to use the latest and greatest along with the new format of config file. * Commenting out the actual formatting hook in .husky/pre-commit until we come up with a globally happy solution to forms that don't have good formatting rules, like defprotocol+ in a reader conditional. * Reverting formatting * Moving pre-commit hooks from .husky/pre-commit to the package.json's lint-staged section. Note that we're still not calling the cljfmt file (.bin/cljfmt_staged.sh) until we get agreement on formatting. One thing we might do since we're using lint-staged is we can probably exclude the "bad" files that go sideways with linting and format everything else automatically. This might be a good follow-on PR.
-
Luis Paolini authored
Add Noto fonts in Alpine Dockerfile
-
- Nov 08, 2023
-
-
Noah Moss authored
Co-authored-by:
Ryan Laurie <iethree@gmail.com> Co-authored-by:
Luiz Arakaki <luiz.arakaki@metabase.com> Co-authored-by:
bryan <bryan.maass@gmail.com> Co-authored-by:
Noah Moss <32746338+noahmoss@users.noreply.github.com> Co-authored-by:
Ryan Laurie <30528226+iethree@users.noreply.github.com> Co-authored-by:
Nick Fitzpatrick <nick@metabase.com> Co-authored-by:
Nick Fitzpatrick <nickfitz.582@gmail.com> Co-authored-by:
Noah Moss <noahbmoss@gmail.com> Co-authored-by:
Case Nelson <case@metabase.com> Co-authored-by:
Jerry Huang <jhuang37050@gmail.com> Co-authored-by:
Bryan Maass <bryan.maass@gmail.com> Co-authored-by:
Jerry Huang <34140255+qwef@users.noreply.github.com> Co-authored-by:
adam-james <21064735+adam-james-v@users.noreply.github.com> Co-authored-by:
Adam James <adam.vermeer2@gmail.com> Co-authored-by:
John Swanson <john.swanson@metabase.com>
-
- Nov 07, 2023
-
-
Ryan Kienstra authored
Co-authored-by:
Cam Saul <github@camsaul.com>
-
- Oct 17, 2023
-
-
Nemanja Glumac authored
* Remove `branch` from version.properties file * Remove branch from logs * Remove `branch` from `application-name` The `application-name` string is needed for Google drivers. See: https://github.com/metabase/metabase/issues/2627
-
- Oct 04, 2023
-
-
Nemanja Glumac authored
It was deprecated and left in a codebase for backwards compatibility. But it seems we've migrated all references to the new method `delete-file-if-exists`. The last time this was touched was three years ago. Should be safe to remove.
-
- Sep 28, 2023
-
-
Ryan Laurie authored
-
- Sep 20, 2023
-
-
Mark Bastian authored
* Fix clj-kondo was getting an error: ```clojure user=> (require ’[clj-kondo.hooks-api :as hooks]) Syntax error compiling at (clj_kondo/impl/analysis/java.clj:61:6). Unable to find static field: ASM9 in interface org.objectweb.asm.Opcodes ``` checking where the bad version comes from: ```clojure user=> (io/resource "org/objectweb/asm/Opcodes.class") "0x37e9d2e2" "jar:file:/Users/dan/.m2/repository/org/ow2/asm/asm-all/5.2/asm-all-5.2.jar!/org/objectweb/asm/Opcodes.class"] ``` and running ``` > clj -X:deps tree :aliases '[:dev :ee :ee-dev :drivers :drivers-dev :alpha :socket :morse :reveal]' > deps ❯ grep asm deps X org.ow2.asm/asm 9.4 :superseded . org.ow2.asm/asm-all 5.2 . org.ow2.asm/asm 9.5 :newer-version . org.ow2.asm/asm-commons 9.5 . org.ow2.asm/asm 9.5 . org.ow2.asm/asm-tree 9.5 . org.ow2.asm/asm 9.5 X org.ow2.asm/asm 9.2 :older-version ``` The 9.4 and 9.5s are all close to each other. But the asm-all 5.2 is far too old. That's brought in by eastwood. So i'll exclude it and see if it works * Can't throw error in api endpoint for linked entities x-ray `create-linked-dashboard` creates a dashboard if there are no linked entities, so this is unreachable code * unify card and query code pathways. now it's quite clear how card and query diverge: ```clojure (defmethod automagic-analysis Card [card {:keys [cell-query] :as opts}] (let [root (->root card) cell-url (format "%squestion/%s/cell/%s" public-endpoint (u/the-id card) (encode-base64-json cell-query))] (query-based-analysis root opts (when cell-query {:cell-query cell-query :cell-url cell-url})))) (defmethod automagic-analysis Query [query {:keys [cell-query] :as opts}] (let [root (->root query) cell-query (when cell-query (mbql.normalize/normalize-fragment [:query :filter] cell-query)) opts (cond-> opts cell-query (assoc :cell-query cell-query)) cell-url (format "%sadhoc/%s/cell/%s" public-endpoint (encode-base64-json (:dataset_query query)) (encode-base64-json cell-query))] (query-based-analysis root opts (when cell-query {:cell-query cell-query :cell-url cell-url})))) ``` * Adding frequencies to a test to prevent non-deterministic behavior * Fixing linter check and ordering issue in test. * Adding TODO future task to replace /rule/ with /dashboard-template/ in paths. * Added large ns block to metabase.automagic-dashboards.core * Fixing spelling mistakes * Some docstrings and renaming for clarity. * Added ->field and ->root (covering source) tests * TODO - Fix minumum spelling error on standalone PR. * Breaking up tests to understand what is on with bulk failures * Broke make-cards into several logical steps so that the code is more readable. Added tests for each stage. * Updating references to rules.clj for i18n generation. * Inlined make-context into apply-dashboard-template. This makes the steps of creating dimensions, metrics, and filters more explicit. ATM we still need to resolve the logic around inject-root as this has dependence on the context and not the individual dimensions. * put build stuff on classpath for lsp * calculate base-context once before template loop * Removed the inject-root multimethod in favor of simple functions. Introducing the idea of removing metric and filter candidates that claim dimensions that don't exist. * Adding logic to pre-emptively remove unsatisfied metrics, filters, and dimensions. In `card-candidates` the check: ``` (and (every? context-dimensions (map ffirst card-dimensions)) (every? context-metrics card-metrics) (every? context-filters card-filters)) ``` is now performed to ensure that the card is satisfied before moving forward. * Renamed common-dimensions, common-metrics, and common-filters to satisfied-* for clarity. In card-candidates also changed context-* and card-* bindings to available-* and required-* for clarity. * Teasing out the generated dimensions, metrics, and filters from the big-ball-of-mud context. `make-cards` now takes the base context as well as the available computed dimensions, metrics, and filters as a separate argument. Additionally, tests were added for the `(comp #(filter-tables % tables) dashboard-templates/->entity)` branch of `some-fn` in `potential-card-dimension-bindings`. However, I am not confident that this is ever called outside of the tests. In order to be called, the entity type for the table has to be a named dimension in a card, which I can't find any examples of in the templates. * Pushing mega-context down to return value of apply-dashboard-template. Just need to take it apart where it is used downstream. * apply-dashboard-template now just returns generated values and does not build up the base context. * Adding tests for cases in which dimensions are defined in a native query on the dashcard template. The only case where this happens is in the resources/automagic_dashboards/table/example.yaml and, prior to this PR, had no test coverage. It does add some weird complexities to the system (including bringing in dimensions from a different approach vector) so perhaps we want to re-evaluate if we want this as a feature or not. --------- Co-authored-by:
dan sutton <dan@dpsutton.com>
-