-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add collections migrations between instances #40
base: master
Are you sure you want to change the base?
Conversation
Will do a detailed review asap. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have walked through this PR. Thanks for the effort.
Could you please remove the specific file names from the gitignore ( i couldn't understand the purpose ), and skip the deletion of get_by_collection method which is used by some command scripts ( someone might be using those scripts, that change will broke them ).
Thanks.
@@ -95,3 +95,6 @@ gen | |||
# virtual environment | |||
venv/ | |||
.venv/ | |||
|
|||
collab.json | |||
password.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need those two specific files to be ignored ?
) | ||
Resource.validate_response(response=resp) | ||
return resp.json() | ||
|
||
def get_by_collection(self, collection_slug): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used by the helper scripts:
- exporter.py
- migrator.py
although they are a bit old, i suggest to keep this method.
metabasepy/client.py
Outdated
@@ -304,23 +421,36 @@ def get(self, collection_id=None, archived=False): | |||
url=url, | |||
headers=self.prepare_headers(), | |||
verify=self.verify, | |||
proxies=self.proxies | |||
proxies=self.proxies, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for overall styling & format. ✌️
Hi, I have added full collection migration between different metabase instances including dashboards visualization, any comments would be appreciated