sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

SitePicker issue long loading on big tenants

Open Kperroch opened this issue 1 year ago • 2 comments

Category

[x ] Enhancement

[x ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.15.0]

Expected / Desired Behavior / Question

On click on the dropdown to be able to search directly without waiting the load of all site. Limit the search query to the input text with a start with or contains query.

Observed Behavior

On big tenant 23k site the component take 4 minutes to be responsive because it query all the sites of the tenant.

Steps to Reproduce

Component initialized as below

<SitePicker context={this.props.context} label={'Select destination site'} mode={'site'} allowSearch={true} multiSelect={false} onChange={(sites) => { console.log(sites); }} placeholder={'Selected sites'} searchPlaceholder={'Filter sites'} deferredSearchTime={1000} initialSites={[{url:"https://****************.sharepoint.com/sites/**************Inteligenceproject"}]} /> Having a lot (more than 20k) of site collection on the tenant

Thanks!

Kperroch avatar Aug 11 '23 13:08 Kperroch

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Aug 11 '23 13:08 ghost

Thank you for submitting your first issue to this project.

github-actions[bot] avatar Aug 11 '23 13:08 github-actions[bot]