Skip to content

perf: parallelize digest generation - #67

Merged
arnabnandy7 merged 1 commit into
mainfrom
feature/digestPortalScores
Aug 30, 2026
Merged

arnabnandy7 merged 1 commit into
mainfrom
feature/digestPortalScores

Conversation

@arnabnandy7

Copy link
Copy Markdown
Owner

Summary

Adds portal scoring information to digest emails and reduces email-generation latency by parallelizing independent network and database operations.

Changes

  • Displays issue quality scores in weekly recommendation emails.
  • Displays repository health scores and statuses in weekly emails.
  • Adds repository health enrichment to repository-alert issues.
  • Calculates repository-alert quality using the portal scoring formula.
  • Applies the existing maintainer-responsiveness ranking boost.
  • Preserves unknown-health fallbacks when repository enrichment fails.
  • Builds weekly recommendations and repository alerts concurrently.
  • Fetches repository issues and metadata concurrently.
  • Runs independent post-delivery database updates concurrently.
  • Persists delivery state only after successful email delivery.
  • Updates architecture documentation and focused test coverage.

Email behavior

Weekly recommendations now display:

  • Issue quality
  • Repository health
  • Maintainer responsiveness
  • Responsiveness sample size and period

Repository alerts now display:

  • Issue quality
  • Repository health
  • Maintainer responsiveness
  • Responsiveness signals and sample details

Performance

Digest generation previously serialized several independent operations. Weekly-search generation, repository-alert generation, repository metadata enrichment, and post-delivery persistence now run concurrently where safe.

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
@arnabnandy7 arnabnandy7 added this to the 1.0.0 milestone Aug 30, 2026
@arnabnandy7 arnabnandy7 self-assigned this Aug 30, 2026
@arnabnandy7 arnabnandy7 added the bug Something isn't working label Aug 30, 2026
@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openissue-dev Ready Ready Preview Aug 30, 2026 5:40pm

@sonarqubecloud

Copy link
Copy Markdown

@arnabnandy7
arnabnandy7 merged commit 8318ce0 into main Aug 30, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from To Do to Completed in Open issue portal development Aug 30, 2026

@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: 8a865ddf75

ℹ️ 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 on lines +429 to +433
scoreIssue(
issue,
repository,
undefined,
Boolean(getHacktoberfestSource(issue, repository)),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Apply the portal's claimed-issue penalty to alert scores

For every assigned issue, this passes undefined as helpStatus, so scoreIssue omits its 25-point claimed penalty. The portal path explicitly converts assigned issues to helpStatus = "claimed" before calling the same scorer, meaning repository-alert emails now advertise a quality score 25 points higher than the portal for the same assigned issue. Derive at least the known assigned status here before scoring.

Useful? React with 👍 / 👎.

This branch was successfully deployed

1 active deployment
Preview — 8a865ddf Deployed Aug 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

1 participant