Skip to content

feat(fb): add dry_run mode to submission endpoint - #118

Merged
muratmuzaffer merged 1 commit into
mainfrom
feat/submission-dry-run
Apr 3, 2026
Merged

feat(fb): add dry_run mode to submission endpoint#118
muratmuzaffer merged 1 commit into
mainfrom
feat/submission-dry-run

Conversation

@muratmuzaffer

@muratmuzaffer muratmuzaffer commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds a dry_run query parameter to POST /submissions/. When dry_run=true, the endpoint fully validates the incoming payload (form existence, active status, dates, required fields) but skips the MongoDB insert_one and submission_count increment. This allows health-check cron jobs to verify the endpoint without polluting the database.

Related Issue

Closes #116

Checklist

  • Code follows project conventions
  • I tested my changes locally
  • Linting passes
  • I updated/added tests for my changes
  • I added @seberatolmez or @DogukanUrker as reviewers

Allow POST /submissions/?dry_run=true to validate the payload without persisting to MongoDB. This prevents false data accumulation from health-check cron jobs.

Made-with: Cursor
@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
gdg-yu-form-service Ready Ready Preview, Comment Apr 1, 2026 11:18pm
gdg-yu-forms Ready Ready Preview, Comment Apr 1, 2026 11:18pm
gdg-yu-user-service Ready Ready Preview, Comment Apr 1, 2026 11:18pm

@seberatolmez seberatolmez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm @muratmuzaffer , we can merge after @DogukanUrker' s approval

@DogukanUrker

Copy link
Copy Markdown
Member

really good job @muratmuzaffer

@muratmuzaffer
muratmuzaffer merged commit 4745e79 into main Apr 3, 2026
7 checks passed
@muratmuzaffer
muratmuzaffer deleted the feat/submission-dry-run branch April 3, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants