vvaezian / metabase_api_python

A python wrapper for Metabase API
MIT License
131 stars 39 forks source link

Use the built-in functionality for Deepcopying dashboards (v.45+) #43

Open vvaezian opened 1 year ago

vvaezian commented 1 year ago

Deepcopying dashboards is supported natively in v.45+.

yasserN commented 3 weeks ago

Hi. What about deepcopying collections? It does not work properly in v0.47.6 destination_metabase.copy_collection(source_collection_id=201,destination_parent_collection_id=2,deepcopy_dashboards=True,verbose=True) Log: source_dashboard_card_IDs = [ i['card_id'] for i in source_dashboard['dashcards'] if i['card_id'] is not None ] KeyError: 'dashcards'

vvaezian commented 3 weeks ago

In v48 Metabase changed "ordered_cards" to "dashcards". We made the change in the package in version 0.3.2. So you need to either upgrade your Metabase, or downgrade your installed package version.