Skip to content

fix(admin): add dry-run mode for indexer replay#203

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
wheval:fix/issues-188
Apr 27, 2026
Merged

fix(admin): add dry-run mode for indexer replay#203
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
wheval:fix/issues-188

Conversation

@wheval
Copy link
Copy Markdown
Contributor

@wheval wheval commented Apr 26, 2026

Summary

  • add dryRun option to POST /admin/indexer/replay with strict boolean validation
  • skip audit event writes when dryRun=true to guarantee no write side effects
  • add maintainer docs and focused controller tests for dry-run/live behavior

Test plan

  • POST /admin/indexer/replay with { \"startLedger\": 123456, \"dryRun\": true } returns success with dryRun: true
  • verify no audit event row is written in dry-run mode
  • POST /admin/indexer/replay with dryRun=false (or omitted) still writes audit event
  • invalid dryRun value (e.g. string) returns 400 validation error

Closes #188

skip audit-event writes when dryRun=true to avoid side effects.
validate dryRun payload and document maintainer usage.

Closes accesslayerorg#188

Made-with: Cursor
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 26, 2026

@wheval Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit cef153f into accesslayerorg:main Apr 27, 2026
1 check passed
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.

Add indexer replay dry-run mode option

2 participants