nextcloud / forms

📝 Simple form & survey app for Nextcloud
https://apps.nextcloud.com/apps/forms
GNU Affero General Public License v3.0
326 stars 98 forks source link

Connect Forms to Unified Search by Implementing Search Provider #2392

Open Bibo-Joshi opened 4 weeks ago

Bibo-Joshi commented 4 weeks ago

Nextcloud (please complete the following information):

Is your feature request related to a problem? Please describe. On a nextcloud instance I'm using as a user, there is often a large number of both polls and forms that I can/am requested to fill out. Scrolling through the list to find the right one is sometimes a bit tiresome, especially if I have forgotten if what I'm looking for is a poll or a form.

Describe the solution you'd like I'd like to be able to search for forms by their title and ideally also their description text. AFAIK one "only" needs to implement the OCP\Search\IProvider interface for that and register it.

Describe alternatives you've considered There is also \OCP\Search\IFilteringProvider which would allow to add additional filters like "already participated" or "expires soon". Not sure about the benefit of that though …

Additional context The polls app is already doing this: https://github.com/nextcloud/polls/blob/04a447e81021882f93ea895616dde8dbab643f5d/lib/Provider/SearchProvider.php

Apart from that, thank you for the great app! It's a pleasure to use it :)

Chartman123 commented 4 weeks ago

@Bibo-Joshi if you want you could give it a try and start developping it :)

Bibo-Joshi commented 4 weeks ago

Haha, you got me there :D I'm not sure if I'll find the time for that in the forseeable future, unfortunately, plus I'm not very familiar with PHP. Nevertheless, I'll put it on my todo list :) If someone is quicker than me, I'm not sad though 😅