Skip to content

feat(repositories): Backfill auto-link repos by name matching#116541

Merged
wedamija merged 6 commits into
masterfrom
danf/backfill-auto-link-repos
Jun 2, 2026
Merged

feat(repositories): Backfill auto-link repos by name matching#116541
wedamija merged 6 commits into
masterfrom
danf/backfill-auto-link-repos

Conversation

@wedamija
Copy link
Copy Markdown
Member

This backfill migration that iterates all orgs and matches unlinked repo basenames to project slugs, creating ProjectRepository rows with source=AUTO_NAME_MATCH.

Writes here are behind an option, so we can perform a dry run first.

@wedamija wedamija requested a review from a team May 29, 2026 22:56
@wedamija wedamija requested a review from a team as a code owner May 29, 2026 22:56
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label May 29, 2026
@wedamija wedamija force-pushed the danf/backfill-auto-link-repos branch from 25021d7 to e79bbce Compare May 29, 2026 23:00
@github-actions
Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/1102_backfill_auto_link_repos_by_name.py

for 1102_backfill_auto_link_repos_by_name in sentry

--
-- Raw Python operation
--
-- THIS OPERATION CANNOT BE WRITTEN AS SQL

@evanpurkhiser
Copy link
Copy Markdown
Member

Could be nice to have a quick test for this

@wedamija wedamija force-pushed the danf/auto-link-repos-by-name branch from 3c26ca2 to 8a110ab Compare June 1, 2026 19:56
@wedamija wedamija requested review from a team as code owners June 1, 2026 19:56
@wedamija wedamija force-pushed the danf/backfill-auto-link-repos branch from 104e53e to 51f1657 Compare June 1, 2026 20:08
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

This PR has a migration; here is the generated SQL for src/sentry/migrations/1103_backfill_auto_link_repos_by_name.py

for 1103_backfill_auto_link_repos_by_name in sentry

--
-- Raw Python operation
--
-- THIS OPERATION CANNOT BE WRITTEN AS SQL

@wedamija wedamija force-pushed the danf/auto-link-repos-by-name branch from 8a110ab to 86996dd Compare June 1, 2026 21:42
@wedamija wedamija force-pushed the danf/backfill-auto-link-repos branch from 51f1657 to 2be0720 Compare June 1, 2026 21:43
Base automatically changed from danf/auto-link-repos-by-name to master June 1, 2026 22:14
wedamija and others added 5 commits June 1, 2026 16:17
…lore-view

GA flag rolled out to 100%. Remove the flag and make the gated
behavior unconditional.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This backfill migration that iterates all orgs and matches unlinked
repo basenames to project slugs, creating ProjectRepository rows with
source=AUTO_NAME_MATCH.

Writes here are behind an option, so we can perform a dry run first.
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
@wedamija wedamija force-pushed the danf/backfill-auto-link-repos branch from 2be0720 to ee9b072 Compare June 1, 2026 23:29
@wedamija wedamija requested a review from a team as a code owner June 1, 2026 23:29
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 1, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.59%

@wedamija wedamija enabled auto-merge (squash) June 1, 2026 23:47
@wedamija wedamija merged commit b335627 into master Jun 2, 2026
91 of 93 checks passed
@wedamija wedamija deleted the danf/backfill-auto-link-repos branch June 2, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants