Serdes for Actions (#27879)
* Whitespace * Add Action to entities list * Add entity_id column migration * Correct migration ids * Add entity-id property to action model * Extract and serdes-dependencies for action * storage for Action * ingest for Action * Generate for Action * load for Action * Remove comment * Add entity_id to action submodels * Add submodels to copy entities * Add submodels to exported-models * Add submodels to legal-top-level-paths * Slufigy extracted label for action * Extract for QueryAction * Generate query_action * Fix query_action extract test * Add action subtype extract tests * Update Action-subtype-IModel-impl docstring * Generate ImplicitAction and HTTPAction * Export and Import action_id FK with dashcards * Generate nano-id * Add load tests to e2e test * Nest subtypes directories in actions * Remove prn * Add docstring * Fix copy * Add select-action fn * Change extract tests to only extract Action model * Update action/select-one tests * Update legal-top-level-paths * Rename select-action -> select-one * Implement extract-one for Action only, not subtypes * Move subtype models from exported to inlined * Remove entity_id from subtypes * Reuse type->model * Ingest Action with inlined subtype info * Fix serdes-dependencies for Action * Add action to serdes-descendants for Dashboard * Add docstring to action update! * Reuse update! for PUT API * Add missing ns * Remove serdes-generate-path impl * Tidy * Sort ns * Restore add-entity-id * Update entity_id_test * Undo refactor * Include id in action arg for update! * Delete action, with delete cascading to the subtype * Fix clj-kondo warning * Fix returning nil Action in dashboard serdes-descendants * Braden's suggestions
Showing
- enterprise/backend/src/metabase_enterprise/serialization/v2/ingest/yaml.clj 1 addition, 1 deletion.../src/metabase_enterprise/serialization/v2/ingest/yaml.clj
- enterprise/backend/src/metabase_enterprise/serialization/v2/models.clj 5 additions, 1 deletion...ckend/src/metabase_enterprise/serialization/v2/models.clj
- enterprise/backend/test/metabase_enterprise/models/entity_id_test.clj 0 additions, 1 deletion...ackend/test/metabase_enterprise/models/entity_id_test.clj
- enterprise/backend/test/metabase_enterprise/serialization/v2/e2e/yaml_test.clj 167 additions, 131 deletions...st/metabase_enterprise/serialization/v2/e2e/yaml_test.clj
- enterprise/backend/test/metabase_enterprise/serialization/v2/extract_test.clj 130 additions, 2 deletions...est/metabase_enterprise/serialization/v2/extract_test.clj
- resources/migrations/000_migrations.yaml 17 additions, 2 deletionsresources/migrations/000_migrations.yaml
- src/metabase/api/action.clj 5 additions, 22 deletionssrc/metabase/api/action.clj
- src/metabase/cmd/copy.clj 10 additions, 2 deletionssrc/metabase/cmd/copy.clj
- src/metabase/models/action.clj 108 additions, 28 deletionssrc/metabase/models/action.clj
- src/metabase/models/dashboard.clj 12 additions, 8 deletionssrc/metabase/models/dashboard.clj
- src/metabase/models/dashboard_card.clj 1 addition, 0 deletionssrc/metabase/models/dashboard_card.clj
- test/metabase/cmd/copy_test.clj 1 addition, 2 deletionstest/metabase/cmd/copy_test.clj
- test/metabase/models/action_test.clj 34 additions, 20 deletionstest/metabase/models/action_test.clj
- test/metabase/models/dashboard_test.clj 9 additions, 0 deletionstest/metabase/models/dashboard_test.clj
- test/metabase/test/generate.clj 36 additions, 4 deletionstest/metabase/test/generate.clj
Loading
Please register or sign in to comment