Skip to content
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

Nik/plugins #2619

Merged
merged 2 commits into from Mar 8, 2024
Merged

Nik/plugins #2619

merged 2 commits into from Mar 8, 2024

Conversation

nik-kc
Copy link
Contributor

@nik-kc nik-kc commented Mar 8, 2024

What does this PR change?

Does this PR relate to any other PRs?

How will this PR impact users?

Does this PR address any GitHub or Zendesk issues?

  • Closes ...

How was this PR tested?

Does this PR require changes to documentation?

Have you labeled this PR and its corresponding Issue as "next release" if it should be part of the next OpenCost release? If not, why not?

Copy link

vercel bot commented Mar 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
opencost ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2024 6:32am

Signed-off-by: Nik Willwerth <nwillwerth@kubecost.com>
Signed-off-by: Nik Willwerth <nwillwerth@kubecost.com>
Copy link
Contributor

@ameijer ameijer left a comment

Choose a reason for hiding this comment

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

approving, but noting something that needs to be fixed

cc.BilledCost += other.BilledCost
cc.ListCost += other.ListCost
cc.ListUnitPrice += other.ListUnitPrice
cc.UsageQuantity += other.UsageQuantity
Copy link
Contributor

Choose a reason for hiding this comment

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

the only major thing I see in this PR is that when adding, we should take the intersection of the string properties. so if one domain != another domain, then the result is the domain is an empty string, that more closely matches our existing logic

Copy link
Contributor

Choose a reason for hiding this comment

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

When this goes into the working branch, I will fix this unless @nik-kc hits this before the merge

@cliffcolvin cliffcolvin marked this pull request as ready for review March 8, 2024 14:08
@cliffcolvin cliffcolvin merged commit 862911f into opencost:plugin-working-branch Mar 8, 2024
3 checks passed
@nik-kc nik-kc deleted the nik/plugins branch March 8, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants