Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. May 30, 2023
  2. May 29, 2023
  3. May 28, 2023
  4. May 26, 2023
  5. May 24, 2023
    • metabase-bot[bot]'s avatar
    • metabase-bot[bot]'s avatar
    • metabase-bot[bot]'s avatar
      Embedded link cards (#30917) (#30985) · ac70e3c7
      metabase-bot[bot] authored
      
      * open metabase links in same iFrame when embedding
      
      * unit test link behavior
      
      Co-authored-by: default avatarRyan Laurie <30528226+iethree@users.noreply.github.com>
      Unverified
      ac70e3c7
    • Noah Moss's avatar
      Backport recent_views in user-local settings (#29631) to 46 release branch (#30965) · b40e1a35
      Noah Moss authored
      
      * recent_views stored in user local setting (#29631)
      
      * First pass at recent_views stored in user local setting
      
      This modifies the view log event handler to write a user's views to their local settings map (stored as json in the
      appdb).
      
      some notes on what causes a view
      
      :card-query
       - occurs when collection with pinned cards/models is opened. maybe shouldn't count as a view
      
      :card-read
       - happens when you view a card, like, load it in the UI and are looking at it
      
      :card-read AND :card-query
       - happens when you view a model, like, load it in the UI and are looking at it
      
      :dashboard-read
       - happens when you view a dashboard
      
      :card-create
       - when you save a card
       - this will probably cause double counts because it will save and then trigger a :card-read right away too
      
      :table-read
       - when viewing a table.
       - when selecting a db/table in dropdowns in the Question editor
      
      I think we need the view log topics to be much smaller: #{:card-read :dashboard-read :table-read}
      
      * WIP test for the recent_views user local setting.
      
      This isn't totally correct yet. I think it doesn't clean up after itself correctly. That's pending.
      
      And, I have to investigate because :table-read isn't working either. Still worth pushing this progress!
      
      * Test that works! All potential view events need :actor_id
      
      * Working test for /api/recent_views
      
      * Order of views in user-local recent-views works now
      
      If a user views something they've recently viewed, the homepage order doesn't change. Now it will, as in, the most
      recently viewed item will always be the first item in the vector.
      
      * One time recent_views expensive query done in the user-recent-views getter
      
      The logic of filling the recent-views setting was first written in the activity api namespace. Now it's handled where
      the setting is defined, which lets anyone else consuming the setting not worry about filling it if its empty.
      
      The setting can be reset with `nil` which will cause the query to run again. Otherwise, if the list of recent items is
      an empty vector, that is considered valid and will not re-run the query.
      
      Updating the setting per view is handled still in the view log handler, implemented in the private function `update-users-recent-views!`.
      
      * Add `most-recently-viewed-dashboard` setting
      
      The most recently viewed dashboard for that user, in the past 24 hours.
      
      This is not meant to be a permanent solution to providing this bit of info for the user, rather, it's a 'stop gap'
      while the audit tables are reworked.
      
      * Add test for most recent dashboard setting
      
      * Pass :context to the view log fns
      
      This lets us filter out views triggered by pinned cards.
      
      * Fix tests failing after adding :context to view metadata
      
      * See if card-query can help us filter out pinned item views
      
      * Tests should send :card-query events
      
      * Since we use :card-query, we have to filter out dashboard context too
      
      This should prevent views being recorded if someone just opens a dashboard.
      
      * ViewLog Cleanup to see if it'll let other tests pass
      
      * fix build
      
      * clean ns and fix build
      
      ---------
      
      Co-authored-by: default avataradam-james <21064735+adam-james-v@users.noreply.github.com>
      Unverified
      b40e1a35
    • metabase-bot[bot]'s avatar
    • Ngoc Khuat's avatar
      Manual backport: Fix Add Series modal performance issues by moving the logic to the BE (#30971) · 89f599d1
      Ngoc Khuat authored
      * backport 30321 with lots of custom code that take from 47
      
      * rm src/metabase/lib/isa.clj
      
      * fix isa_test
      Unverified
      89f599d1
    • metabase-bot[bot]'s avatar
      Use display name from model for implicit actions (#30356) (#30501) · a96ce5f7
      metabase-bot[bot] authored
      
      * Use display name from card for implicit actions
      
      * Remove fields arg from generateFieldSettingsFromParameters
      
      * Update implicit action test to include display-name
      
      * Tidy
      
      * Fix unit tests
      
      * Fix e2e test
      
      * Only include display-name in the parameters for implicit action types
      
      * Use `field.displayName()`
      
      * Fix some tests
      
      * Attempt to fix test
      
      * Fix ActionParametersInputForm unit tests
      
      * Only generate field settings from parameters if action.type is implicit
      
      * Fix e2e tests
      
      * Fix unit tests
      
      * Fix tests
      
      Co-authored-by: default avatarCal Herries <39073188+calherries@users.noreply.github.com>
      Unverified
      a96ce5f7
    • Nemanja Glumac's avatar
      :cherries: Backport pre-release improvements (#30972) · 08958265
      Nemanja Glumac authored
      
      * CI: Prerelease workflow improvements (#30819)
      
      - Abort if the intended version conflicted with a past release
      - Bail out if the commit hash isn't part of a release branch
      
      * CI prerelease workflow: pretend to be the intended version (#30915)
      
      ---------
      
      Co-authored-by: default avatarAriya Hidayat <ariya@metabase.com>
      Unverified
      08958265
    • metabase-bot[bot]'s avatar
  6. May 23, 2023
  7. May 21, 2023
  8. May 19, 2023
  9. May 18, 2023
  10. May 17, 2023
  11. May 16, 2023
  12. May 15, 2023
  13. May 12, 2023
    • dpsutton's avatar
      Alternative GEOJSON.io fix (#30675) (#30696) · ea6d6006
      dpsutton authored
      * Alternative GEOJSON.io fix (#30675)
      
      * Alternative GEOJSON.io fix
      
      rather than not testing, just accept that we might get an expected
      location back or we might get nil. This actually represents how the
      application will behave and will seamlessly work as the service improves
      or continues throwing errors:
      
      ```shell
      ❯ curl "https://get.geojs.io/v1/ip/geo.json?ip=8.8.8.8,136.49.173.73,185.233.100.23"
      <html>
      <head><title>500 Internal Server Error</title></head>
      <body>
      <center><h1>500 Internal Server Error</h1></center>
      <hr><center>openresty</center>
      </body>
      </html>
      
      ❯ curl "https://get.geojs.io/v1/ip/geo.json?ip=8.8.8.8,136.49.173.73"
      [{"area_code":"0","organization_name":"GOOGLE","country_code":"US",
        "country_code3":"USA","continent_code":"NA","ip":"8.8.8.8",
        "region":"California","latitude":"34.0544","longitude":"-118.2441",
        "accuracy":5,"timezone":"America\/Los_Angeles","city":"Los Angeles",
        "organization":"AS15169 GOOGLE","asn":15169,"country":"United States"},
       {"area_code":"0","organization_name":"GOOGLE-FIBER","country_code":"US",
       "country_code3":"USA","continent_code":"NA","ip":"136.49.173.73",
       "region":"Texas","latitude":"30.2423","longitude":"-97.7672",
       "accuracy":5,"timezone":"America\/Chicago","city":"Austin",
       "organization":"AS16591 GOOGLE-FIBER","asn":16591,"country":"United States"}]
      ```
      
      Changes are basically
      
      ```clojure
      (schema= (s/conditional some? <original-expectation-schema>
                              nil?  (s/eq nil)
               response-from-geojson)
      ```
      
      * Filter to login error messages
      
      ```clojure
      (into [] (map (fn [[log-level error message]] [log-level (type error) message]))
            error-messages-captured-in-test)
      [[:error
        clojure.lang.ExceptionInfo
        "Error geocoding IP addresses {:url https://get.geojs.io/v1/ip/geo.json?ip=127.0.0.1}"]
       [:error clojure.lang.ExceptionInfo "Authentication endpoint error"]]
       ```
      
      * check timestamps with regex
      
      seems like they fixed the service
      
      ```shell
      curl "https://get.geojs.io/v1/ip/geo.json?ip=8.8.8.8,136.49.173.73,185.233.100.23"
      [{"country":"United States","latitude":"34.0544","longitude":"-118.2441","accuracy":5,"timezone":"America\/Los_Angeles","ip":"8.8.8.8","organization":"AS15169 GOOGLE","country_code3":"USA","asn":15169,"area_code":"0","organization_name":"GOOGLE","country_code":"US","city":"Los Angeles","continent_code":"NA","region":"California"},{"country":"United States","latitude":"30.2423","longitude":"-97.7672","accuracy":5,"timezone":"America\/Chicago","ip":"136.49.173.73","organization":"AS16591 GOOGLE-FIBER","country_code3":"USA","asn":16591,"area_code":"0","organization_name":"GOOGLE-FIBER","country_code":"US","city":"Austin","continent_code":"NA","region":"Texas"},{"country":"France","latitude":"48.8582","longitude":"2.3387","accuracy":500,"timezone":"Europe\/Paris","ip":"185.233.100.23","organization":"AS198985 AQUILENET","country_code3":"FRA","asn":198985,"area_code":"0","organization_name":"AQUILENET","country_code":"FR","continent_code":"EU"}]
      ```
      
      whereas a few hours ago that returned a 500. And now the timestamps are different
      
      ```
      ;; from schema
      "2021-03-18T19:52:41.808482Z"
      ;; results
      "2021-03-18T20:52:41.808482+01:00"
      ```
      
      kinda sick of dealing with this and don't want to deal with a schema
      that matches "near" to a timestamp.
      
      * Restore these
      
      i copied changes over from tim's fix and it included these fixes. But
      now the service is fixed and these are the original values from cam's
      original fixes
      
      * ping CI
      Unverified
      ea6d6006
    • metabase-bot[bot]'s avatar
      docs - pro links (#30742) (#30744) · d39f37df
      metabase-bot[bot] authored
      
      * add links to paid features section
      
      * add readme link
      
      * update links
      
      Co-authored-by: default avatarJeff Bruemmer <jeff.bruemmer@gmail.com>
      Unverified
      d39f37df
    • Ryan Laurie's avatar
      [CI] Fix syntax error in slack notifications script (#30660) (#30734) · 558e8899
      Ryan Laurie authored
      # Conflicts:
      #	.github/workflows/rerun-workflows.yml
      Unverified
      558e8899
    • metabase-bot[bot]'s avatar
    • metabase-bot[bot]'s avatar
  14. May 11, 2023
  15. May 10, 2023
Loading