View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
07849Feature requestsResponse browsingpublic2021-10-22 12:34
Reporterdarknico84 Assigned Togalads  
PriorityhighSeverity@60@ 
Status closedResolutionfixed 
Summary07849: Complete status = N when usesleft > 1
Description

When you make a survey for which you need to have usesleft greater than 1, you cannot get complete status set to Y or to the date of completion ( in participant screen - the one is survey's results browing is fine).
The main problem of this is that when you want to send a reminder to participants not having filled the survey yet, mails are being sent to everybody instead of just the participants without answer.

Steps To Reproduce

1/ setup a survey and create invitations with usesleft of 2 or more for users
2/ answer once the survey
3/ in the results screen the status of complete is Y when in participants screen it's still N

Additional Information

The workaround I found is to use usesleft=1 and resetting it to one before each survey's relaunch

TagsNo tags attached.
Bug heat6
Story point estimate
Users affected %

Relationships

related to 07797 closedDenisChenu Bug reports User with token can answer twice or more without use left more than 1. 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2013-05-20 19:11

developer   ~25318

Last edited: 2013-05-20 19:12

Yes, right.

Think need more survey settings here:

  • Set completed at first completed
  • Set completed each time completed
  • Set completed at last completed (default)

And send confirmation at same thing.

But thing we have to move it in feature request

sammousa

sammousa

2013-05-27 14:25

reporter   ~25396

In my opinion the data in the token table is redundant.

Instead just search for the responses related to each token and show whatever information you prefer (first completed, last completed..)

The only real information is the usesleft column; the other information is just redundant.

mdekker

mdekker

2013-05-30 12:03

reporter   ~25424

When anonymous, you can not link to the responses table so it is not redundant

DenisChenu

DenisChenu

2013-05-30 12:05

developer   ~25425

Last edited: 2013-05-30 12:06

Redundance only for anonymous token , if not completed have the date.

But with more settings:

  • Set completed at first completed
  • Set completed each time completed
  • Set completed at last completed (default)
    It's not redundant.

And , look at : http://bugs.limesurvey.org/view.php?id=7797#c25333

sammousa

sammousa

2013-05-30 12:08

reporter   ~25426

Good point Menno, forgot about that!

DenisChenu

DenisChenu

2013-05-30 12:25

developer   ~25427

With anonymous survey : before enter the survey we test the completed state and the useleft state.

1st : we test the useleft with common_helper/function usedTokens
2nd : we test the completed state (survey/index line 464)

This second test is redudant.

mdekker

mdekker

2013-05-31 09:17

reporter   ~25429

There should be one test in the token model: that test should take care of checking the usesleft and/or completed status. This way we don't need to pass all kinds of rules around the application and keep them in one place.

Keep in mind that usesleft is a feature introduced way after the completed date. The completed date was the only way of checking completion before so that will be all over the application. When usesleft was added some places in the application were updated to make use of usesleft, while at other places i can imagine the completed date being N is still the only check. So to change the behaviour of the compelted field with a setting we must be very careful that the right completion check is done otherwise that might break the application at places we don't expect.

Oh, and for http://bugs.limesurvey.org/view.php?id=7797#c25333 solving that in rules would be the best. Make sure the interface is clear about the possibilities.

DenisChenu

DenisChenu

2013-05-31 09:24

developer   ~25430

@mdekker : I know for old system without usesleft, like a lot of old function in survey/index.php ;).
And you're right: need to test whole right acess in one function only.

replace the common_helper/function usedTokens by a:
SurveyRuntimeHelper/tokenAcess function maybe ? Or you want it in some model ? (Tokens_dynamic?)

What do you mean with "solving that in rules" ? I think first the same think but after more thinking : have an option for a "global" password survey can be a good think to keep.

Denis

Issue History

Date Modified Username Field Change
2013-05-18 15:11 darknico84 New Issue
2013-05-20 19:11 DenisChenu Note Added: 25318
2013-05-20 19:11 DenisChenu Note Edited: 25318
2013-05-20 19:12 DenisChenu Note Edited: 25318
2013-05-27 14:25 sammousa Note Added: 25396
2013-05-30 12:03 mdekker Note Added: 25424
2013-05-30 12:05 DenisChenu Note Added: 25425
2013-05-30 12:06 DenisChenu Note Edited: 25425
2013-05-30 12:07 DenisChenu Relationship added related to 07797
2013-05-30 12:08 sammousa Note Added: 25426
2013-05-30 12:25 DenisChenu Note Added: 25427
2013-05-31 09:17 mdekker Note Added: 25429
2013-05-31 09:24 DenisChenu Note Added: 25430
2013-09-19 13:44 c_schmitz Project Bug reports => Feature requests
2021-10-22 12:34 galads Assigned To => galads
2021-10-22 12:34 galads Status new => closed
2021-10-22 12:34 galads Resolution open => fixed