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

perf: improve the performance of 'Static Content Page' component #1603

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

shauke
Copy link
Collaborator

@shauke shauke commented Mar 8, 2024

perf: improve the performance of 'Static Content Page' component renderings by optimizing/limiting the '/pagetree' REST calls regarding the used 'depth'

PR Type

[x] Other: performance improvement

What Is the Current Behavior?

To improve the performance of the 'Static Content Page' component the triggered /pagetree REST calls default behavior regarding the used depth was changed.
In the past no given 'Navigation Depth' in the ICM backend configuration resulted in no limitation at all ("Define how many levels the navigation tree displays. To show all levels, leave the field empty.").

With the content model adaptions of icm-as-customization-headless:1.7.0 a depth default value of 5 was introduced and the description was changed accordingly.

What Is the New Behavior?

In the PWA the rendering was adapted as well so that an empty NavigationDepth value of the 'Static Content Page' component now defaults to 0 instead of no depth limitation, that resulted in the whole content page tree being fetched and saved to the state.

Does this PR Introduce a Breaking Change?

[x] Yes

BREAKING CHANGES: An empty 'NavigationDepth' value of the 'Static Content Page' component now defaults to '0' instead of no depth limitation, that resulted in the whole content page tree being fetched and saved to the state (see Migrations / From 5.0 to 5.1 for more details).

To keep the current behavior in an existing project either adapt the 0 default in pagelet.numberParam('NavigationDepth', 0)" to a reasonable number or set the 'Navigation Depth' values for all 'Static Content Page' component instances in the ICM backend to reasonable depth values instead of leaving them empty.

Other Information

Note: Best fitting CMS content model comes with ICM 11 + icm-as-customization-headless:1.7.0 (and newer versions).

AB#94810

@shauke shauke self-assigned this Mar 8, 2024
@shauke shauke added this to the 5.1 milestone Mar 8, 2024
@shauke shauke added the performance Performance improvements label Mar 8, 2024
@shauke shauke force-pushed the feature/static_content_page_component_improvements branch from 9b21daa to 87c4eb5 Compare March 8, 2024 15:14
SGrueber

This comment was marked as outdated.

SGrueber
SGrueber previously approved these changes Mar 11, 2024
…erings by optimizing/limiting the '/pagetree' REST calls regarding the used 'depth'

BREAKING CHANGES: An empty 'NavigationDepth' value of the 'Static Content Page' component now defaults to '0' instead of no depth limitation, that resulted in the whole content page tree being fetched and saved to the state (see [Migrations / From 5.0 to 5.1](https://github.com/intershop/intershop-pwa/blob/develop/docs/guides/migrations.md#from-50-to-51) for more details).
@shauke shauke force-pushed the feature/static_content_page_component_improvements branch from 87c4eb5 to b35c539 Compare March 11, 2024 10:19
@shauke shauke merged commit a6189fe into develop Mar 11, 2024
21 checks passed
@shauke shauke deleted the feature/static_content_page_component_improvements branch March 11, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants