Commit graph

240 commits

Author SHA1 Message Date
Colin Kuskie
80dfb9ffd0 Throw an exception in all wobjects if the main template (used by view)
has been deleted.
2009-06-02 19:34:18 +00:00
Patrick Donelan
084a0c3105 Fixed naff Survey::takenCount bug, added explicit test for it 2009-06-02 02:42:37 +00:00
Graham Knop
66843db604 string evals are evil 2009-05-29 21:41:52 +00:00
Patrick Donelan
1a4b673843 Made Survey Test Suite feature was dependent on TAP::Parser and TAP::Parser::Aggregator 2009-05-29 01:04:45 +00:00
Patrick Donelan
beff1d2166 Survey NYTProf performance improvements
initSurveyOrder now builds a lookup cache to speed up branching
Test suite caches surveyOrder and response itself
Unnecessary sub calls reduced
Updated tests
My largest survey instance test suite, which contains > 1000 tests,
now runs nearly 8 times faster.
2009-05-28 07:24:11 +00:00
Patrick Donelan
d14cf19e9d Added Survey tests for more question types 2009-05-28 07:23:43 +00:00
Patrick Donelan
3a25e806c6 Survey bug fixes
Fixed bugs in the handling of logical sections,
creating of responses and counting of responses.
Added in a bunch of new tests.
Jslinting of all survye js files
2009-05-23 09:54:03 +00:00
Patrick Donelan
5e7c594440 Started fixing Survey responseId handling 2009-05-23 09:53:28 +00:00
Patrick Donelan
beb9b77440 Added Survey www_runTests to run and aggregate all tests
Added more i18n
2009-05-21 08:22:29 +00:00
Patrick Donelan
867aa51507 Fixed Survey bug in handling of logical sections 2009-05-20 10:17:46 +00:00
Patrick Donelan
c64a1de9f3 Made Survey upgrades conditional in upgrade script because my 7.7.6 upgrades got
committed halfway through the release process.
2009-05-20 10:17:31 +00:00
Patrick Donelan
3105b27034 Improved Survey test setup 2009-05-16 09:06:00 +00:00
Patrick Donelan
2bde3dc02c Moved Survey test upgrade to 7.7.6-7.7.7 upgrade script 2009-05-15 23:42:10 +00:00
Patrick Donelan
7829d708ea Survey test suite now functional.
Tests are defined via a JSON-encoded spec, through Web Crud interface
Test results are TAP encoded, and TAP parsed and prettified into HTML
Added i18n, help and tests
2009-05-15 10:33:47 +00:00
Graham Knop
1f3ab6a419 export cleanups and mobile style 2009-05-15 09:30:20 +00:00
Graham Knop
18993c5924 pod and i18n fixes 2009-05-14 22:12:33 +00:00
Patrick Donelan
f18d4e193e Added crud for Survey test suites 2009-05-14 07:14:38 +00:00
Patrick Donelan
d432d1e115 Added www_showFeedback to Survey so that you can dial up response feedback on demand 2009-05-13 09:22:26 +00:00
Patrick Donelan
fdf7e68827 Added Survey feedback template
Added survey feedback template and method for returning the templated feedback for a given response
Used this to clean up the default survey template, and updated the i18n and help
2009-05-13 08:59:50 +00:00
Colin Kuskie
6fc0bf8866 Fix POD syntax errors in Survey.pm 2009-05-13 02:59:00 +00:00
Patrick Donelan
c9861bdf8f More Survey refactoring
refactored out repetitive checking of takenCount
added i18n template variables to Survey template so that user is told what happened for timeouts etc..
2009-05-13 02:10:57 +00:00
Patrick Donelan
6815cd76aa Improved handling of Survey restart 2009-05-13 02:10:34 +00:00
Patrick Donelan
79db642219 Refactored Survey for more happy endings
Refactored www_submitQuestions to use utility submitQuestions sub (for ease of testing)
Replaced numeric flags, completedCode etc..
Added restart() and exitUrl() to the Expression Engine
Added more Survey instance tests
2009-05-12 12:36:26 +00:00
Patrick Donelan
4332b57ba2 Made Survey date picker more i18n-generic until we support proper i18n 2009-05-12 00:21:21 +00:00
Patrick Donelan
9e2cdeca13 Added some tests for Survey visualization 2009-05-11 11:06:55 +00:00
Patrick Donelan
b12906a777 Added Survey Visualization
Does nothing if GraphViz module not installed (the default until wre 0.9.3)
Shows sections and questions as nodes, answers as edges.
Branch targets also show up as edges
Branch expression edges are currently disabled
2009-05-11 10:21:14 +00:00
Patrick Donelan
494efe1cf1 Added Country question type to Survey
Refactored WebGUI::Form::Country so that it can be used to return a list of countries
2009-05-06 02:38:26 +00:00
Kaleb Murphy
c452f92224 Added correct mime type for json returns which were missing it. 2009-04-25 04:50:17 +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
Kaleb Murphy
caffe2751a Preliminary check in for new Survey text number type and validation. 2009-04-17 17:08:42 +00:00
Patrick Donelan
eec6ac3e47 Refactored Edit Survey page to improve UI, fixed some minor bugs,
cleaned up template and css, reduced memory usage
2009-04-17 09:39:52 +00:00
Patrick Donelan
feb17b8acf Improved Edit Survey section list.
Removed unnecessary <br>'s from Section list
Made sections panel resizable
Made current selection highlighted via CSS
2009-04-16 05:18:45 +00:00
Kaleb Murphy
234914c3e2 Survey drag-and-drop now returns the edit box for the item just drug. 2009-04-10 20:03:29 +00:00
Kaleb Murphy
2b2e876b6d Added default question type export function. 2009-04-10 17:27:25 +00:00
Kaleb Murphy
99a1418714 Default Survey Question settings now save 100% of the answer configuration data. This will not affect previous Surveys, but allow new defaults to be more complex if desired. 2009-04-10 16:06:20 +00:00
Colin Kuskie
4a5d907d77 POD Coverage for Event, SQLReport, Survey, Navigation, Article, and Form/HTMLArea 2009-04-10 02:02:07 +00:00
Kaleb Murphy
af00b7a881 Survey summaries now use YUI datatables and charts for extra bling. 2009-04-08 20:03:41 +00:00
Kaleb Murphy
a6a70a46e0 Summaries added to the survey 2009-04-05 19:33:46 +00:00
Kaleb Murphy
cd8402919d Survey summary code, intermediate check in. Zero changes in function. 2009-04-03 17:14:10 +00:00
Colin Kuskie
f07a6c066b Fix broken POD, and add missing POD. 2009-04-02 17:20:04 +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
Patrick Donelan
07e03c7b15 Fixed Survey to follow convention that a value of 0 for maxResponsesPerUser
should imply unlimited. Updated tests and docs to match.
2009-03-27 05:12:57 +00:00
Kaleb Murphy
046dae4f31 Moved multiple choice questions to the data base, and they can now be edited globally from the Survey edito 2009-03-26 21:02:30 +00:00
Kaleb Murphy
cafd31f87a New Question type. Just a Month-Year type with a month drop down and a 4 digit year text box. 2009-03-22 18:18:38 +00:00
Kaleb Murphy
fb8cd3af30 Removed debug sleep 2009-03-16 16:33:46 +00:00
Kaleb Murphy
cc11480d6d Added Edit Survey loading mask to reduce loading confusing on slow connections. 2009-03-16 15:59:20 +00:00
Patrick Donelan
b1b033afa5 Added Survey Workflow onSurveyEndWorkflowId
Fixed username bug
2009-03-15 06:34:37 +00:00
Patrick Donelan
d95a076ac5 Add optional userId param to Survey::responseId so that you can create a
response for a specific user (not just current user bound to session)
2009-03-15 06:34:15 +00: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
Kaleb Murphy
0db9be4512 Added goto to sections and questions. Order of precedence is answer, question, then section. 2009-03-09 17:23:06 +00:00