Patrick Donelan
6c58e1de81
Added Survey meta-targets NEXT_SECTION and END_SURVEY to allow for more
...
convenient jumping
Improved processGotoExpression tests
2009-04-22 07:19:23 +00:00
Patrick Donelan
99855719d0
Survey bug fixes: Verbatim responses now properly recorded
...
Added useText option to responseValuesByVariableName so that it can be
used for both branch expressions and [[var]] text substitution correctly
Added extra verbatim handling to [[var]] text substitution
All survey test now pass, except for one involving True/False
multi-chocie bundle, soon to be fixed by updating bundle
2009-04-22 05:16:29 +00:00
Patrick Donelan
c3ea6d4683
Added Survey back button, with option to turn it on/off, tests, and i18n
...
Noticed that some Survey tests are broken, will fix tomorrow
2009-04-21 07:12:07 +00:00
Graham Knop
edca468d50
prevent test from leaking users and surveys
2009-04-10 00:51:44 +00:00
Patrick Donelan
546d48f68b
Updated Survey tests to not leave behind versionTag
2009-04-09 04:17:23 +00:00
Patrick Donelan
aa8379188a
Survey branch expressions can now resolve score()s and value()s from
...
other survey instances.
2009-04-09 04:04:39 +00:00
Patrick Donelan
a7cb9b031d
Made Survey ExpressionEngine disabled by default, controlled via config
...
file enableSurveyExpressionEngine flag
Added branching based on question score and section score total
Added more tests
2009-04-08 08:12:44 +00:00
Patrick Donelan
9ea4f1cd20
Replaced Survey parseGotoExpression with dedicated ExpressionEngine.
...
Improved gotoExpression validation error reporting
Added lots more tests
2009-04-08 08:12:14 +00:00
Patrick Donelan
c1b18ea9bb
Some fixes to the way Survey handles recordedAnswer, value, etc..
2009-04-07 07:15:33 +00:00
Patrick Donelan
c1ac5b9761
Fixed SurveyJSON->questions which was short-changing getGotoTargets
2009-04-02 05:55:23 +00:00
Patrick Donelan
be4133d72c
Improved Survey validation messages
2009-04-02 05:04:23 +00:00
Patrick Donelan
654f8d6b72
Rewrote Survey gotoExpression tests now that we have perl power in
...
expressions
2009-04-02 01:54:21 +00:00
Patrick Donelan
3d70a213cc
Made Survey branch expressions eval in safe compartment
2009-04-02 01:53:58 +00:00
Kaleb Murphy
f85c9fa8f8
Rolling back inadverent changes.
2009-03-31 04:12:23 +00:00
Kaleb Murphy
e73a7645a7
Survey now shows warnings if bad goto, bad gotoExpressions, no question text, survey looping,
...
or no question answers are found.
2009-03-31 04:08:44 +00:00
Colin Kuskie
4e2a8bab91
Bump up the version for Clone, since the new version works with
...
perl 5.10.
Have SurveyJSON use it instead of dclone.
2009-03-30 19:47:27 +00:00
Graham Knop
4b5b4b9cb0
test fix
2009-03-27 02:03:18 +00:00
Kaleb Murphy
569151c4ad
Fixing the fix that shouldnt have been fixed.
2009-03-26 23:32:01 +00:00
Kaleb Murphy
9c60e75cf7
Text has changed
2009-03-26 23:27:14 +00:00
Colin Kuskie
12c5b14ab4
Handle different random sort orders on different machines.
2009-03-12 21:12:21 +00:00
Patrick Donelan
5da0379f99
Updated SurveyJSON tests to recognise goto[Expression] on Section and Question
2009-03-11 15:29:04 +11:00
Patrick Donelan
7ec5cab126
Merge branch 'master' into survey
...
* master: (121 commits)
Fix a POD typo.
correct inbox message from user preface
Fix a typo in the Default gallery view template
Documentation bug in buildArrayRefOfHashRefs
changed screenshots in Matrix Listing view to popup
matrix privileging fixes
Fix an i18n typo in the Post user defined variables.
Remove debugging code.
approval workflow fix
matrix upgrade and privileging fixes
fixed: Template parser cannot be set
forward porting gallery bug fixes
preparing for 7.7.0 dev
parser should be a selectbox, not a selectlist.
labeling survey as beta
fixeding my borkes to the changelog
fixed #9852 : Users can accept private messages from Visitor, but Visitor cannot send messages
preparing for 7.6.14 release
fix AdSpace, Ad tests
Restore the original properties for the profile category that was modified for test.
...
Conflicts:
docs/gotcha.txt
docs/upgrades/upgrade_7.6.10-7.6.11.pl
lib/WebGUI/Asset/Wobject/Survey.pm
lib/WebGUI/Asset/Wobject/Survey/SurveyJSON.pm
2009-03-11 15:26:07 +11:00
Graham Knop
d7649d3212
survey test fix
2009-03-03 17:07:53 +00:00
Patrick Donelan
50091e8e3a
Started working on Survey Multiple Choice bundle management.
2009-02-16 00:13:58 +00:00
Patrick Donelan
d882181fd1
Started refactoring the Survey.pm Wobject class
...
Refactored www_jumpTo and added tests
Added Params::Validate
Improved docs
Made call to SurveyJSON->createSurveyOrder() unnecessary
Turned ResponseJSON->nextResponse a mutator
2009-02-11 09:25:42 +00:00
Patrick Donelan
306502465c
Started refactoring nextQuestions in ResponseJSON
...
Made perlcritic happier
Extracted getQuestionResponses from processGotoExpression
Eliminated getPreviousAnswer
2009-02-06 01:56:54 +00:00
Patrick Donelan
345989370f
Renamed ResponseJSON branching methods
2009-02-06 01:56:18 +00:00
Patrick Donelan
932a033b58
More ResponseJSON refactoring
...
Removed unnecessary $session argument from recordResponses
Refactored nextQuestions to return a list rather than an arrayref
Lots more documentation for ResponseJSON
More param validation for ResponseJSON
Refactored recordResponses
Updated tests
2009-02-06 01:55:56 +00:00
Patrick Donelan
90d314d2f1
Refactored next/last response/section related accessors and mutators
...
(and tests).
Added more documentation.
2009-02-06 01:55:33 +00:00
Patrick Donelan
669e986189
Replaced ResponseJSON's implementation of shuffle with List::Util's
...
shuffle and updated Colin's ninja shuffle tests
2009-02-04 02:05:44 +00:00
Patrick Donelan
66a2adcbe5
Moved ResponseJSON data hash to private variable, for security and
...
consistency with SurveyJSON
Added some more accessors/mutators, and param validation
2009-02-03 08:32:40 +00:00
Patrick Donelan
821635eb71
Refactored ResponseJSON and SurveyJSON
...
Added Params::Validate to ResponseJSON.pm
Refactored ResponseJSON constructor and re-ordered params for
consistency
Added new ->session accessor
Updates tests
Removed unnecessary logging methods
Further refactored SurveyJSON, gave private variables underscores,
replaced direct hash access with accessors
2009-02-03 08:31:43 +00:00
Patrick Donelan
d00c8661f3
Made first argument to SurveyJSON contructor $session for consistency
...
with rest of wg.
Also added Params::Validate validation.
2009-02-03 08:31:07 +00:00
Patrick Donelan
fe32551bca
Added totalSections/Questions/Answers helper subs, refactored
...
getDragDropList to use helper subs, and added extra $address param
documentation.
2009-01-21 03:34:22 +00:00
Patrick Donelan
6d10570fdb
Refactored SurveyJSON's new, freeze and addObject for readability
2009-01-20 07:34:55 +00:00
Patrick Donelan
34b44def2f
Added gotoExpression tests (from flux branch)
2009-01-14 06:14:37 +00:00
Patrick Donelan
fc3851705a
Implemented Survey branching expressions ( #9233 ). Woot!
2008-12-15 10:25:44 +00:00
Colin Kuskie
941240370b
Add a mutator for questionsAnswered, with tests.
...
Correct POD for recordResponses.
Begin recordResponses answer processing tests.
2008-12-15 00:09:03 +00:00
Colin Kuskie
aa04599aec
recordResponse tests (just a few)
...
Fix a bug where if a section is terminal, and has no questions, it did not return the terminal flag as true.
A little recordResponse POD.
2008-12-13 03:56:26 +00:00
Colin Kuskie
aafd5e5a2e
goto tests.
2008-12-12 23:33:45 +00:00
Colin Kuskie
574d6cf036
nextQuestions tests.
...
Add POD, and make sure that answers returned by nextQuestions are safe refs.
2008-12-12 19:27:12 +00:00
Colin Kuskie
98294e4e78
Add tests for nextSectionid, nextSection, currentSection.
...
Add more POD to ResponseJSON
2008-12-12 00:36:08 +00:00
Colin Kuskie
c60393e44a
Tests for createSurveyOrder and shuffle.
...
POD for several methods.
2008-12-12 00:03:16 +00:00
Colin Kuskie
1c1f01d473
Change ResponseJSON to use a proper mutator for startTime.
...
Add tests for startTime.
Survey uses the accessor, and no longer needs to manually set startTime.
2008-12-11 19:45:19 +00:00
Colin Kuskie
08bf6b5147
Flesh out the ResponseJSON test more. Add POD.
2008-12-10 02:25:42 +00:00
Colin Kuskie
8ea45fe456
Switch to using dclone from Clone::clone due to bugs under
...
perl 5.10
2008-12-05 04:21:43 +00:00
Colin Kuskie
ace2c81fca
update SurveyJSON test to fix perl 5.10 misleading errors
2008-12-05 03:41:29 +00:00
Colin Kuskie
75da4c46bd
Add more tests for coverage.
...
Interim checkin for debug assistance.
2008-12-05 03:32:47 +00:00
Colin Kuskie
a50c27de67
add POD, fix a few typos.
...
Add tests for updateQuestionAnswers
2008-12-04 23:35:40 +00:00
Colin Kuskie
75f6497924
Tests for getEditVars, getEditSectionVars and addAnswersToQuestion.
...
Add POD.
Fix a bug with setting verbatims in addAnswersToQuestion
2008-12-04 22:01:17 +00:00