Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15413

eZ Survey will loose results when archived versions of the survey is deleted

    Details

      Description

      Hi

      Survey results are deleted when archived versions of the survey is deleted, for instance due to the setting:

      [VersionManagement]
      DefaultVersionHistoryLimit=10
      

      This means that you'll lose survey results if you edit the survey object 10 times or more

      Steps to reproduce

      Create survey
       
         1. Click "Content structure" in top menu
         2. Create a new Survey
            Name : test survey
         3. Create new attribute "Single/Multiple Choice"
            Text of question : Color
            Rendring style : Radio buttons in a row
            Option label : "Red", Value:1, Order:1
            Option label : "Blue", Value:2, Order:2
            Option label : "Green", Value:3, Order:3
         4. Click "Send for publishing"
       
      Submit a survey
       
         1. Click the "Preview" bar below the top menu
         2. Click on link to "test survey"
         3. Click on radio button for "Green"
         4. Click "Submit" button
       
      Verify that result is stored
       
         1. Click "Survey" tab in top menu
         2. Click on "Results" icon in Survey list
         3. Verify that Green has count=1, 100%
       
      Edit the survey object multiple times
       
         1. Click "Content structure" in top menu
         2. Click the "Edit" icon for the "test survey" object
         3. Click "Send for publishing" button
         4. Repeat step 2-3 minimum 10 times
       
      Verify that result is stored again
       
         1. Click "Survey" tab in top menu
         2. Click on "Results" icon in Survey list
         3. Verify that Green has count=1, 100%
      
      

        Issue Links

          Activity

          Hide
          Paul Borgermans added a comment -

          Todo: add a setting so surveys get an unlimited number of versions (temporary workaround)

          Show
          Paul Borgermans added a comment - Todo: add a setting so surveys get an unlimited number of versions (temporary workaround)
          Hide
          Paul Borgermans added a comment -

          And also, update documentation

          Show
          Paul Borgermans added a comment - And also, update documentation
          Hide
          Paul Borgermans added a comment -
          Show
          Paul Borgermans added a comment - Fixed in rev 79 ( http://projects.ez.no/ezsurvey_ezp4/subversion )
          Hide
          Vidar Langseid added a comment - - edited

          The workaround implemented in ezsurvey seems to be correct. However, it looks like ezp 4.2 is ignoring the VersionHistoryClass setting in content.ini.
          Thus, the workaround doesn't work

          Show
          Vidar Langseid added a comment - - edited The workaround implemented in ezsurvey seems to be correct. However, it looks like ezp 4.2 is ignoring the VersionHistoryClass setting in content.ini. Thus, the workaround doesn't work
          Hide
          Paul Borgermans added a comment -

          Fixed in rev 24180 (4.2.0) 24182 (4.1.4)

          Show
          Paul Borgermans added a comment - Fixed in rev 24180 (4.2.0) 24182 (4.1.4)
          Hide
          Vidar Langseid added a comment -

          I can confirm that the workaround now works

          Notes to others:
          Please note that eZ Survey will still loose results when archived versions of the survey is deleted. The workaround is to increase the number of archived versions the system will store for survey objects (you need to configure this manually if you have survey classes with custom names (where class identifier != 'survey' )

          Show
          Vidar Langseid added a comment - I can confirm that the workaround now works Notes to others: Please note that eZ Survey will still loose results when archived versions of the survey is deleted. The workaround is to increase the number of archived versions the system will store for survey objects (you need to configure this manually if you have survey classes with custom names (where class identifier != 'survey' )
          Hide
          Geir Arne Waaler added a comment -

          Documentation is required.

          Geir Arne Waaler
          eZ Documentation

          Show
          Geir Arne Waaler added a comment - Documentation is required. Geir Arne Waaler eZ Documentation
          Hide
          Geir Arne Waaler added a comment - - edited
          Show
          Geir Arne Waaler added a comment - - edited This one is documented. I move it to Closed. http://doc.ez.no/Extensions/eZ-Publish-extensions/eZ-Survey/eZ-Survey-2.x/Known-issue

            People

            • Assignee:
              Paul Borgermans
              Reporter:
              Vidar Langseid
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: