Skip to content

feat: support D1-backed crowd reports#233

Merged
duncanleo merged 1 commit into
codex/d1-migrationfrom
codex/d1-migration-crowd-reports
Jun 27, 2026
Merged

feat: support D1-backed crowd reports#233
duncanleo merged 1 commit into
codex/d1-migrationfrom
codex/d1-migration-crowd-reports

Conversation

@duncanleo

Copy link
Copy Markdown
Member

Summary

  • Move crowd-report GitHub dispatch out of the database transaction by claiming candidate report rows first, committing that claim, then marking success or failure after the external repository_dispatch call.
  • Add a D1-compatible short-lived dispatch marker so concurrent dispatch attempts skip in-progress report rows while allowing stale claims to be retried.
  • Replace the public-holiday sync's raw excluded.* conflict update fragments with per-row bound update values.
  • Record the Phase 5 progress in the D1 migration plan.

Validation

  • npm run verify

@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c887ea24-6df1-4b04-8b98-7e44e60c94c7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/d1-migration-crowd-reports

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

Comment @coderabbitai help to get the list of available commands.

@duncanleo duncanleo marked this pull request as ready for review June 26, 2026 17:07

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8834ed35aa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/util/crowdReportDispatch.ts Outdated
Comment thread app/util/crowdReportDispatch.ts
Comment thread app/util/crowdReportDispatch.ts Outdated
Comment thread app/util/crowdReportDispatch.ts Outdated
@duncanleo duncanleo force-pushed the codex/d1-migration-crowd-reports branch from 8834ed3 to 9ddbd2d Compare June 26, 2026 17:26

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9ddbd2d850

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/util/crowdReportDispatch.ts Outdated
Comment thread app/util/crowdReportDispatch.ts Outdated
@duncanleo duncanleo force-pushed the codex/d1-migration-crowd-reports branch from 9ddbd2d to 2362c63 Compare June 27, 2026 03:02

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2362c63be3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread app/util/crowdReportDispatch.ts Outdated
@duncanleo duncanleo force-pushed the codex/d1-migration-crowd-reports branch from 2362c63 to 6767c21 Compare June 27, 2026 03:15
@duncanleo duncanleo merged commit fbfac09 into codex/d1-migration Jun 27, 2026
2 checks passed
@duncanleo duncanleo deleted the codex/d1-migration-crowd-reports branch June 27, 2026 05:52
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