Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

API v1 - export/import "default" version

Hello,

is it possible to export and import the default version via API?

We have 2 environments, DEV and PROD and we use a shell script to export/import jobs from DEV to PROD.

But sometimes the deployment package is really big and we would like to deploy the whole version (export from DEV => import to PROD) instead of giving a long list of jobs as a parameter to our script.

Unfortunately it's not possible to delete the default version, so our script can't import the "new" default version.
Is there a workaround to do this or do we need to rename our versions and don't use "default"?

Regards,
Daniel

5 Community Answers

Matillion Agent  

Laura Malins —

Hi Daniel

You’re right, you can’t replace a version in Matillion and you can’t delete default so you’ll need to either use a new version name or replace the whole project.

What I’d do is export the default version from your DEV, then change the version name in the JSON. This is just the name attribute in line 4. Then import this to PROD as a new version.

Thanks
Laura


Daniel Petri —

Hi Laura,

thank you for your answer.
We changed version from "default" to "prod" and now we're able to deploy the whole version.
But we have to switch the version each time we open the PROD project. Is there a way to automatically switch the version?

Regards,
Daniel


Matillion Agent  

Kalyan Arangam —

Hi Daniel,

The only option to directly open a specific version is by using a deep-linked-url.

https://351.243.253.563/#Sales%20Demo/My%20Project/Prod

The above link directly opens project group “Sales Demo”, project “My Project” and version “Prod”.

Hope that helps.

Best
Kalyan


Daniel Petri —

Hi Kalyan,

thank you for the hint.
We'll see if that solves our problem.

Would that perhaps be a useful extension in Matillion that you can specify which version should open when switching the project?

Best,
Daniel


Matillion Agent  

Kalyan Arangam —

Hi Daniel,

I guess we’ve not been able to come up with a simple interface design to include that yet. Moreover, its very rare that customers visit a different version that this may take a lower priority.

Definitely something to consider for a future enhancement.

Best
Kalyan

Post Your Community Answer

To add an answer please login