Skip to content

Feature/ranking question type#3247

Closed
datapumpernickel wants to merge 2 commits intonextcloud:mainfrom
datapumpernickel:feature/ranking-question-type
Closed

Feature/ranking question type#3247
datapumpernickel wants to merge 2 commits intonextcloud:mainfrom
datapumpernickel:feature/ranking-question-type

Conversation

@datapumpernickel
Copy link
Copy Markdown

Adds a new 'ranking' question type that allows respondents to drag-and-drop predefined options into their preferred order. Answers are stored as a JSON-encoded array of option IDs in a single Answer row, following the same pattern as the grid type.

It could potentially implement a more advanced ranking algorithm evaluation for the responses.

Disclaimer: this code has been mostly written by genAI

Adds a new 'ranking' question type that allows respondents to
drag-and-drop predefined options into their preferred order.
Answers are stored as a JSON-encoded array of option IDs in a
single Answer row, following the same pattern as the grid type.

Signed-off-by: paul bochtler <65470117+datapumpernickel@users.noreply.github.com>
@datapumpernickel
Copy link
Copy Markdown
Author

As proposed in #1278

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2026

Codecov Report

❌ Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
lib/Service/FormsService.php 0.00% 3 Missing ⚠️
lib/Service/SubmissionService.php 96.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@Chartman123
Copy link
Copy Markdown
Collaborator

@datapumpernickel thanks for the PR 👍🏻 we're currently refactoring Forms to use Vue3. Could you please already base your branch on refactor/vue3 instead of main? we also switched to vue-draggable-plus in that branch instead of vuedraggable.

@datapumpernickel
Copy link
Copy Markdown
Author

Ok, I will check that out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants