Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
remove list element from centralized property source does not refresh in client app #421
Hi, I have a service registry on which a microservice (spring-boot module) is running. Client app takes the centralized application.yml from registry and refreshes itself upon the call to appURL/refresh. If I change a value of the centralized configuration file and post to client app /refresh it dynamically updates the properties inside the @ConfigurationProperty annotated class. Which is all cool. I can see the changes immedately on the client module. It is working with any of the sole properties and working with collection element update and collection element add (so I can add or change any of the emails in my property app.employee.emails and after /refresh I can see the change). However it is not the case with remove: removing elements is not reflected in client app after calling /refresh end point. Thank you.
I've hit the same problem.
Yaml arrays like:
array: - a - b - c
are converted to properties:
Removing the third element from the array is the same as removing the property with key "array".
But property removal is not supported now and arrays can only increase their size.
I think the refresh mechanism should be fixed. This is more a bug than a possible enhancement.