You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
With the project timeline web part, there are excessive number of requests when loading the page. The web part is requesting 3 times per project in the list. This won't scale well for larger portfolios, and I was actually throttled at a customer because of this.
https://prosjektportalen.sharepoint.com/sites/pp365/_api/search/postquery with query DepartmentId:{b8899a70-4044-4aad-ab59-8401149cd53f} GtSiteIdOWSTEXT:{39535e58-f36d-4348-a634-dcbb4180b886} ContentTypeId:0x010022252E35737A413FB56A1BA53862F6D5* GtModerationStatusOWSCHCS:Publisert -ContentClass=urn:content-class:SPSPeople
can be merged into one large query with a Siteid:xxx per project, and then you have to handle the results and enrich the data model based on the returned results (see e.g. the program web parts).
In addition, there is a linebreak in the query which should be removed:
EDIT: Seeing that this is not related to newly added 1.6.0 feature, but still something to be looked into.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
With the project timeline web part, there are excessive number of requests when loading the page. The web part is requesting 3 times per project in the list. This won't scale well for larger portfolios, and I was actually throttled at a customer because of this.
See:
prosjektportalen365/SharePointFramework/PortfolioWebParts/src/data/index.ts
Line 326 in 4a5d316
Describe the solution you'd like
It should be possible to only have 3 requests in total, not 3 per project.
https://prosjektportalen.sharepoint.com/sites/pp365/_api/web/lists/getByTitle('Tidslinjekonfigurasjon')/items?$select=Title,GtSortOrder,GtHexColor,GtElementType,GtShowElementPortfolio,GtShowElementProgram,GtTimelineFilter&$top=500
and
https://prosjektportalen.sharepoint.com/sites/pp365/_api/contextinfo
only needs to be called once.
https://prosjektportalen.sharepoint.com/sites/pp365/_api/search/postquery
with queryDepartmentId:{b8899a70-4044-4aad-ab59-8401149cd53f} GtSiteIdOWSTEXT:{39535e58-f36d-4348-a634-dcbb4180b886} ContentTypeId:0x010022252E35737A413FB56A1BA53862F6D5* GtModerationStatusOWSCHCS:Publisert -ContentClass=urn:content-class:SPSPeople
can be merged into one large query with a Siteid:xxx per project, and then you have to handle the results and enrich the data model based on the returned results (see e.g. the program web parts).
In addition, there is a linebreak in the query which should be removed:

EDIT: Seeing that this is not related to newly added 1.6.0 feature, but still something to be looked into.
The text was updated successfully, but these errors were encountered: