Граф коммитов

33 Коммитов

Автор SHA1 Сообщение Дата
Ferdinand Thiessen 4c15681cd1
Merge pull request #1391 from nextcloud/fix/setting-extra-settings
Fix `setExtraSettings` to accept same type as `getExtraSettings`
2022-10-25 21:50:36 +02:00
Ferdinand Thiessen 17f91b0273 Fix `setExtraSettings` to accept same type as `getExtraSettings`
Removed typing from `Question::setExtraSettings`, as it is required
to support both: assoc. array and object
As we need to support PHP 7 we can only use phpdoc typing,
with php 8 we can use union typing.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-10-25 18:03:12 +02:00
Christian Hartmann 117de59a47
Use user's timezone for timestamps in CSV export
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2022-10-24 21:35:35 +02:00
Ferdinand Thiessen 641a003fb3 Feature: Allow shuffling of answer options
This introduces an question option to randomize the order of the answer options
by using the Fisher-Yates algorithm.
Shuffling the order of the answer choices reduces bias in responses.
Implements #1067

If no shuffling is enabled the options are sorted in the order they were
created, as currently they are shown as returned by the database which
is not necessarily sorted. Fixes #1007

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2022-09-20 02:06:58 +02:00
Jonas Rittershofer 9713694973 Export forms for User Migration
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-08-20 00:08:38 +02:00
Jonas Rittershofer 9c67804bf9 Move FormHash creation to Service
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-08-20 00:08:38 +02:00
Christian Hartmann 921273af5a
Switch to ListItem and add counter/second line
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2022-08-11 18:41:43 +02:00
Christian Hartmann 6de2840e82
Move to Psr\Log\LoggerInterface
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2022-08-01 00:14:33 +02:00
Jonas Rittershofer 81ef09b9a8
Invert submitOnce
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-07-10 21:59:11 +02:00
Jonas Rittershofer 3202140ba3
Fix Tests
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-07-01 16:59:59 +02:00
Jonas Rittershofer e90412e910
Some basic API tests
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:41:32 +02:00
Jonas Rittershofer b3a4e1baa0
Fix tests
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:40:20 +02:00
Valdnet 14cabb179f
Fix test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-05-17 10:14:43 +02:00
Jonas Rittershofer 21c03dd202
Add UID to export
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-14 23:27:01 +02:00
Jonas Rittershofer 7769b1456f
Add simple question description
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-04-24 21:36:01 +02:00
Christian Hartmann e213cc0703
Adjust tests to new date/time formats
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2022-04-08 17:28:02 +02:00
Joas Schilling 04b53f1f75
Update master php testing versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-07 16:45:37 +02:00
Jonas Rittershofer cdaf802100
Bump php-dependencies
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-04-06 22:19:29 +02:00
Jonas Rittershofer 15ec0a4b1d Minversion 22
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-04-05 10:11:24 +02:00
Jonas Rittershofer d2446e0b8e Fix tests
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-03-31 11:05:54 +02:00
Jonas Rittershofer 51e8574625
Fix Linting Warnings
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-12-04 13:42:06 +01:00
Jonas Rittershofer cd4cc77cb1
Fix Activity Link
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-06-10 19:55:53 +02:00
Jonas Rittershofer 4ade6de00f
Test FormsService
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-05-02 23:54:58 +02:00
Jonas Rittershofer 64ccb5a5de Add some tests
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-04-15 23:59:23 +02:00
Jonas Rittershofer 644d92e149
Delete Forms for deleted User
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-04-14 14:13:22 +02:00
Jonas Rittershofer 38e05d641e
Extend Submission Tests
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-04-11 00:08:43 +02:00
John Molakvoæ 047bee0a81
Fix codecov
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-03-29 11:51:47 +02:00
Jonas Rittershofer 1b76d2f32c
SubmissionService Test
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-03-28 23:01:00 +02:00
Jonas Rittershofer 71d8692be7
Activitiy Tests
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-03-18 16:59:25 +01:00
John Molakvoæ (skjnldsv) 50d9e83ed1
Bump copyrights
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-04-29 11:43:18 +02:00
Roeland Jago Douma 94e7952ae3
Kill the tests for now
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-08-30 10:56:15 +02:00
affan98 1fce2a39fb Version 1.0.3 2019-05-14 03:03:59 -04:00
affan98 d2c38a1950 initial commit 2019-05-13 19:15:45 -04:00