Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Apr 02, 2024
  2. Apr 01, 2024
  3. Mar 29, 2024
    • metabase-bot[bot]'s avatar
      :robot: backported "Cards with Results Should Show up in Subscriptions" (#40762) · d6c4bad1
      metabase-bot[bot] authored
      
      * Cards with Results Should Show up in Subscriptions (#40743)
      
      * Cards with Results Should Show up in Subscriptions
      
      Fixes: #40726
      
      This PR fixes a bug where setting 'Hide thie card if there are no results' in a Dashcard's viz-settings would hide the
      card even when there were results.
      
      * adjust test to show that the setting is respected
      
      Before, the setting would always hide the card. Now, the card is only hidden when there are no results. This test sets
      up 4 cards: 2 are normal, 2 have no results, but 1 has the setting to hide empty. THerefore, we should expect to see 3 results.
      
      * test is fine?
      
      ---------
      
      Co-authored-by: default avatarAdam James <adam.vermeer2@gmail.com>
      d6c4bad1
    • metabase-bot[bot]'s avatar
      :robot: backported "Upgrade @testing-library/user-event to v14" (#40757) · 5da03450
      metabase-bot[bot] authored
      
      * resolve conflicts and update few tests to await userEvents properly
      
      * Fix for userEvents 14 on Master (#40761)
      
      * Nick is sad
      
      * tests passing
      
      * fix lint and unit after rebasing on latest 49 branch
      
      ---------
      
      Co-authored-by: default avatarSloan Sparger <sloansparger@users.noreply.github.com>
      Co-authored-by: default avatarNick Fitzpatrick <nick@metabase.com>
      Co-authored-by: default avatarSloan Sparger <sloansparger@gmail.com>
      5da03450
    • metabase-bot[bot]'s avatar
      [docs] creating a HAR file (#40734) (#40826) · 3f1490f9
      metabase-bot[bot] authored
      
      * add link
      
      * create HAR
      
      * formatting
      
      * periods
      
      * more formatting
      
      * feedback
      
      Co-authored-by: default avatarAlex Yarosh <alexandra@metabase.com>
      3f1490f9
    • metabase-bot[bot]'s avatar
      Don't rerun dashcard queries when switching tabs without parameter changes (#40783) (#40823) · 5b83e03d
      metabase-bot[bot] authored
      
      * Add E2E test
      
      * Move `getDatasetQueryParams` to `data-fetching.js`
      
      * Use `null` as a parameter value when missing
      
      * Fix missing default `datasetQuery`
      
      Co-authored-by: default avatarAnton Kulyk <kuliks.anton@gmail.com>
      5b83e03d
    • metabase-bot[bot]'s avatar
    • metabase-bot[bot]'s avatar
    • metabase-bot[bot]'s avatar
    • metabase-bot[bot]'s avatar
      Make format export optional (#40606) (#40755) · d047ac69
      metabase-bot[bot] authored
      
      * Make Formatting on Exports Optional
      
      Formatting on exports can be turned off via a middleware key:
      
      `:format-export?` which will control if the 'app style' formatting will be applied to the exported results.
      `:format-export? false` will return the file as in previous Metabase versions.
      
      * format_export's default value provided in the QP middleware
      
      Should still default to formatted for v. 49, as the formatting is intended as a feature. This default value should be
      provided in a central place, so is added to the middleware and is therefore not necessary for the API to provide a default.
      
      * weird indentation
      
      * Add format_export param to dashboard dashcard query endpoint
      
      * Add format_export option to embedded dashboard downloads endpoint
      
      * Move default true value to the streaming-results-writer impls
      
      * Default true but for real this time
      
      * Add format_export to the public Question endpoint
      
      * Add test to card api
      
      * Dashboard exports endpoint test
      
      * Add test to dashboard embeds
      
      Test still fails and I don't know why yet
      
      * the dangers of println debugging....
      
      Well, I was passing a string false the whole time. Turns out the problem was me
      
      * Public Card downloads endpoint now has format_export and test
      
      * export_format also works for adhoc queries using api/dataset
      
      * Let defendpoint do the boolean parsing
      
      * Embed endpoint should now work too.
      
      * Unify format-rows and format-export middlewares
      
      * Sneaky endpoint!
      
      * In xlsx, always parse temporal strings so that viz-settings formatting is applied
      
      * Snuck in an incomplete change by accident. removed it.
      
      * Can now specify format/no format on subscriptions
      
      * Fix and move migration
      
      * default format rows to true in attachments
      
      * Ok, I think that should actually work for subscriptions.
      
      * Change endpoints to use format_rows instead of confusing format_export
      
      * format_rows everywhere
      
      * Fix more test failures
      
      * redef'd function had wrong signature
      
      * Make format export optional (FE part) (#40643)
      
      * Refactor download URL builder code
      
      Need to handle query `params` and request `body` separately
      
      * Export `useHover` from `metabase/ui`
      
      * Add unformatted export for dashboard cards
      
      * Add unformatted export for saved questions
      
      * Fix POST body encoding
      
      * Add unformatted export for ad-hoc questions
      
      * Ensure `format_export` is always false for Excel
      
      * Add unformatted export to public questions
      
      * Add unformatted export to embedded questions and dashboards
      
      * Fix behavior for PNG format
      
      * Add tests for `QueryDownloadPopover`
      
      * Fix e2e downloads helper (allow URL query params)
      
      * Rework alt key handling
      
      * Add e2e test
      
      * Switch to `format_rows` instead of `format_export`
      
      * Add unformatted export option to subscriptions
      
      * Fix `isHoldingAltKey` initial state
      
      * Rework e2e test to use Total column
      
      * Fix initial checkbox state for subscriptions
      
      * Use "Alt" in tooltip label for Windows/Linux
      
      * Show the subscriptions toggle only for CSV attachments
      
      ---------
      
      
      
      * Address review feedback
      
      ---------
      
      Co-authored-by: default avatarAdam James <adam.vermeer2@gmail.com>
      Co-authored-by: default avatarAnton Kulyk <kuliks.anton@gmail.com>
      d047ac69
    • metabase-bot[bot]'s avatar
      Add `location` and `effective_location` to search (#40687) (#40766) · 4f382fb3
      metabase-bot[bot] authored
      
      For collections retrieved from the Search API, attach `location` and
      `effective_location` so the frontend knows... where they're located.
      
      Co-authored-by: default avatarJohn Swanson <john.swanson@metabase.com>
      4f382fb3
  4. Mar 28, 2024
  5. Mar 27, 2024
Loading