-
- Downloads
[MLv2] Add `lib.field/add-field` and `remove-field` (#32679)
These are "porcelain" APIs to make FE management of the set of selected columns for a query much easier. `add-field` and `remove-field` will handle regular table fields, explicit join fields, and custom expressions correctly. One known quirk: if the set of `:fields` on a stage happens to match the default set, this is *not* noticed or fixed. Once an explicit list is set on a stage, it will forever have a list.
Showing
- src/metabase/lib/core.cljc 4 additions, 2 deletionssrc/metabase/lib/core.cljc
- src/metabase/lib/field.cljc 160 additions, 8 deletionssrc/metabase/lib/field.cljc
- src/metabase/lib/js.cljs 26 additions, 0 deletionssrc/metabase/lib/js.cljs
- test/metabase/lib/field_test.cljc 514 additions, 3 deletionstest/metabase/lib/field_test.cljc
This diff is collapsed.
Please register or sign in to comment