Skip to content

fix: moving insightsProjects organization on merge#3862

Merged
ulemons merged 1 commit intomainfrom
fix/moving-insights-projects-org
Feb 20, 2026
Merged

fix: moving insightsProjects organization on merge#3862
ulemons merged 1 commit intomainfrom
fix/moving-insights-projects-org

Conversation

@ulemons
Copy link
Copy Markdown
Contributor

@ulemons ulemons commented Feb 19, 2026

Note

Low Risk
Small, targeted change that performs a straightforward DB update during merge; main risk is unintended bulk reassignment if organization IDs are wrong.

Overview
Fixes organization merge cleanup by also reassigning insightsProjects records from the secondary organization to the primary one.

Adds moveInsightsProjectsToAnotherOrganization in the data access layer (SQL UPDATE insightsProjects SET organizationId=... WHERE organizationId=... AND deletedAt IS NULL) and invokes it during finishOrganizationMergingUpdateActivities, alongside the existing activity-relation move.

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

@ulemons ulemons requested a review from skwowet February 19, 2026 10:46
@ulemons ulemons self-assigned this Feb 19, 2026
@ulemons ulemons added the Bug Created by Linear-GitHub Sync label Feb 19, 2026
@github-actions
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.

2 similar comments
@github-actions
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.

@github-actions
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.

Copy link
Copy Markdown
Collaborator

@skwowet skwowet left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@ulemons ulemons merged commit 5a4689b into main Feb 20, 2026
20 checks passed
@ulemons ulemons deleted the fix/moving-insights-projects-org branch February 20, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Created by Linear-GitHub Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants