Skip to content

feat: handle submission already reported as problematic when using /problem API path #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

craigzour
Copy link
Contributor

Summary | Résumé

  • Handles submissions already reported as problematic when hitting the /problem API path with the same submission multiple times

@@ -30,12 +35,12 @@ export async function reportProblemWithFormSubmission(
":status": "Problem",
":problemTimestamp": Date.now(),
},
ReturnValuesOnConditionCheckFailure: "NONE",
ReturnValuesOnConditionCheckFailure: "ALL_OLD",
Copy link
Member

Choose a reason for hiding this comment

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

Ah this is interesting, I didn't know about this feature of DynamoDB conditional writes.

@craigzour craigzour merged commit 2e8147c into main Sep 5, 2024
4 checks passed
@craigzour craigzour deleted the feature/handle-submission-already-reported-as-problematic branch September 5, 2024 13:16
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.

2 participants