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!

@github-actions
Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants