firebase / firebase/snippets-node
I believe that this cloud function is not idempotent
Open
- Dominant language
- JavaScript
- Stars
- 395
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/firebase/snippets-node/blob/9ae3a00985b53025fdc82716046882af71b6009d/firestore/solution-aggregation/functions/index.js#L11-L37
If it's retried, I think it's possible to get a wrong value for newNumRatings.
Contributor guide
Research direction
Read firestore/solution-aggregation/functions/index.js at lines 11-37 and trace how a retry could affect newNumRatings. Confirm whether repeated delivery can produce an incorrect value; done means the aggregation remains correct when the function is retried.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend, cloud, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100