-
Notifications
You must be signed in to change notification settings - Fork 330
Add missing "overrides" to realm-override config examples & tests #1511
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 missing "overrides" to realm-override config examples & tests #1511
Conversation
|
@RichardLiu2001 sorry I approved too soon :-) There are two issues here:
For 2, it's a regression introduced by b93e97b. @eric-maynard was your change intentional, that is, you want the word |
eric-maynard
left a comment
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 catch!
singhpk234
left a comment
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 catch !
|
I'm not sure this PR should be merged as is. If for nothing else, the default application.properties is not aligned with the Helm chart, for the reasons I mentioned in my previous comment. |
|
@adutra good point on (2) -- I would be okay changing it back to remove |
I'm all in to try and reduce the verbosity of the configuration options. But, I think it's also nice to always prefix our own options with "polaris." What I think we should try is to remove the "defaults." part. It should be possible imho by annotating the corresponding method with |
| # realm overrides | ||
| # polaris.features.realm-overrides."my-realm"."INITIALIZE_DEFAULT_CATALOG_FILEIO_FOR_TEST"=true | ||
| # polaris.features.realm-overrides."my-realm"."SKIP_CREDENTIAL_SUBSCOPING_INDIRECTION"=true | ||
| # polaris.features.realm-overrides."my-realm".overrides."INITIALIZE_DEFAULT_CATALOG_FILEIO_FOR_TEST"=true |
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.
actually, never mind, this seems adding another key at the nest level, do we wan to add another key (which kind of changes how the config of overrides look like before), or revert the change before? cc @adutra @eric-maynard
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 it works with @WithParentName, I think we should take that approach. From a behavior perspective, IMO we should try to revert back to the existing behavior. Ideally before 1.0.
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 we want to fix to keep the old behavior, then the only doc update is "config" -> "features" change
|
@adutra I'm hoping to fix this in #1572
Can you clarify whether edit: from reading the docs, it seems like |
|
@eric-maynard In my other PR, i have a test to help testing he behavior https://github.com/apache/polaris/pull/1505/files#diff-d050121a0a07b1b4c8c7df231afbb927fe6cb04b2d4060a01fdbda96e9c568dfR45, you can probably add similar test in your fix to make sure the behavior is correct. However, based on my previous testing, it is QuarkusFeaturesConfiguration.QuarkusRealmOverrides.overrides needs the annotation. |
@eric-maynard the previous state before b93e97b would be to annotate only You can try to also annotate |
The existing examples of setting realm-override configurations are missing the "overrides" json key:
So, instead of
polaris.features.realm-overrides."my-realm"."feature"=trueit should be
polaris.features.realm-overrides."my-realm".overrides."feature"=true