fix(deep-clone): remove org-scoped app installations query [EXT-7458]#10997
Merged
Jared Jolton (jjolton-contentful) merged 2 commits intoMay 21, 2026
Merged
Conversation
…stallationParameters [EXT-7458] The hook was calling appInstallation.getForOrganization() on every sidebar mount to fetch ALL installations across the org, just to find the current space's parameters. In large orgs this triggers O(N-spaces) fan-out to CIA, contributing to the INC-1276 cascading failure. sdk.parameters.installation already provides the parameters synchronously via the App SDK. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
67e3d76 to
5939401
Compare
…ers [EXT-7458] When installation parameters are not yet saved (e.g., fresh install before config screen is submitted), sdk.parameters.installation is empty. Fall back to sensible defaults matching the ConfigScreen initial state. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
ethan ozelius (ethan-ozelius-contentful)
left a comment
There was a problem hiding this comment.
Deletion PRs are my favorite type of PRs
ethan ozelius (ethan-ozelius-contentful)
approved these changes
May 21, 2026
Mitch Goudy (mgoudy91)
approved these changes
May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
appInstallation.getForOrganization()call fromuseInstallationParametersthat fetched ALL org installations on every sidebar mountsdk.parameters.installationdirectly (already available synchronously via the App SDK)Context
We traced an anomalous load pattern back to
GET /app_definitions/41ggGmfuNUErRXQhTdGlpu/app_installationsbeing called 625 times/hour from a single org. Part of that traffic came from this hook firing on every sidebar mount. The parameters it fetches (cloneText, cloneTextBefore, automaticRedirect) are already available via the SDK — the CMA call was a redundant "freshness check."Test plan
vitest run)appInstallation.getForOrganizationin browser devtoolsJira: EXT-7458
🤖 Generated with Claude Code