-
Notifications
You must be signed in to change notification settings - Fork 21
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
cc-addon-elasticsearch-option: make monthlyCost
optional
#1230
Comments
florian-sanders-cc
added a commit
that referenced
this issue
Jan 9, 2025
…led billing BREAKING CHANGE: the `options` property has been replaced with a `state` property - the `options` property & attribute have been removed, - a `state` property & attribute have been added instead, - the `state.type` property can be used to set the component in `loading` or `loaded` state, - in `loading` state, the component shows skeletons instead of flavor info and cost info (if monthly cost is enabled) for APM and Kibana options, - the `state.hasMonthlyCost` property can be used to enable / disable the display of cost info (enabled by default), - the `state.options` can be used to pass options to display, - on each option, the `flavor.monthlyCost` can be used to set the `amount` and the `currency` to display (`loaded` state only). Fixes #1172 Fixes #1230
florian-sanders-cc
added a commit
that referenced
this issue
Jan 10, 2025
…led billing BREAKING CHANGE: the `options` property has been replaced with a `state` property - the `options` property & attribute have been removed, - a `state` property & attribute have been added instead, - the `state.type` property can be used to set the component in `loading` or `loaded` state, - in `loading` state, the component shows skeletons instead of flavor info and cost info (if monthly cost is enabled) for APM and Kibana options, - the `state.hasMonthlyCost` property can be used to enable / disable the display of cost info (enabled by default), - the `state.options` can be used to pass options to display, - on each option, the `flavor.monthlyCost` can be used to set the `amount` and the `currency` to display (`loaded` state only). Fixes #1172 Fixes #1230
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
The
cc-addon-elasticsearch-option
component requires amonthlyCost
for APM & Kibana. This property is used to generate the warning about estimated cost.Since it can be used in a context where APM & Kibana have no cost (for instance in a console where everything is free 💸), this property should be optional.
If no
monthlyCost
is provided, the text about cost estimation should be hidden.We could also introduce a more sophisticated type for this with a boolean to enable / disable cost estimation.
The text was updated successfully, but these errors were encountered: