Skip to content

Optimize shared organization filtering in domain responses - #5717

Open
philippthun wants to merge 1 commit into
cloudfoundry:mainfrom
sap-contributions:optimize-domain-shared-org-filtering
Open

philippthun wants to merge 1 commit into
cloudfoundry:mainfrom
sap-contributions:optimize-domain-shared-org-filtering

Conversation

@philippthun

@philippthun philippthun commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Restrict shared-organization visibility queries to organizations referenced by the current domain page and use Sets for membership checks. Skip the lookup for global readers and pages with no shared organizations.

Apply this to domain and organization-domain list endpoints while preserving the fallback for single-resource responses. Rename the presenter argument to visible_org_guids_for_shared_orgs and cover page scoping, empty/public-only pages and unreadable shared orgs.

This change was developed with AI assistance; all code was reviewed and tested by me.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

Restrict shared-organization visibility queries to organizations
referenced by the current domain page and use Sets for membership
checks. Skip the lookup for global readers and pages with no shared
organizations.

Apply this to domain and organization-domain list endpoints while
preserving the fallback for single-resource responses. Rename the
presenter argument to visible_org_guids_for_shared_orgs and cover
page scoping, empty/public-only pages and unreadable shared orgs.
@philippthun
philippthun marked this pull request as ready for review November 27, 2026 13:20

@johha johha left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants