Skip to content

fix: prevent affiliations for project-registry member organizations#4321

Merged
skwowet merged 2 commits into
mainfrom
fix/git-integration-blocked-org-affiliations
Jul 8, 2026
Merged

fix: prevent affiliations for project-registry member organizations#4321
skwowet merged 2 commits into
mainfrom
fix/git-integration-blocked-org-affiliations

Conversation

@skwowet

@skwowet skwowet commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Git integration was creating project-registry member organizations and segment affiliations without respecting org-level isAffiliationBlocked. This prevents those incoming affiliations from being treated as allowed on blocked organizations.

Changes

  • Add fetch_organizations to read isAffiliationBlocked for org ids in a batch
  • Return newly inserted member organization rows from insert_member_organizations
  • Add insert_member_organization_affiliation_overrides for allowAffiliation=false overrides
  • In apply_affiliations, resolve blocked orgs from all resolved stints
  • Skip memberSegmentAffiliations inserts for blocked organizations
  • Insert affiliation overrides for newly created member organizations on blocked organizations

skwowet added 2 commits July 8, 2026 21:57
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
Signed-off-by: Yeganathan S <63534555+skwowet@users.noreply.github.com>
@skwowet skwowet self-assigned this Jul 8, 2026
Copilot AI review requested due to automatic review settings July 8, 2026 16:29
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ Jira Issue Key Missing

Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.

Example:

  • feat: add user authentication (CM-123)
  • feat: add user authentication (IN-123)

Projects:

  • CM: Community Data Platform
  • IN: Insights

Please add a Jira issue key to your PR title.

@skwowet skwowet merged commit 1002f93 into main Jul 8, 2026
14 checks passed
@skwowet skwowet deleted the fix/git-integration-blocked-org-affiliations branch July 8, 2026 17:07
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.

1 participant