-
Notifications
You must be signed in to change notification settings - Fork 733
feat: deprecate stuck statue and auto re-onboard stuck repos [CM-1098] #4034
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ALTER TABLE git."repositoryProcessing" DROP COLUMN IF EXISTS "stuckRequiresReOnboard"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Migration doesn't convert existing stuck state rowsMedium Severity The migration drops the Additional Locations (1)Reviewed by Cursor Bugbot for commit 179c84d. Configure here. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,6 @@ | |
| rp.branch, | ||
| rp."maintainerFile", | ||
| rp."lastMaintainerRunAt", | ||
| rp."stuckRequiresReOnboard", | ||
| rp."reOnboardingCount" | ||
| """ | ||
|
|
||
|
|
@@ -166,7 +165,6 @@ async def acquire_recurrent_repo() -> Repository | None: | |
| states_to_exclude = ( | ||
| RepositoryState.PENDING, | ||
| RepositoryState.PROCESSING, | ||
| RepositoryState.STUCK, | ||
| RepositoryState.PENDING_REONBOARD, | ||
| RepositoryState.AUTH_REQUIRED, | ||
| ) | ||
|
Comment on lines
165
to
170
|
||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This migration drops the
stuckRequiresReOnboardcolumn but doesn’t address existing rows that may still be in the removedstate='stuck'. Since the app side removes theSTUCKenum value, it’s worth adding a companion UPDATE in this migration (or a separate one) to rewrite anyrepositoryProcessing.state='stuck'rows to a supported state (e.g.pending_reonboard) to avoid leaving orphan/legacy states in production data.