Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the database with the clone_card function #32

Open
PatrickRoethlisberger opened this issue May 10, 2022 · 3 comments
Open

Changing the database with the clone_card function #32

PatrickRoethlisberger opened this issue May 10, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@PatrickRoethlisberger
Copy link

I'd love to be able changing the underlying database with the clone_card function. The Use case I've got in mind is having multiple environments which all have the same question/card but different databases.

I've imagined something like this:

mb.clone_card(card_id=2, source_table_id=16, target_table_id=69, target_database_id=1 ,new_card_name='Cloned Card', new_card_collection_id=6, new_database_id=2, ignore_these_filters=[])

As far as I can tell, only the database_id as well as the dataset_query.database properties of the card have to be changed.

@vvaezian
Copy link
Owner

Hi @PatrickRoethlisberger, thanks for the feedback. I will work on this when I get some time. In the meantime please feel free to open a PR.

@vvaezian vvaezian added the enhancement New feature or request label May 10, 2022
@vvaezian vvaezian self-assigned this Jul 25, 2022
@rparrapy
Copy link

Hi @vvaezian I have a similar use case to the OP. Did you get a chance to work on this or is a PR still welcome?

@vvaezian
Copy link
Owner

Hi @rparrapy, not yet. Feel free to take a stab at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants