Skip to content

Conversation

@skwowet
Copy link
Member

@skwowet skwowet commented Nov 12, 2025

Note

Adds workflows and activities to prune duplicate organizations and incorrect member organizations, with supporting repository queries, and removes the old duplicate-members cleanup.

  • Workflows
    • Add pruneDuplicateOrganizations to batch-remove organizations with email-provider domains after syncRemoveOrganization.
    • Add pruneIncorrectMemberOrganizations to remove memberOrganizations created from email-domain sources and refresh member affiliations.
    • Remove legacy cleanup/duplicate-members workflow.
  • Activities
    • New pruning activities in activities/prune-duplicate-organizations: getOrganizationsToPrune, pruneOrganization, getMemberOrganizationsToPrune, pruneMemberOrganization, refreshMemberAffiliations.
    • Wire exports/imports in src/activities.ts and src/workflows.ts.
  • Data Access Layer (organization.repo.ts)
    • Add pruneOrganization hard-deletion across related tables (incl. memberOrganizations).
    • Add getOrganizationsToPrune and getMemberOrganizationsToPrune queries using a whitelist of common email providers.
  • Types
    • Remove ICleanupDuplicateMembersArgs and related duplicate-members activity exports.

Written by Cursor Bugbot for commit 241df9f. This will update automatically on new commits. Configure here.

@skwowet skwowet self-assigned this Nov 12, 2025
@CrowdDotDev CrowdDotDev deleted a comment from github-actions bot Nov 12, 2025
@CrowdDotDev CrowdDotDev deleted a comment from github-actions bot Nov 12, 2025
@CrowdDotDev CrowdDotDev deleted a comment from github-actions bot Nov 12, 2025
@CrowdDotDev CrowdDotDev deleted a comment from github-actions bot Nov 12, 2025
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@skwowet skwowet changed the title chore: add duplicate organization pruning script chore: add duplicate organization pruning script [CM-766] Nov 12, 2025
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.

2 participants