-
- Downloads
[Apps] Allow extra parameters to be passed to action execution (#25198)
* [Apps] Allow extra parameters to be passed to action execution For actions, unlike queries, the user will be asked to fill in unmapped parameters. This change allows the dashboard action execution to accept incoming parameters without an "id" but with a "target". If that target exists on the action, it will be accepted. * Update doc string and validation message * Review changes Remove action-id from the execute endpoint, this will be looked up through the dashcard. Revert map-parameters and split parameters into an extra_parameters value. extra_parameters are combined with the mapped parameters and passed to execution. * Fixing tests
Showing
- src/metabase/actions/execution.clj 22 additions, 7 deletionssrc/metabase/actions/execution.clj
- src/metabase/api/dashboard.clj 18 additions, 7 deletionssrc/metabase/api/dashboard.clj
- test/metabase/actions/test_util.clj 19 additions, 5 deletionstest/metabase/actions/test_util.clj
- test/metabase/api/dashboard_test.clj 25 additions, 18 deletionstest/metabase/api/dashboard_test.clj
- test/metabase/api/emitter_test.clj 1 addition, 1 deletiontest/metabase/api/emitter_test.clj
Loading
Please register or sign in to comment