View Issue Details

This bug affects 1 person(s).
 12
IDProjectCategoryView StatusLast Update
12531Bug reports_ Unknownpublic2017-08-17 20:45
ReporterazsTUE Assigned Touser14106 
PrioritynoneSeverityminor 
Status closedResolutionunable to reproduce 
Product Version2.67.x 
Summary12531: Quota Counting
Description

By setting four quota which refer to the same question (List, Radio) and to different items of the list (here: "What is your country?") , the survey does not drop out participants when one of these quotas is reached but if the sum of all quotas is reached.

TagsNo tags attached.
Attached Files
Quota-Setting.png (191,982 bytes)
Bug heat12
Complete LimeSurvey version number (& build)2.67.1+170626
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL: Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using EditLine wrapper
Server OS (if known)Ubuntu
Webserver software & version (if known)Linux webserver210 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64
PHP Version7.0.18-0ubuntu0.16.04.1 (cli) ( NTS )

Users monitoring this issue

azsTUE, DenisChenu

Activities

azsTUE

azsTUE

2017-07-15 10:12

reporter   ~44088

Right now I saw, that it is still able to continue the survey if you select a country which quota is not not full although the sum is reached (I wanted 30 from Germany, 30 from Denmark, 30 from France and 30 from Japan. All countries except from Denmark are more than ”full" but I have 129 complete answers...). I added the lss-file here

Mazi

Mazi

2017-07-15 17:22

updater   ~44089

Tönis, you worked a lot on the quota action recently, maybe you ca have a look?

azsTUE, can you attach a simple test survey with the country question only and quotas with lower limits for testing?
Alternatively, please upload the survey as LSA file so we can import all the already existing responses as well.

DenisChenu

DenisChenu

2017-07-15 19:47

developer   ~44090

@t6nnp6nn i look at it monday if you don't have time :)

azsTUE

azsTUE

2017-07-15 22:36

reporter   ~44091

Thank you for checking this issue! I uploaded the LSA-file with currently also 31 Danish answers...

user14106

2017-07-17 07:31

  ~44092

I was away all weekend and now I have a rather busy monday. I would be OK to have a look at it but not today. maybe Tuesday-Wednesday. @DenisChenu you are welcome to have that for Monday :)

DenisChenu

DenisChenu

2017-07-17 09:57

developer   ~44093

I remove the 2 other group, set frnech quota to 1, and can not reproduce.

Maybe with a lsa file (Survey Archive) can show some other error :/

azsTUE

azsTUE

2017-07-17 10:34

reporter   ~44094

Thank you for checking! Does this mean, that I made a mistake or is it not possible to combine the six quotas to be sure to have answers like:
No person age of 16
No person from other countries
Not more than 30 from each country

user14106

2017-07-17 10:50

  ~44095

@azsTUE are you sure you are looking at complete answers? Quota counts only completes.
The LSA file you provided contains 4 answers, of them 1 full. The rows seem to have data for each question, but technically incomplete.
Also you have all the questions displayed om the first page. So you end up having all data rows filled but the answers being technically incomplete for the rows that are dropped by quota.
Do you understand the concept of complete/incomplete and what it means in terms of data being saved?

user14106

2017-07-17 11:22

  ~44096

Also note that Quotas are being checked on page change, not via javascript.

DenisChenu

DenisChenu

2017-07-17 11:31

developer   ~44097

@t6nnp6n : the last lsa file is mine :). I update the survey : remove 2 groups and set quota for French to 1.

azsTUE

azsTUE

2017-07-17 14:16

reporter   ~44098

Dear t6np6nn, I think that I understand the concept of complete/incomplete. Now I changed the mode from »question group by question group« to »question by question« to have the drop-out after answering the »wrong« way, e.g. in my survey, when you are younger than 16.
And I checked the answers I received till now: there are answers in the rows as it should be...
Maybe I do not understand the concept of quota in the right way and maybe I replicate myself: The problem was, that the quotas for the county-question did not work for each country but only when the quotas for ALL the four countries were »full«. Nevertheless: Thank you!

user14106

2017-07-17 14:31

  ~44099

I also can not reproduce .

I had a look at the right survey archive now. With question-by-question.
As far as I understand it works well. I get redirected when I choose Denmark as country after clicking next on that page. (ora under 16 or other country)

Can you specify the problem.
Do you get redirected to redirection url if you answer Denmark?

Just to clarify: The answers of the respondents thrown out by quotas get still recorded in the database. The data rows should be marked as not complete and they do not have the "submitdate" column in the data (this is what defines the complete/incomplete). Othewrise the data is stored and it is the way things should be.

Do you see these "out-of-quota" recorda as complete interviews and you have a submitdate value for them?

user14106

2017-07-20 07:55

  ~44119

@azsTUE you still have an issue with that?

azsTUE

azsTUE

2017-07-23 22:33

reporter   ~44204

Hi, the related survey is nearly "finished", the quotas for three of the four countries are more than full (2 or three answers over the quotas), for the last country a few answers are missing. Today I set up a much more simple survey including the same question and quotas and I also could not reproduce the problem I described here as the I was drop out when the quotas were full. So I am a little bit helpless as I also see that it seems not to be a bug when I set up a new survey but I have this problem with the "overfulfillment"...

user14106

2017-08-17 18:49

  ~44306

Since no-one of us can reproduce this, can we close this?

azsTUE

azsTUE

2017-08-17 20:21

reporter   ~44307

Yes, please close this bug report. Thank for your help!!

Issue History

Date Modified Username Field Change
2017-07-15 09:38 azsTUE New Issue
2017-07-15 09:38 azsTUE File Added: Quota-Setting.png
2017-07-15 10:03 azsTUE Issue Monitored: azsTUE
2017-07-15 10:12 azsTUE File Added: limesurvey_survey_228526.lss.xml
2017-07-15 10:12 azsTUE Note Added: 44088
2017-07-15 10:57 DenisChenu Issue Monitored: DenisChenu
2017-07-15 17:19 Mazi Assigned To => user14106
2017-07-15 17:19 Mazi Status new => assigned
2017-07-15 17:22 Mazi Note Added: 44089
2017-07-15 19:47 DenisChenu Note Added: 44090
2017-07-15 22:36 azsTUE File Added: survey_archive_228526-2.lsa
2017-07-15 22:36 azsTUE Note Added: 44091
2017-07-17 07:31 user14106 Note Added: 44092
2017-07-17 09:57 DenisChenu File Added: survey_archive_notreproduce12531.lsa
2017-07-17 09:57 DenisChenu Note Added: 44093
2017-07-17 10:34 azsTUE Note Added: 44094
2017-07-17 10:50 user14106 Note Added: 44095
2017-07-17 11:22 user14106 Note Added: 44096
2017-07-17 11:31 DenisChenu Note Added: 44097
2017-07-17 14:16 azsTUE Note Added: 44098
2017-07-17 14:31 user14106 Note Added: 44099
2017-07-20 07:55 user14106 Note Added: 44119
2017-07-23 22:33 azsTUE Note Added: 44204
2017-08-17 18:49 user14106 Note Added: 44306
2017-08-17 20:21 azsTUE Note Added: 44307
2017-08-17 20:45 user14106 Status assigned => closed
2017-08-17 20:45 user14106 Resolution open => unable to reproduce
2021-09-11 07:13 guest Bug heat 8 => 12