-
- Downloads
Collections metadata backend work (#15718)
* Provide `:last-edit-info` information on collection items only provided for cards and dashboards. At the moment, collections can have: - cards () - dashboards ( ) - snippets ( )(not in UI) - pulses ( )(deprecated) - other collection ( to be done. needs a table for these changes. they are revisioned) * Send edit info along with cards * Last-edit-info on dashboards * Move last-edit-info functions into a bespoke namespace under revision Under revision as the source of changes all come from revisions at the moment. This might be ill-considered once we add collections into the mix since they are not good candidates for revisions. * Renames and docstring update on the last-edit namespace * Add types * Add `:last-edit-info` on card and dashboard creation * Expect last-edit-info in creation repsonse for cards/dashboard * Docstring on last-edit types * Make the namespace checker happy * namespace checker * Remove moved function * Add edit info to api/card/ and api/dashboard/ * Move event emission outside of transaction
Showing
- src/metabase/api/card.clj 19 additions, 8 deletionssrc/metabase/api/card.clj
- src/metabase/api/collection.clj 25 additions, 11 deletionssrc/metabase/api/collection.clj
- src/metabase/api/dashboard.clj 24 additions, 13 deletionssrc/metabase/api/dashboard.clj
- src/metabase/models/revision/last_edit.clj 95 additions, 0 deletionssrc/metabase/models/revision/last_edit.clj
- test/metabase/api/card_test.clj 24 additions, 3 deletionstest/metabase/api/card_test.clj
- test/metabase/api/collection_test.clj 24 additions, 2 deletionstest/metabase/api/collection_test.clj
- test/metabase/api/dashboard_test.clj 36 additions, 12 deletionstest/metabase/api/dashboard_test.clj
- test/metabase/test/util.clj 1 addition, 1 deletiontest/metabase/test/util.clj
src/metabase/models/revision/last_edit.clj
0 → 100644
Please register or sign in to comment