Progress indicated by console logs is off by one
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- aws, node.js, typescript
Research direction
Start with typescript/appsync-graphql-dynamodb/utils/index.js, where the issue says the DynamoDB inserts report progress, and check how the total is calculated. Follow the example's README.md steps and compare the console total with the number of entries being inserted. Done when the logs show the correct total.
Written by the indexing model from the issue text.
Description
Describe the bug
In the typescript/appsync-graphql-dynamodb example, the utils/index.js inserts the data into DynamoDB table and reports progress via console logs.
The actual progress indicated is off by one - reporting the total number of items to be inserted as greater than it really is.
Expected Behavior
Progress-indicating console logs should display the correct total number of entries which are being inserted.
Current Behavior
Progress indicating console logs display a total number of entries being inserted as one-greater than it really is.
Reproduction Steps
This can be reproduced by following the example's README.md and observing the console output.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.1148.1
Framework Version
No response
Node.js Version
24.22.1
OS
MacOS 27.0.1
Language
Typescript
Language Version
7.0.2
- Dominant language
- TypeScript
- Stars
- 5.7k
- Forks
- 2.5k
- Avg merge
- 16h 44m
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
solidjs/solid-docs#1716 ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
melgarafael/DeskcommCRM#4999 · 1 comment ·
Maintainers usually reply within 1 day
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
db-ux-design-system/core-web#8856 ·
Maintainers usually reply within 1 day