-
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
[BREAKING CHANGE: do not merge yet] cc-addon-elasticsearch-options
: support multi-currency and disabled billing
#1295
base: master
Are you sure you want to change the base?
Conversation
4d77e28
to
b4ef1ba
Compare
🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/cc-addon-elasticsearch-options/support-multi-currency/index.html. This preview will be deleted once this PR is closed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done Florian, I have some minor questions and nitpicks.
src/components/cc-addon-elasticsearch-options/cc-addon-elasticsearch-options.js
Outdated
Show resolved
Hide resolved
src/components/cc-addon-elasticsearch-options/cc-addon-elasticsearch-options.types.d.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GG ! 👏
Indeed, it is not as simple as it looks !
I just have a quesiton; as this component fetch data, what happen if the fetch did not work ? How does it handle error cases ?
@HeleneAmouzou this is a great question !! To be honest, if it fails to load, there's a very high chance that you won't be able to create your add-on anyway (because this data comes from the instances route + the billing route. Both these routes are essential to the creation tunnel). This is subjective so don't hesitate to say if you think we should handle the error case more specifically (for now error = stuck in loading). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work Florian, apart from a few nitpicks LGTM, GG! 💪
cc-addon-elasticsearch-options
: support multi-currency and disabled billingcc-addon-elasticsearch-options
: support multi-currency and disabled billing
The `Flavor` type has been changed to remove `monthlyCost`. The `monthlyCost` is only necessary for the `cc-addon-elasticsearch-options`. There was no need to include it in the standard `Flavor` type used by other components.
8ca655c
to
e6240f0
Compare
Fixes #1172
Fixes #1230
What does this PR do?
cc-addon-elasticsearch-options
component to support other currencies,cc-addon-elasticsearch-options
component to support cases where billing is disabled. In this case, sentences mentionning additional costs should be hidden, including inloading
state when the cost is in skeleton mode while we fetch info.cc-addon-*-options
components do not fetch any data, they update data when you enable / disable options but there is no loading vs loaded logic.cc-addon-elasticsearch-options
component does fetch data and has aloaded
vsloading
logic:state
property was added. The types may look too complex for such a tiny component, feel free to suggest improvements but bear in mind that the subject is not as simple as it looks (there are comments that should help within the component & its types).Note: the
skeleton
display is fairly broken right now, just like incc-invoice-list
but there's already an issue about this (see #1293)How to review?
loading
&no monthly cost
),