core icon indicating copy to clipboard operation
core copied to clipboard

User searchable relationship field fetch size must be configurable.

Open muhammadfaizandotcms opened this issue 3 years ago • 2 comments

Describe the bug If the relationship field is selected as user searchable then only 30 records appear in the dropdown due limit applied in the body of /api/es/search endpoint. Related Ticket: https://dotcms.zendesk.com/agent/tickets/107923 Reproduced on 22.06 To Reproduce Steps to reproduce the behavior:

  1. log in to Demo Site.
  2. Go to Content->Search portlet.
  3. Create new Blog Authors with more than 30 records.
  4. Go to Content->Blogs portlet.
  5. Click on advanced search.
  6. Verify the results of the Author dropdown only 30 records appear.

Expected behavior size param in the body of /api/es/search endpoint must be configurable. Screenshots Screenshot from 2022-07-20 16-36-46

muhammadfaizandotcms avatar Jul 20 '22 11:07 muhammadfaizandotcms

Faizan:

Can you type in the field and query the relationships by title, to find the one you are looking for? If so, that is the solution.

wezell avatar Jul 27 '22 13:07 wezell

@wezell Whenever I type in the field and try to select the desired value from the dropdown I get the following error.

VM386:123 Uncaught Error: dojo.data.ItemFileReadStore: Invalid item argument.
    at Object._assertIsItem (eval at <anonymous> (eval at <anonymous> (dojo.js?b=22.06:2:3141)), <anonymous>:123:10)
    at Object.getValues (eval at <anonymous> (eval at <anonymous> (dojo.js?b=22.06:2:3141)), <anonymous>:151:8)
    at Object.getValue (eval at <anonymous> (eval at <anonymous> (dojo.js?b=22.06:2:3141)), <anonymous>:142:21)
    at Object._announceOption (build.js?b=22.06:2:180186)
    at Object.advice (dojo.js?b=22.06:2:55952)
    at Object.<anonymous> (dojo.js?b=22.06:2:54694)
    at Object.eval (eval at <anonymous> (prototype.js:591:64), <anonymous>:32:52)
    at Object.advice (dojo.js?b=22.06:2:54820)
    at Object._25e [as _announceOption] (dojo.js?b=22.06:2:55660)
    at Object._selectOption (build.js?b=22.06:2:180531)

Screenshot from 2022-08-02 20-27-47

muhammadfaizandotcms avatar Aug 02 '22 15:08 muhammadfaizandotcms

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 27 '22 21:12 stale[bot]