-
- Downloads
Add collection position reconcilliation to cards/dashboards/pulses
Anytime a new card/dashboard/pulse is created with a collection position, or a card/dashboard/pulses has it's collection or collection position updated, it's possible that other items in the collection will need to have their collection position adjusted. This commit adds a check to the PUT and POST routes of cards/dashboards/pulses to check to see if the change impacts the position of other cards/dashboards/pulses in the collection. This also uses the same logic for the bulk card collection updates and will adjust impacted cards as needed.
Showing
- src/metabase/api/card.clj 80 additions, 25 deletionssrc/metabase/api/card.clj
- src/metabase/api/common.clj 76 additions, 0 deletionssrc/metabase/api/common.clj
- src/metabase/api/dashboard.clj 29 additions, 19 deletionssrc/metabase/api/dashboard.clj
- src/metabase/api/pulse.clj 22 additions, 13 deletionssrc/metabase/api/pulse.clj
- test/metabase/api/card_test.clj 232 additions, 0 deletionstest/metabase/api/card_test.clj
- test/metabase/api/dashboard_test.clj 121 additions, 0 deletionstest/metabase/api/dashboard_test.clj
- test/metabase/api/pulse_test.clj 150 additions, 0 deletionstest/metabase/api/pulse_test.clj
Loading
Please register or sign in to comment