Handle deletable state when enabling persistence (#23118)
* Handle deletable state when enabling persistence When enabling persistence all models are supposed to be set to creating unless they have been explicitly turned "off". Before, we were only looking for new models without attached PersistedInfos when enabling, but missed deletable PersistedInfos that needed to be re-enabled. It's the correct thing to do during the refresh as you wouldn't want refresh to re-enable but it's incorrect when enabling. * Remove unecessary thread-last
Showing
- enterprise/backend/test/metabase_enterprise/sandbox/api/permissions_test.clj 1 addition, 1 deletion...test/metabase_enterprise/sandbox/api/permissions_test.clj
- src/metabase/api/card.clj 1 addition, 1 deletionsrc/metabase/api/card.clj
- src/metabase/events/persisted_info.clj 1 addition, 1 deletionsrc/metabase/events/persisted_info.clj
- src/metabase/models/persisted_info.clj 15 additions, 2 deletionssrc/metabase/models/persisted_info.clj
- src/metabase/task/persist_refresh.clj 1 addition, 1 deletionsrc/metabase/task/persist_refresh.clj
Loading
Please register or sign in to comment