Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SitePicker issue long loading on big tenants #1622

Open
Kperroch opened this issue Aug 11, 2023 · 2 comments
Open

SitePicker issue long loading on big tenants #1622

Kperroch opened this issue Aug 11, 2023 · 2 comments
Labels
Good First Issue 🏆 help wanted type:enhancement New feature or enhancement of existing capability

Comments

@Kperroch
Copy link

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!

@ghost
Copy link

ghost commented Aug 11, 2023

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

@ghost ghost added the Needs: Triage 🔍 label Aug 11, 2023
@github-actions
Copy link

Thank you for submitting your first issue to this project.

@michaelmaillot michaelmaillot added help wanted Good First Issue 🏆 type:enhancement New feature or enhancement of existing capability and removed Needs: Triage 🔍 labels Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue 🏆 help wanted type:enhancement New feature or enhancement of existing capability
Projects
None yet
Development

No branches or pull requests

2 participants