Skip to content

fix(content-insights): remove org-scoped app installations query [EXT-7458]#10999

Merged
Jared Jolton (jjolton-contentful) merged 1 commit into
masterfrom
fix/content-insights-remove-org-installations-query
May 21, 2026
Merged

fix(content-insights): remove org-scoped app installations query [EXT-7458]#10999
Jared Jolton (jjolton-contentful) merged 1 commit into
masterfrom
fix/content-insights-remove-org-installations-query

Conversation

@jjolton-contentful
Copy link
Copy Markdown
Contributor

Summary

  • Removes an expensive org-scoped CMA call (appInstallation.getForOrganization) that the useInstallationParameters hook was making on every component mount. This call fetched all installations across the entire org just to find the current one — completely unnecessary since sdk.parameters.installation already has the params.
  • Reduces CMA rate-limit pressure observed in INC-1276, where content-insights was contributing to elevated API usage on customer orgs with many spaces/environments.
  • Preserves the hook's public API ({ installation, refetchInstallationParameters }) so no callers need updating — refetchInstallationParameters becomes a no-op.

Test plan

  • All 162 existing tests pass (24 test files)
  • Verify in a staging environment that the Content Insights dashboard still renders correctly with installation parameters
  • Confirm no getForOrganization calls appear in network tab after the fix

🤖 Generated with Claude Code

…-7458]

The useInstallationParameters hook was making an expensive org-scoped CMA
call (appInstallation.getForOrganization) on every component mount, then
filtering through all installations to find the current one. This is
unnecessary because sdk.parameters.installation already provides the
current installation parameters synchronously.

This change eliminates the redundant network call, reducing CMA
rate-limit pressure observed in INC-1276. The hook's public interface
({ installation, refetchInstallationParameters }) is preserved for
backward compatibility; refetchInstallationParameters becomes a no-op.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@jjolton-contentful Jared Jolton (jjolton-contentful) force-pushed the fix/content-insights-remove-org-installations-query branch from e64bcd7 to d6ca7b9 Compare May 21, 2026 17:51
@jjolton-contentful Jared Jolton (jjolton-contentful) merged commit c114828 into master May 21, 2026
14 checks passed
@jjolton-contentful Jared Jolton (jjolton-contentful) deleted the fix/content-insights-remove-org-installations-query branch May 21, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants