How best to version control massive configuration for an application?

Apologies if this doesn’t make sense, English is not my first language.

I’m working on an application where workflow is split into ‘rules’ that are defined on several pages of an Excel spreadsheet, a VB script strips out the descriptions of the states etc and leaves only numbers, then exports this configuration as MySQL that is then imported into the database from which the application works.

We have 2-3 developers working on the spreadsheet. Often the spreadsheet is opened from it’s location on a shared network drive, minor changes made and sometimes the version number is not incremented.

This makes it very hard to track changes and also who made them and why. Ideally we would pull the spreadsheet to a working directory, do a diff and commit changes then push them to a master repository. It seems like there are no viable tools to do such a thing with Excel.

So my question is what would be a better way to support a very large configuration, make it version controllable and still human readable?

2

  1. The first thing to do is to move to version control without modifying anything. Just get the files in there. If you discover any breakage later you can still retry.
  2. Enforce a “lock” on the sources until you reach step 4.
  3. Convert everything to a non-binary format. In the case of Excel you should be able to convert to OOXML, or you could go for a simpler format like ODS.
  4. Verify that it all still works.

You can do this on a per-file basis if you want the files to be available as much as possible while doing the conversion. Or you could automate the conversion and (unless you have truly insane amounts) get it done in seconds.

At this point you’re one step away from separating code and data properly (as @FrustratedWithFormsDesigner suggested), at which point you can leave the desert of horrible embedded code for the luxury of code reuse, non-procedural code and automated testing.

1

I’d like to post some ideas and information, which you can pick and choose from, as it’s partly a matter of taste, opinion and what resources you have available.

Personally, I recommend using git in situations where you need to group files together. It’s the only version control software I know of, that can safely do this. I recommend having your own git-server (gitolite is very good for this purpose).

I have the following setup:

  • gitolite + git for version control + gitweb for an easy overview.

  • A CGI-script on the same server, which is basically a “visitor
    counter”.

The CGI-script opens a file, reads a number from it, increments the number and stores it back into the file; it also packs the date, the seconds/minutes/hours and other information into one single packet and sends to the requesting user.
The requesting user is a shell-script, which is executed every time I compile (build) using Xcode (on Mac). If you’re not using Xcode, you can put it in your Makefile.

The reason it’s a CGI-script that bumps the version number, is that you need one central place (and only one) with atomic access, so that you always get a unique number.

It does not matter if you get version 0.1.4 and your buddy gets version 0.1.5 and your buddy submits version 0.1.5 before you submit your version; the most important thing here is that the version numbers are always unique.
-And if you don’t like your version number, just request another one. 😉

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa

How best to version control massive configuration for an application?

Apologies if this doesn’t make sense, English is not my first language.

I’m working on an application where workflow is split into ‘rules’ that are defined on several pages of an Excel spreadsheet, a VB script strips out the descriptions of the states etc and leaves only numbers, then exports this configuration as MySQL that is then imported into the database from which the application works.

We have 2-3 developers working on the spreadsheet. Often the spreadsheet is opened from it’s location on a shared network drive, minor changes made and sometimes the version number is not incremented.

This makes it very hard to track changes and also who made them and why. Ideally we would pull the spreadsheet to a working directory, do a diff and commit changes then push them to a master repository. It seems like there are no viable tools to do such a thing with Excel.

So my question is what would be a better way to support a very large configuration, make it version controllable and still human readable?

2

  1. The first thing to do is to move to version control without modifying anything. Just get the files in there. If you discover any breakage later you can still retry.
  2. Enforce a “lock” on the sources until you reach step 4.
  3. Convert everything to a non-binary format. In the case of Excel you should be able to convert to OOXML, or you could go for a simpler format like ODS.
  4. Verify that it all still works.

You can do this on a per-file basis if you want the files to be available as much as possible while doing the conversion. Or you could automate the conversion and (unless you have truly insane amounts) get it done in seconds.

At this point you’re one step away from separating code and data properly (as @FrustratedWithFormsDesigner suggested), at which point you can leave the desert of horrible embedded code for the luxury of code reuse, non-procedural code and automated testing.

1

I’d like to post some ideas and information, which you can pick and choose from, as it’s partly a matter of taste, opinion and what resources you have available.

Personally, I recommend using git in situations where you need to group files together. It’s the only version control software I know of, that can safely do this. I recommend having your own git-server (gitolite is very good for this purpose).

I have the following setup:

  • gitolite + git for version control + gitweb for an easy overview.

  • A CGI-script on the same server, which is basically a “visitor
    counter”.

The CGI-script opens a file, reads a number from it, increments the number and stores it back into the file; it also packs the date, the seconds/minutes/hours and other information into one single packet and sends to the requesting user.
The requesting user is a shell-script, which is executed every time I compile (build) using Xcode (on Mac). If you’re not using Xcode, you can put it in your Makefile.

The reason it’s a CGI-script that bumps the version number, is that you need one central place (and only one) with atomic access, so that you always get a unique number.

It does not matter if you get version 0.1.4 and your buddy gets version 0.1.5 and your buddy submits version 0.1.5 before you submit your version; the most important thing here is that the version numbers are always unique.
-And if you don’t like your version number, just request another one. 😉

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật