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

APP-1935 Show image/general data storage costs on invoice #462

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

ehhong
Copy link
Member

@ehhong ehhong commented Mar 18, 2024

Include breakdown of image and general (non image) data storage costs on invoice and other billing surfaces (epic) (designs)

@ehhong ehhong changed the title APP-1935 Show tabular/data storage costs in invoice APP-1935 Show binary/tabular data storage costs in invoice Mar 18, 2024
@ehhong ehhong changed the title APP-1935 Show binary/tabular data storage costs in invoice APP-1935 Show binary/tabular data storage costs on invoice Mar 18, 2024
@github-actions github-actions bot added the safe to test committer is a member of this org label Apr 19, 2024
@ehhong ehhong changed the title APP-1935 Show binary/tabular data storage costs on invoice APP-1935 Show image/general data storage costs on invoice Apr 22, 2024
@@ -71,6 +71,8 @@ message GetCurrentMonthUsageResponse {
double discount_amount = 8;
double total_usage_with_discount = 9;
double total_usage_without_discount = 10;
double image_data_cloud_storage_usage_cost = 11;
Copy link
Member

Choose a reason for hiding this comment

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

Its unclear to me what this means from reading these fields. Is this tabular/binary separation?

Copy link
Member Author

@ehhong ehhong Apr 22, 2024

Choose a reason for hiding this comment

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

yes-ish. we decided to use the language used on our pricing page. it's not juust tabular because it includes tabular data not used for data/ML. basically, general = tabular + packages + history + logs

Copy link
Member

Choose a reason for hiding this comment

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

Aren't we breaking down all the usage costs into their own types? can't we just add a 1:1 mapping for that? Otherwise it just seems unclear?

Copy link
Member Author

@ehhong ehhong Apr 22, 2024

Choose a reason for hiding this comment

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

we are on the backend, but the designs show an image/general split. I want to avoid doing calculations on the frontend, but if we think we will just display all categories in the future, I'd consider adding a 1:1 mapping. that's a product q though

Copy link
Member Author

Choose a reason for hiding this comment

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

one thing to consider: we are moving from "cloud storage" --> "data management" in our copy. do we want that change to be reflected in this proto? our backend models are all called "cloud storage"

Copy link
Member

Choose a reason for hiding this comment

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

yeah, then Im not sure how else we could it apart from this way :)

Copy link
Member

Choose a reason for hiding this comment

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

i don't really want to include the full breakdown because i think it's early optimizing, we don't even know if the full breakdown is stable

i would say the same thing for the image vs non image. at least by having the breakdown, we are giving ourselves the flexibility to change what goes into which category later. if we had broken down what goes into cloud storage earlier, we wouldnt even have to make this API change in the first place. i dont think i'm gonna be convinced the other way but we can agree to disagree if its 2 to 1.

Copy link
Member

Choose a reason for hiding this comment

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

For early optimization the more granular break down makes sense for sure. That being said, we don't want to show the breakdown to users. I'm not sure I am sure what the middle ground here is but I think this going to be somewhat of a product decision? if the latter is definitely not then I think that we have to have more generalized names?

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks guys for the input. I'm now convinced that the granular categories would be better (if we can publish them), otherwise we'll have to do image/general. I'm tracking down some ops / GTM people right now, will let you know when I have an update!

Copy link
Member Author

Choose a reason for hiding this comment

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

okay, discussed offline: decided on two subcategories:

double binary_data_cloud_storage_usage_cost = 12;
double other_cloud_storage_usage_cost = 13;

Copy link
Member

@jr22 jr22 left a comment

Choose a reason for hiding this comment

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

FYI be sure to notify relevant stakeholders about API change

@michaellee1019
Copy link
Member

FYI be sure to notify relevant stakeholders about API change

I think it actually requires a scope :( All public API changes do. It can be super quick and short one.

@ehhong
Copy link
Member Author

ehhong commented Apr 22, 2024

FYI be sure to notify relevant stakeholders about API change

I think it actually requires a scope :( All public API changes do. It can be super quick and short one.

@michaellee1019 Julia asked Steve what we should do in this situation, Steve said sending a quick email to stakeholders (Eliot, Natalia, Emily, Devin) was sufficient. I just sent an email out about this change

@michaellee1019
Copy link
Member

@michaellee1019 Julia asked Steve what we should do in this situation, Steve said sending a quick email to stakeholders (Eliot, Natalia, Emily, Devin) was sufficient. I just sent an email out about this change

Excellent, sounds good!

@ehhong ehhong force-pushed the APP-1935 branch 2 times, most recently from f0c3f30 to c32877c Compare April 23, 2024 17:38
@ehhong ehhong added the ready-for-protos add this when you want protos to compile on every commit label Apr 23, 2024
@ehhong ehhong removed the ready-for-protos add this when you want protos to compile on every commit label Apr 23, 2024
@ehhong ehhong merged commit d22fafd into viamrobotics:main Apr 23, 2024
3 checks passed
@ehhong ehhong deleted the APP-1935 branch April 23, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
protos-compiled safe to test committer is a member of this org
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants