cerberus-core
cerberus-core copied to clipboard
Saving testcase header deleted all the properties
How to reproduce?
- Create a testcase defined for 2 countries out of 3 (let's say: FR, BE and US is not selected)
- Create properties all defined for all countries available (2: FR, BE)
- Save the test case
- Edit the testcase header and reset countries and then only select US (FR and BE) are not selected
- Save the test case
- All your properties are gone with no way to retrieve them.
It was actually a missed click (I went too fast) and I would have loved to have a warning popup saying it was going to remove some properties
Question is what would be expected ? If we defined the properties for 2 countries that are removed where would you expect the property to be saved ? It can't be on US as it was not selected. If I understand right, you would only expect a warning when removing some countries delete all variation of a given property ?
Yep, it would be very useful to avoid data loss I this situation :) I believe it can be determined if any property value is about to be lost (if the value is defined for another country, it’s fine, the value can be retrieved from this one)