Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

SAS Visual Analytics Versioning Control using GIT

Reply
Occasional Contributor
Posts: 10

SAS Visual Analytics Versioning Control using GIT

[ Edited ]

I am working on SAS VA (7.2 ) and SAS VA 8.1(cloud). Reports are developed and I need to maintain the version control for the reports. I need to do version control in GIT (Tree structure) . Can someone help me out in on how to save the SA VA reports and save them in GIT.

 

Super User
Posts: 4,026

Re: SAS Visual Analytics Versioning Control using GIT

[ Edited ]

Nice question. SAS VA does not currently have any integrated way of interfacing with external version control tools. In my opinion this is a significant weakness that I hope will be addressed in a future release.

 

SAS VA reports are stored as metadata objects in a SAS metadata repository. To version control a report, the only way I can think of doing it now would be to export the report from the metadata repository as an SPK package, then version control the package. To export an SPK package you can either use SAS Management Console as described in this related article:

https://communities.sas.com/t5/SAS-Communities-Library/Promotion-from-SAS-Visual-Analytics-7-x-to-8-...

 

or you can use the batch export tool:

http://documentation.sas.com/?docsetId=bisag&docsetTarget=n008xsxs34mvcwn1qrgcmugpzu6i.htm&docsetVer...

 

Neither approach looks that great to me. I'd be interested to hear if anyone has tried something like this and what they think.

 

  

Occasional Contributor
Posts: 10

Re: SAS Visual Analytics Versioning Control using GIT

Thank you so much for the response. @SASKiwi

SAS Employee
Posts: 2

Re: SAS Visual Analytics Versioning Control using GIT

Hello,

One way might be to access SAS Content Server as regular WebDAV server. And copy xml files with report definitions from there to repository location. And then run git to keep record changes.

It will not track changes in report metadata, just in report content.

Also understanding changes might be a bit tricky - requiring knowledge of SAS Visual Analytics report xml format.

Thus going from xml change to action in web interface - what was clicked - might not be obvious.

On other hand, plain revert to some yesterday version should be simple. With just substitution of xml file.

 

Now, as always in git, for version control to be really useful, it would be nice if commit action would contain author's comment about changes.

Here it is rather a process in the background that periodically(daily?) commits changes without understanding them.

 

Regards

  Jan Alboszta

 

 

Super User
Posts: 4,026

Re: SAS Visual Analytics Versioning Control using GIT

Thanks for the insights regarding the SAS Content Server. I may be inspired to look further. One of the main benefits of version control tools is the ability to automate deployments to remove the possibility of manual mistakes. I'm thinking the batch SPK tools might be the approach to take for this.

Frequent Contributor
Posts: 131

Re: SAS Visual Analytics Versioning Control using GIT

[ Edited ]

This would be a great development for VA,

 

We have successfully implemented a dev ops approach using GIT (and GIT Kraken) and TFS for our Enterprise guide projects, would be good to be able to do the same for VA.

Occasional Contributor
Posts: 6

Re: SAS Visual Analytics Versioning Control using GIT

@SASKiwi, how did you get on with this?

 

We've done something similar in scripting (powershell) the export and import of an SPK of VA Reports rather than a content server approach. This was done as it was more inline with how our normal migration/promotion process worked (ie via the management console)

 

This works well for incremental report updates however it does not manage moderate/major updates where new datasources or other items that require mapping are introduced. We implemented a two folder approach to help mitigate this and initially import into a "staging" location then once tested we import the same SPK into a "published" location.

Super User
Posts: 4,026

Re: SAS Visual Analytics Versioning Control using GIT

Posted in reply to hamishcarpenter

@hamishcarpenter, I've not explored this any further. I like your approach a lot as it sounds pretty straightforward. We also do something similar for report development. We take a copy of the Production report into a working folder and develop it there. When it is ready to roll out we take another copy of the Production report and copy it into an archive folder, then overwrite the Prod version with the new version. It is all a bit manual but it sort of works for now.

Ask a Question
Discussion stats
  • 7 replies
  • 496 views
  • 7 likes
  • 5 in conversation