Welcome! Log In Create A New Profile

Advanced

DM-2: [WebDev] Best way to version major upgrades

Posted by harvey68 
DM-2: [WebDev] Best way to version major upgrades
September 08, 2018 06:56PM
Autor: DM-2

Link zum Beitrag: [27130.foren.mysnip.de]

I currently develop both windev and webdev (from a common separate
project model).

I am about to start a number of upgrades and new modules for the webdev
project - and I'm not sure about the best way to version webdev.

I can either simply clone the project and keep production and
development separate - or create a new configuration in the current
project.

Any opinions, advice, caveats on either approach?

Thanks

DerekM
Piet van Zanten: [WebDev] Best way to version major upgrades
September 08, 2018 07:03PM
Autor: Piet van Zanten

Link zum Beitrag: [27130.foren.mysnip.de]

Hi Derek,

I always clone the project and use the old project to do maintenance
stuff (correct urgent bugs) and do the development of new features in
the new project. As long as the new project has not been deployed yet,
use ONLY the old version to do changes in the analysis, because the old
project will not be able to read it if you make changes using the new
version.
Before opening the new project for the first time, be sure to temporary
rename the old project directory, so any references to it in the new
project will be invalid and will generate warning messages. After these
errors have been corrected you can rename the old project directory to
its original name. If you don't do it that way, some elements of the old
project may inadvertently be upgraded by the new version and become
unreadable in the old version.
Perhaps there's a better way using configurations, but I don't trust it
enough to use it.
Apart from that, I don't have to upgrade the deployment server yet so
nothing has to change on the server side.

Kind regards,
Piet
Fabrice Harari: [WebDev] Best way to version major upgrades
September 08, 2018 07:04PM
Autor: Fabrice Harari

Link zum Beitrag: [27130.foren.mysnip.de]

Hi Derek,

do NOT use configurations for that... It's NOT made or that at all.
Configurations are for differents targets (by example, you have a windev
program and a service developed in the same project) not for branches.

So either do it as Piet as described (my preferred way too, even though
I simply do a backup of he old version that I restore in a different
directory after migrating), or use the SCM and a branch... You may want
to do some heavy testing with that one before doing a production run,
because you'll need to perfectly understand what's going on when if you
don't want to hit a wall.

Best regards
Arie: [WebDev] Best way to version major upgrades
September 08, 2018 07:05PM
Autor: Arie

Link zum Beitrag: [27130.foren.mysnip.de]

Derek,

as I read it you are talking about upgrading/updating your own software
and not migrating from older WD/WB version to a newer one (v23....)
right?

However in both situations I would do the same, as you discribed
yourself :


And that you can do either by using different directories and copy the
complete projects. Or use the SCM for that to keep track of older
versions and/or use branches as Fabrice said. I usually do both by the
way, one can't have enough copies just in case....

An important thing to keep in mind is wether your users are partially
working in the old and new version at the same time. Then I should avoid
changing names of databasefields or changing the database structure in
general. Although there are way's to get around this it will complicate
things. Adding new fields/tables is not much of a problem however.
DM-2: [WebDev] Best way to version major upgrades
September 08, 2018 07:05PM
Autor: DM-2

Link zum Beitrag: [27130.foren.mysnip.de]

Thanks Piet, Fabrice, Ari .. for taking the time to provide good advice
as always.

Cloning it is


Regards,
Derek
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: