Ferdinand Thiessen
22bf12b721
feat: Validate custom input traits for short answers of new submissions
...
* Also validate `extraSettings` especially the regex for custom short input
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-27 14:48:22 +01:00
Ferdinand Thiessen
8303476b48
fix: Make sure "other" answers are correctly handled
...
In the backend it handling the "other" answer setting was not changed
after switching from object to array for extra settings.
In the frontend the value handling of the checkboxes or radio switches
was not correct as the initial values is always an empty array.
This lead to issues with radio switch answers.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-26 22:37:08 +02:00
Ferdinand Thiessen
fb533d74cb
feat(sharing): Allow to share forms with circles
...
* Add CirclesService to handle all circles related functions
* Add activity related functions for circle shares
* Add frontend functions to allow sharing with circles
* Add circles app to phpunit workflows
* Make `FormsService` compatible with circle shares
* Add support for circle shares to
* `notifyNewShares`
* `getShareDisplayName`
* `isSharedToUser`
Co-authored-by: Chartman123 <chris-hartmann@gmx.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-10 16:36:24 +02:00
Ferdinand Thiessen
2afddc0eaf
feat: Add new activity for submissions on shared forms
...
Also move activity creation from controller into service.
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-10-06 18:34:55 +02:00
Andrii Ilkiv
29d2b6f8ed
Optimization of FormMapper::findById calls
...
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
2023-09-28 22:38:56 +02:00
Andrii Ilkiv
da261ff191
feat: Add 'Other' option for radio/checkbox questions.
...
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
2023-08-29 08:51:22 +03:00
Ferdinand Thiessen
6cf541da32
fix: Sanitize file name when writing a CSV file
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-06-28 16:38:29 +02:00
Jonas Rittershofer
2f4d09e8a5
CS:Fix
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2023-05-18 23:48:25 +02:00
Ferdinand Thiessen
c1f423a88a
fix: Replace some deprecated methods and fix static code analysis issues
...
* `OCP\IInitialStateService` is deprecated in favor of `OCP\AppFramework\Services\IInitialState`
* Remove unused `IGroupManager` in `PageController`
* QueryBuilder execute is deprecated
* Minor other issues
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-04-02 21:34:05 +00:00
Christian Hartmann
68b8140e7c
Make timestamp in csv export ISO 8601 compliant
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2023-03-05 22:33:01 +01:00
Christian Hartmann
d17943947e
Add lastUpdated property to Form
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2023-02-21 00:27:40 +01:00
Jonas Rittershofer
30a55026a7
Fix public view
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2023-02-10 17:37:43 +01:00
Ferdinand Thiessen
c93ee8ae8c
fix(submissions): Small SubmissionService fixes
...
* Added missing used interfaces
* Added missing property (`currentUser` was used but not defined)
* Replace deprected `League\Csv\AbstractCsv::getContent` with
`League\Csv\AbstractCsv::toString`
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-02-06 14:33:24 +01:00
Ferdinand Thiessen
4211aa409f
Implement Share permissions and allow updating them
...
Allow users with `results` permission to query and export results
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-01-31 13:32:45 +01: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
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
Jonas Rittershofer
4f122436bd
Move reading submissions to service
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-08-19 23:41:44 +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
35d2197fdb
Configure sharing options
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-07-01 16:59:59 +02:00
Jonas Rittershofer
ca4917a1db
Restrict Form Creation
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-07-01 16:59:58 +02:00
Jonas Rittershofer
d5f16c37fc
Fix Share-notifications, delete shares with form
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:40:20 +02:00
Jonas Rittershofer
c252c83761
Fix access on submit
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:40:19 +02:00
Jonas Rittershofer
bdaade0a15
Load unknown shared forms and provide permission prop
...
Also fixes #806
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:40:19 +02:00
Jonas Rittershofer
e2e1f0b880
Add legacy link, new public link sharing, fix internal view
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:40:18 +02:00
Jonas Rittershofer
89637d9742
Rewrite Sidebar Sharing
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:40:18 +02:00
Valdnet
c06372dcd7
l10n: Change to uppercase
...
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-05-17 08:25:29 +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
Christian Hartmann
384751ba58
Cleanup Question-/AnswerTypes
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2022-04-12 18:53:20 +02:00
Christian Hartmann
5352a2dc29
Validate date/time answers
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2022-04-08 17:28:02 +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
4ade6de00f
Test FormsService
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-05-02 23:54:58 +02:00
Christian Hartmann
ced76feb9d
Validate submission
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2021-04-15 23:59:18 +02:00
Jonas Rittershofer
f2eb2bac16
Fix export again :(
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-03-28 22:56:19 +02:00
Jonas Rittershofer
488b3568d3
Fix export multiple answers
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-03-16 20:25:58 +01:00
Jonas Rittershofer
ede2068ee6
Clarify translations
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-28 12:40:52 +01:00
John Molakvoæ
cbed484547
Merge pull request #780 from nextcloud/enh/export_to_cloud
2021-02-26 09:11:02 +01:00
Jonas Rittershofer
af0c72cd25
Clarify Access, redirect if necessary, show EmptyContents if wanted
...
Empty-Content if noForms
Empty-Content if unaccessable hash
Empty-Content if user can't submit anymore.
Reset Empty-Content and data, when switching form
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 15:54:44 +01:00
Jonas Rittershofer
1b26246149
API return shared forms
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 15:54:42 +01:00
Jonas Rittershofer
f22eab7b7a
Enclose all CSV fields
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 14:51:34 +01:00
Jonas Rittershofer
6da61afea9
Export to Cloud
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 14:51:33 +01:00
Jonas Rittershofer
f59d2392f0
Move csv handling to SubmissionService
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 14:51:33 +01:00
Jonas Rittershofer
79e6948b87
Publish Activities
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 13:00:59 +01:00
Jonas Rittershofer
e87f89618a
Fix Sharing if deleted users are in list
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-23 01:47:42 +01:00
John Molakvoæ (skjnldsv)
cadf30a662
CS fix
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-01-20 10:07:53 +01:00
John Molakvoæ (skjnldsv)
90d862ee1e
Add licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-01-20 09:51:56 +01:00
John Molakvoæ
af898d3ea4
Merge pull request #386 from nextcloud/fix/result_order
2020-06-09 10:31:46 +02:00
Jonas Rittershofer
c5352a40ae
Replace userId with userSession->UID
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2020-05-27 16:57:45 +02:00
Jonas Rittershofer
19fde80802
Include Logger for debugging
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2020-05-27 13:52:59 +02:00