UI: add a way to override default Relationship search pagination #817
Replies: 4 comments
-
+1 this is a very annoying bug. Have been peeking a bit in the source code (not a main contributor). The limit seems to be hard-coded in Relationships, with this lazy-loading pattern, and find-query's default limit is 10 too. Is it even possible to fetch unlimited find-query's right now? If not I believe we should make changes to allow it ( |
Beta Was this translation helpful? Give feedback.
-
Hey all, thanks for the question! Looks to me that there are three items in this issue:
The intended functionality should be to search all documents when the search input changes (not just the first 10 returned). Yes, you will only initially load the first 10 from any resulting search, but scrolling down to load more should still be possible right now (it will only load more with the same search term present). The team and I will confirm this, but I believe this is currently the behavior, and the intended behavior.
This is great. We can certainly build a new feature to increase the pagination that any given relationship field dropdown utilizes. I would say removing the pagination is going to be dangerous, because loading 1,000 docs is going to bog down the UI, but hey, it could be up to the end-user, right? Not opposed... will do some digging here.
Good call. This is legit and will be fixed shortly. Overlaps with issue #806 and will be fixed by solution to #806. I'm going to convert this issue to a Feature Request Discussion for item 2 above, but if you guys can confirm that my statement in 1 is incorrect, then we need a new issue that says something along the lines of "searching relationship fields only searches the first 10 results". But I believe this is actually working as intended at the moment. Will try and replicate ASAP. |
Beta Was this translation helpful? Give feedback.
-
Yes, I can confirm. At the moment the autocomplete functionality is not working with lists bigger size then 10. Elements which fall out of the fetched pages are not being found/visualized, only after they are lazy loaded in the drop-down menu. I might have derailed the conversation a bit... My observations were less about being able to configure the lazy-loading settings of the dropdown, but more that how the lazy-loading is implemented right now, it seems to conflict with auto-complete's functionality. |
Beta Was this translation helpful? Give feedback.
-
before scrolling to the bottom |
Beta Was this translation helpful? Give feedback.
-
I have a relationship to a collection. That collection has a lot of objects.
Now in the UI I can click on the relationship field and search for the object I want to select. However, it only searches the first like 10 objects.
To be able to search all of them there, I first need to scroll down all the way (in the select dropdown of the relationship field) until payload loads in all the objects. Only then can I search all of them.
Sometimes it also only searches the full word and does not include results where the partial word matches. I think that should be changed
Beta Was this translation helpful? Give feedback.
All reactions