[GH-ISSUE #2563] Create Share Link - Only the first 20 resources are available #4132

Closed
opened 2026-04-20 08:35:42 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @aweb-01 on GitHub (Feb 28, 2026).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/2563

Originally assigned to: @miloschwartz on GitHub.

Describe the Bug

When I go to create a Share Link, in the "Resource"/"Select Resource" dropdown, only the first 20 resources (as shown on my "Network --> resources --> public" page are available. None of the resources on the 2nd page are available, and if I search for them I get "No resources found".

Environment

  • OS Type & Version: Ubuntu 24.04 (running everything in an up-to-date docker)
  • Pangolin Version: 1.16.1 (enterprise version)
  • Gerbil Version: 1.2.2
  • Traefik Version: 3.6.7
  • Newt Version: 1.6.0
  • Olm Version: (if applicable)

To Reproduce

When I go to create a Share Link, in the "Resource"/"Select Resource" dropdown, only the first 20 resources (as shown on my "Network --> resources --> public" page are available. None of the resources on the 2nd page are available, and if I search for them I get "No resources found".

Expected Behavior

all resources appear when searched

Originally created by @aweb-01 on GitHub (Feb 28, 2026). Original GitHub issue: https://github.com/fosrl/pangolin/issues/2563 Originally assigned to: @miloschwartz on GitHub. ### Describe the Bug When I go to create a Share Link, in the "Resource"/"Select Resource" dropdown, only the first 20 resources (as shown on my "Network --> resources --> public" page are available. None of the resources on the 2nd page are available, and if I search for them I get "No resources found". ### Environment - OS Type & Version: Ubuntu 24.04 (running everything in an up-to-date docker) - Pangolin Version: 1.16.1 (enterprise version) - Gerbil Version: 1.2.2 - Traefik Version: 3.6.7 - Newt Version: 1.6.0 - Olm Version: (if applicable) ### To Reproduce When I go to create a Share Link, in the "Resource"/"Select Resource" dropdown, only the first 20 resources (as shown on my "Network --> resources --> public" page are available. None of the resources on the 2nd page are available, and if I search for them I get "No resources found". ### Expected Behavior all resources appear when searched
GiteaMirror added the bug label 2026-04-20 08:35:42 -05:00
Author
Owner

@LaurenceJJones commented on GitHub (Feb 28, 2026):

Issue happens because sharelink form only sends a default request to organization resources, the default pageSize is 20 if query parameter is not provided

72bf6f3c41/server/routers/resource/listResources.ts (L42-L53)

Since the dropdown is limited in functionality we should consider:

  • Allow a query parameter of pageSize=0 to get all resources?
    investigated will work but causes a scalable issue
  • Expose a search endpoint EG: /api/v1/org/{org}/resources/search to search all entries instead of client side filtering
    investigated original endpoint already has a query parameter we just need to send this from the search box inside the dropdown.
  • Listen to on scroll events in the dropdown and automatically expand pagination and resources as users scrolls the dropdown.
    needs more investigation
<!-- gh-comment-id:3977192868 --> @LaurenceJJones commented on GitHub (Feb 28, 2026): Issue happens because sharelink form only sends a default request to organization resources, the default pageSize is 20 if query parameter is not provided https://github.com/fosrl/pangolin/blob/72bf6f3c414a12a16c184a19f50ad08ed78f239f/server/routers/resource/listResources.ts#L42-L53 Since the dropdown is limited in functionality we should consider: - Allow a query parameter of `pageSize=0` to get all resources? _investigated_ will work but causes a scalable issue - Expose a search endpoint EG: `/api/v1/org/{org}/resources/search` to search all entries instead of client side filtering _investigated_ original endpoint already has a query parameter we just need to send this from the search box inside the dropdown. - Listen to on scroll events in the dropdown and automatically expand pagination and resources as users scrolls the dropdown. _needs more investigation_
Author
Owner

@oschwartz10612 commented on GitHub (Feb 28, 2026):

Ahh yep this is a mistake due to the new pagination in 1.16. Will fix and do a new patch.

<!-- gh-comment-id:3977598754 --> @oschwartz10612 commented on GitHub (Feb 28, 2026): Ahh yep this is a mistake due to the new pagination in 1.16. Will fix and do a new patch.
Author
Owner

@oschwartz10612 commented on GitHub (Feb 28, 2026):

Fixed in 1.16.2 though we will need to fix it properly in the future.

<!-- gh-comment-id:3977759839 --> @oschwartz10612 commented on GitHub (Feb 28, 2026): Fixed in 1.16.2 though we will need to fix it properly in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#4132