Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Jun 09, 2021
  2. May 17, 2021
  3. Feb 25, 2021
    • Jeff Evans's avatar
      Implement ssh tunnel reconnection (#14563) · b4d8e35a
      Jeff Evans authored
      * Implement ssh tunnel reconnection
      
      From the connection-with-timezone method of execute, check whether an ssh tunnel that should be open actually is not, and if so, mark the entire pool as invalid (thereby forcing the connection code to rebuild the source and open a new tunnel)
      
      Fixing the create-pool! function so that the relevant ssh tunnel entries are kept (in addition to the :datasource)
      
      Adding test in ssh-test namespace, which will test that the tunnel is reestablished (for now, running with Postgres driver)
      
      * Responding to PR feedback from Dan
      
      * Fixing test by adding AcceptAllForwardingFilter forwardingFilter to the mock password server instance
      
      * Change with-driver to test-driver
      
      * Add ssh tunnel reconnect test that can run against H2
      
      * Implement ssh tunnel reconnection
      
      From the connection-with-timezone method of execute, check whether an ssh tunnel that should be open actually is not, and if so, mark the entire pool as invalid (thereby forcing the connection code to rebuild the source and open a new tunnel)
      
      Fixing the create-pool! function so that the relevant ssh tunnel entries are kept (in addition to the :datasource)
      
      Adding test in ssh-test namespace, which will test that the tunnel is reestablished (for now, running with Postgres driver)
      
      * Responding to PR feedback from Dan
      
      * Fixing test by adding AcceptAllForwardingFilter forwardingFilter to the mock password server instance
      
      * Rebase again to fix merge conflict
      
      * Change test-driver to with-driver in hopes of making CodeCov finally happy
      
      * Adding new multimethod to ssh namespace, called incorporate-ssh-tunnel-details, for accounting for the
      
      Implementing incorporate-ssh-tunnel-details for h2 so update the URI string (:db key) to point to the tunnel entry point
      
      Pulled logic for :sql-jdbc implementation of connection-with-timezone out to a new fn, so it can be called elsewhere
      
      Updating H2 reconnection test imn light of the changes above
      
      Added "!" suffix to name of include-ssh-tunnel to reflect the fact that it does modify global state
      
      * Fixing NPE in incorporate-ssh-tunnel-details implementation for :h2
      
      Moving multimethod declaration for incorporate-ssh-tunnel-details to driver namespace
      
      * Fix :h2 implementation again
      
      * Remove another errant extra line :(
      
      * Rebase onto master
      
      * Inline the private helper fn back into connection-with-timezone
      
      * Remove dead code
      b4d8e35a
  4. Feb 08, 2021
  5. Oct 23, 2020
  6. Oct 07, 2020
  7. Oct 06, 2020
    • Cam Saul's avatar
      Fix Google driver build [ci bigquery] (#13386) · 22a09e37
      Cam Saul authored
      * Fix Google driver build [ci bigquery]
      
      * Tweak chain filter tests
      
      * Fix i18n tag
      
      * Fix database sync test (maybe)
      
      * Add u/decolorize for latest JUnit output tweak
      
      * Fix :wrench:
      
      * Test fix :wrench:
      22a09e37
  8. Oct 02, 2020
    • Robert Roland's avatar
      Upgrade to log4j 2.13.3 (#13310) · 1b75a42b
      Robert Roland authored
      * Upgrade to log4j 2.13.3
      
      Upgrades us to newer Log4j
      
      Resolves #12719
      
      * fixing reflection warnings
      
      * reflection warning on test
      
      * make tests work
      
      took a while to figure out how to configure log4j properly
      programatically - it's not as easy as log4j 1
      
      add logging adapters for commons-logging, slf4j, liquibase, etc so that
      all logging routes through log4j2 now
      
      * appease the linters
      
      * okay cljr-clean-ns makes this line too long, I get it
      
      * add log4j2.xml config for Cypress tests
      
      * update log4j configuration file documentation
      
      update which flag is used by the backend tests
      
      [ci all]
      
      * update cheshire because clj-http updated
      
      * Wire up the metabase-appender to Log4j2
      
      This was brutal to figure out - log4j usually silently fails, so it took
      finding the right combination of configuration settings and system
      properties to get it to log enough to find out why the appender was
      never invoked.
      1b75a42b
  9. Jul 16, 2020
  10. May 26, 2020
  11. May 21, 2020
  12. Dec 03, 2019
  13. Jun 05, 2019
  14. May 13, 2019
  15. Dec 12, 2018
  16. Nov 17, 2018
  17. Oct 29, 2018
  18. Oct 10, 2018
  19. Sep 10, 2018
    • Ryan Senior's avatar
      Add UserLocalizedString and SystemLocalizedString for i18n · 96b77169
      Ryan Senior authored
      Currently i18n'd strings that are defined at compile time only return
      english text. This occurs with both system and user locale
      strings. For system locale, the locale can be changed via setting, so
      we can't rely on the JVM locale on startup to be correct as it may
      have changed. For the user locale, it could be different for every
      request.
      
      This commit adds two new `tru` and `trs` macros that have the same
      name as the `puppetlabs.i18n.core` macros (and thus will be extracted
      similarly) but will return a defrecord with a `toString` method. This
      delays the conversion of the english text to the translated text until
      `str` is invoked. All of the code hasn't been flipped to use the new
      i18n macros yet, but this gets it in place and tested for the rest of
      the application to be migrated to.
      
      Fixes #8245
      96b77169
  20. Nov 14, 2017
  21. Aug 07, 2017
  22. Jul 31, 2017
  23. May 31, 2017
  24. Apr 24, 2017
  25. Feb 22, 2017
  26. Feb 09, 2017
  27. Jan 24, 2017
  28. Aug 22, 2016
  29. Jul 26, 2016
  30. Jul 18, 2016
  31. Jun 06, 2016
  32. Apr 27, 2016
  33. Feb 15, 2016
  34. Feb 11, 2016
Loading