-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Templates for Exoscale DBaaS products #71
Conversation
147714d
to
7d4c752
Compare
7d4c752
to
405babe
Compare
@bastjan I requested a review from you so that the APPUiO team is aware of this change in template matching. I don't think it should break anything :) |
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.
If I understand correctly this PR should have all plans from Exoscale DBaaS. If that's the case then there are much more plans to be added aka templates.
Update: Sry I miss read the PR. Those were golden tests. Is there a way to test the template?
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.
Should work for us (APPUiO Cloud)!
@@ -41,13 +41,24 @@ func ItemDescriptionTemplateRendererFromFS(fs fs.FS, extension string) (*ItemDes | |||
|
|||
// RenderItemDescription renders an item description. Uses the `.ProductRef.Source` as the key to look which template to use. |
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.
I'd prefer some documentation on the fuzzy matching here.
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.
Fair point, missed that, thanks. Will add that
Co-authored-by: Sebastian Widmer <sebastian.widmer@vshn.net>
Well there are golden tests. Or what do you mean with test? |
I meant a real test (e2e) or it's not feasible with this repo? |
We don't do Odoo e2e tests no. |
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.
LGTM
Summary
Adds Templates for Exoscale DBaaS products.
As there are over 100 DB/Plan combination (and in turn over 100 distinct products in the Billing DB) I extended the template selection to allow for only one template per DB type. This shouldn't impact the current billing behavior as we will do longest prefix match.
Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog