-
- Downloads
Serialization: support dashboard cards being in a different collection (#15842)
Make the load multimethod return a function, which serves as a "reload function", to be called after the first entire pass is complete (via cmd) Updating various places to combine these functions together and invoke at the top level from cmd.clj when load finishes Updating dashboard load implementation to check for presence of cards referred to by its dashcards, and if missing, reload those dashboards(s) on a second pass Splitting out a separate load-dashboards fn that contains the bulk of the body from the previous multimethod implementation (which now delegates to it) to support easier reload functionality
Showing
- enterprise/backend/src/metabase_enterprise/serialization/cmd.clj 11 additions, 6 deletions...ise/backend/src/metabase_enterprise/serialization/cmd.clj
- enterprise/backend/src/metabase_enterprise/serialization/load.clj 74 additions, 33 deletions...se/backend/src/metabase_enterprise/serialization/load.clj
- enterprise/backend/src/metabase_enterprise/serialization/names.clj 1 addition, 0 deletions...e/backend/src/metabase_enterprise/serialization/names.clj
- enterprise/backend/src/metabase_enterprise/serialization/specs.clj 9 additions, 0 deletions...e/backend/src/metabase_enterprise/serialization/specs.clj
- enterprise/backend/test/metabase_enterprise/serialization/load_test.clj 2 additions, 1 deletion...kend/test/metabase_enterprise/serialization/load_test.clj
- enterprise/backend/test/metabase_enterprise/serialization/test_util.clj 7 additions, 1 deletion...kend/test/metabase_enterprise/serialization/test_util.clj
Please register or sign in to comment