Skip to content

fix abandoned amazon s3 bucket recommendation #73

Open
nicolasrbr wants to merge 4 commits intodevfrom
fix/abandoned-amazon-s3-bucket
Open

fix abandoned amazon s3 bucket recommendation #73
nicolasrbr wants to merge 4 commits intodevfrom
fix/abandoned-amazon-s3-bucket

Conversation

@nicolasrbr
Copy link
Copy Markdown

Fix MongoDB aggregation for usage_amount

Previously, the MongoDB query was aggregating usage_amount values directly in the pipeline. However, since usage_amount is stored as a string, MongoDB ignored these values during the sum operation, resulting in totals always being 0.

This change updates the logic to:

Retrieve all usage_amount values without aggregating in the query
Sum in the application layer after proper type handling

Copy link
Copy Markdown
Collaborator

@marianezei marianezei left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants