-
Notifications
You must be signed in to change notification settings - Fork 13
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
Refactor customization opt out flag #569
Conversation
2ce6fa5
to
9d36c87
Compare
9d36c87
to
c6e356e
Compare
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.
Hey @nelsonkopliku
2 things:
- I know I will be annoying with this but, wouldn't be better to use
customization_disabled
instead ofdisable_customization
. We are being declarative until now in the dsl anddisable_customization
looks imperative. I don't know, it looks out of place. Even when we consume the catalog endpoint to get adisable_customization
entry looks strange. @stefanotorresi proposed this value anyway... - Does the
root
entry have precedence over the individual ones? I mean, putting the root value to true makes all the specific values ignored?
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.
Code is great, just found a typo and a comment about the table formatting.
| `env.architecture_type` | one of `classic`, `angi` | [Architecture types](https://github.com/trento-project/web/blob/main/lib/trento/clusters/enums/hana_architecture_type.ex) | `cluster_type` is one of `hana_scale_up`, `hana_scale_out` | ||
| `env.ensa_version` | one of `ensa1`, `ensa2`, `mixed_versions` | [ENSA version](https://github.com/trento-project/web/blob/main/lib/trento/clusters/enums/cluster_ensa_version.ex) | `cluster_type` is `ascs_ers` | ||
| `env.filesystem_type` | one of `resource_managed`, `simple_mount`, `mixed_fs_types` | [Filesystem type](https://github.com/trento-project/web/blob/main/lib/trento/clusters/enums/filesystem_type.ex) | `cluster_type` is `ascs_ers` | ||
| name | Type | Reference | Applicable | |
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.
Yeah the formatting is a bit harder not tbh...
Hey @arbulu89
Not a problem for me, gonna change.
In the catalog you will get what the specification is in the check, so no interdependencies. |
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.
Looks great!
Description
This PR changes the
customizable: true|false
flag in check's spec todisable_customization: true
.Note that in the catalog
disable_customization
is being returned as specified in the check (or its default value), while in the group specific api it plays a role in determining whether something iscustomizable
or not.