Skip to content

fix(production): repair GitHub removal and reporting timezones - #584

Closed
imshashank wants to merge 2 commits into
mainfrom
review/fix-production-integrations
Closed

imshashank wants to merge 2 commits into
mainfrom
review/fix-production-integrations

Conversation

@imshashank

@imshashank imshashank commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Repairs two production failures without a schema or data migration.

GitHub disconnects and uninstall webhooks failed when repositories held live check contexts because latest-activity foreign keys restrict deleting their evidence. Removal now locks the scoped integration and installation and performs graph cleanup plus metadata deletion in one transaction, including callers passing a database directly. It removes contexts, check evidence and repositories in order. Revoked or unlinked watched repositories use the same cleanup. Existing foreign-key protections and other installations remain intact.

Reporting reads legacy stored UTC offsets such as UTC+8 as equivalent IANA zones, preserving calendar boundaries. Unknown stored values fall back to UTC without rewriting profiles. New timezone writes require an IANA zone. The profile form omits unchanged timezones so unrelated edits still work for legacy profiles.

Validation on 695f6b78786184c061f542792bf2b7fbd393e734:

  • Clean bun run verify: 7,046 passed, zero failures. Exact source tree stayed unchanged.
  • Reproduced the FK failures, invalid timezone writes/reporting crashes, direct-database partial removal and unchanged legacy form payload before their fixes.
  • Focused coverage includes webhook/fetch provenance, sibling installations, workspace isolation, FK protections, deterministic late-failure rollback, DST/date boundaries and the real profile form.
  • Actual Bun, Node 24 and database-package guards passed with dedicated loopback fixtures and no provider credentials.
  • Normal commit and push hooks passed lint, comment policy and all package types.
  • Fresh CI passed all six jobs, including both browser suites, gateway checks and the copied standalone smoke. CodeQL and links passed.
  • GitHub's scheduled pull_request_target brownout blocks preview-helper startup until 18:00 UTC on November 16. Helpers will be retried after the window.

Draft until fresh checks and preview verification complete.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copy link
Copy Markdown
Contributor Author

Incorporated into main by #586, commit 11332e2. The merged tree exactly matches the independently reviewed repair candidate. Combined bun run verify passed 7,056 tests with zero failures; all six CI jobs, CodeQL, links and the refreshed preview controller passed. Closing this source PR as incorporated. Production promotion and the separate notification-query repair remain tracked in the release review.

@imshashank imshashank closed this Nov 16, 2026
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