Skip to content

fix: “bulk retry failed rows” endpoint#449

Merged
Nitya-003 merged 2 commits into
Nitya-003:mainfrom
Aditya8369:444
Jun 20, 2026
Merged

fix: “bulk retry failed rows” endpoint#449
Nitya-003 merged 2 commits into
Nitya-003:mainfrom
Aditya8369:444

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

What changed

  1. Schema: store retry inputs per row
    File: backend/models/BulkVerificationJob.js
    Change: added results[].originalInput (minimal record-like data: userid/email/walletaddress/action/signature/nonce/expiresat).
  2. Persist original normalized inputs while processing
    File: backend/services/bulkVerificationService.js
    Change: each results.push(...) now includes originalInput (including for failures).
    Added: reconstructRetryRecords(failedRows) to transform stored originalInput back into the records shape expected by processJob().
  3. Retry service
    File: backend/services/bulkVerificationService.js
    Added: retryJob(jobId, failedRows, adminId)
    creates a new BulkVerificationJob for the retry
    calls processJob(retryJobId, retryRecords, adminId, { dryRun:false }) in background
  4. Controller + route
    File: backend/controllers/verificationController.js
    Added controller: retryBulkFailedRows
    validates jobId
    ensures original job exists and status === 'completed'
    selects job.results where status === 'failure'
    calls bulkVerificationService.retryJob(...)
    returns 202 with the new retry job id and counts

closes #444

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Nitya Gosain's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Nitya-003 Nitya-003 merged commit b7bc4bd into Nitya-003:main Jun 20, 2026
3 of 7 checks passed
@Nitya-003 Nitya-003 added gssoc:approved gssoc'26 approved quality:clean *1.2 for contributor +5 pts for mentor level:intermediate 35 pts for contributor 20 pts for mentor type:accessibility labels Jun 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved gssoc'26 approved level:intermediate 35 pts for contributor 20 pts for mentor quality:clean *1.2 for contributor +5 pts for mentor type:accessibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add “bulk retry failed rows” endpoint

2 participants