-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expose runtime config properties by source #181
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
Conversation
…rface - Added implementation in DefaultKillbillConfigSource and OSGIConfigPropertiesService to expose runtime resolved properties grouped by config source. - Added unit test to validate grouped property retrieval.
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.
Regarding adding a new interface OSGIConfigProperties#getPropertiesBySource
, can you add in the PR comment the result of the test to verify binary compatibility: An existing plugin compiled prior this change should still work after this change. Looking at our code, we typically make this artifact provided
, so I would expect to even see the plugin have access to new method with 0 recompilation. Could you confirm?
* Included "AwsSsmProperties" category in getPropertiesBySource(). * Categorized properties by source: system, env, killbill, runtime, ssm, etc. * Added helper methods to support property merging and filtering * Updated getProperties() to ensure all sources are loaded * Added required AWS SDK v2 dependencies for SSM fetch.
For testing, I successfully installed an existing Aviate plugin using API calls without any issues. However, to access the newly added I updated the parent version in Aviate, modified |
…ly to access -D flags.
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.
Let's fix CI and check all tests pass prior we merge this PR though.
* Fixed bugs identified by SpotBugs Maven plugin.
…if file is already deleted.
Assert.assertTrue(f.delete(), "Unable to delete file " + f.getAbsolutePath()); | ||
|
||
final boolean deleted = f.delete(); | ||
Assert.assertTrue(deleted || !f.exists(), "Unable to delete file " + f.getAbsolutePath()); |
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.
Added a safe check to gracefully handle scenarios where a temp file has been deleted by another part of the code.
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.
Since CI is green and PR is approved, merging the PR
getPropertiesBySource()
contract toOSGIConfigProperties
interfaceDefaultKillbillConfigSource
andOSGIConfigPropertiesService
to expose runtime resolved properties grouped by config source.