Data Loss After Branch Deployment in Test Environment

0
Hello,   We use two branches in our test environment: a main branch and a backup branch where developers deploy their work for testing. After successful tests, changes are merged into main and deployed again. There are domain model differences between the branches. When we deploy the backup branch, some records (e.g. projects) are created. But after deploying the main branch, those records are deleted. Even when we redeploy the backup branch, the data doesn't come back; I believe this is due to differences in the domain model.   What is the best way to prevent data loss in this scenario? Would implementing a “data snapshot” approach be appropriate here?   Thanks in advance.
asked
2 answers
1

Hi,

Using data snapshots and backup are ok, but the only major thing that can be done is to keep the domain model in both the branches aligned. And If a developer needs to test new features, consider using feature branch or local test.

 

This is also a reason that we should have two environment, dev and accp, so atleast the data  on accp will not be altered with multiple deployment of different branches.

 

Thanks

 

 

answered
0

You could restore backups of course. 

Or dedicate the test environment to the branch line and use accp for main line.

Or create export-import functionality to restore data for your new entities.

answered