Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Aug 25, 2021
  2. Aug 23, 2021
    • Jeff Evans's avatar
      Serialization: Fix reload entity logic · 7f052ceb
      Jeff Evans authored
      Now that the `:mode` is always respected instead of being ignored sometimes, we need to update our "second pass" reload functions to always make the mode `:update` on the second pass, or else that entity would just be skipped, which is bad
      
      Also updated the test to use `:mode` `:skip` from the beginning to be more stringent
      7f052ceb
    • Jeff Evans's avatar
      Fix serialization objects being incorrectly updated on skip · f9197370
      Jeff Evans authored
      Remove `maybe-fixup-card-template-ids!`, which was forcing mode :update, since the existing retry logic should cover what it was trying to do
      
      Update Card and Metric models to delete any Dependency instances for which they are the `:model_id` (to make serialization tests after other tests created temporary Card/Dependency pairs)
      
      Adding missing assertions for Dependency serialization
      f9197370
    • Jeff Evans's avatar
      Fix serialization load error into empty/blank target DB · 9270e471
      Jeff Evans authored
      Rethrowing exception in cmd when overall load fails
      
      Add test to ensure that a dump containing a user can be loaded into a blank target app DB successfully
      
      Adding a few missing bindings to the `with-temp-empty-app-db` code to set the connection vars under metabase.db.connection
      
      In upsert, add hooks for a :pre-insert-fn and :post-insert-fn to be invoked for new entity instances created by the upsert process, since whether an entity will be an insert or update isn't necessarily known by the load process (only by upsert once identity-condition is checked for each)
      
      In load, setting the pre and post insert functions for a User instance to initialize :password with a random value, and to generate and send a password reset email to the newly inserted user's email, respectively
      
      NOTE: this post insert fn (to send a password reset email for newly inserted users) is NOT hooked up for User as of x.41 release, since it is considered a bugfix, but this can be enabled in a future release)
      
      Adding new defs for the magic permission group names to make those easier to override from tests that might need to (such as the one added for this commit)
      9270e471
    • Jeff Evans's avatar
      Fix serialization dump error when there are no collections · 68e7225f
      Jeff Evans authored
      Update `select-collections` to correctly handle the case where there are no collections
      
      Adding new test that removes all collections, then ensures that dump works with no errors
      68e7225f
  3. Aug 19, 2021
  4. Aug 18, 2021
  5. Aug 17, 2021
  6. Aug 16, 2021
  7. Aug 12, 2021
  8. Aug 06, 2021
  9. Aug 05, 2021
  10. Aug 03, 2021
  11. Aug 02, 2021
  12. Jul 22, 2021
Loading