Repository navigation
Trim whitespace from CredHub application names - #3372
yashdotdev13 wants to merge 3 commits into
Conversation
Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
|
I dont see how this fixes #1873. That issue is about comma separated list of application names, not white spaces |
|
Thanks for pointing this out. After revisiting the original issue, I realize that my PR only addresses whitespace handling and does not solve the core requirement of supporting multiple comma-separated application names. I'll revisit the implementation to handle each application name individually and update the PR accordingly. Sorry for the misunderstanding. |
|
Then the PR description should be updated since it does not fix the issue |
|
You're right. I'll keep this PR focused on whitespace normalization in CredHub application names rather than addressing #1873. I'll update the PR title and description accordingly. Thanks for the clarification! |
|
hey @ryanjbaxter , ha've updated the PR title and description and removed the reference to #1873. This PR now focuses solely on whitespace normalization in CredHub application names. Thanks for your feedback and guidance! |
Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
|
Addressed all three review comments and pushed the changes. Tests are passing. Could you please take another look? Thanks! |
Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
|
Updated to reuse the normalized values and avoid duplicating the logic. Thanks! |
| List<String> labels = normalize(label); | ||
|
|
||
| Environment environment = new Environment(application, split(profile), label, null, null); | ||
| List<String> normalizedApplications = normalize(application); |
There was a problem hiding this comment.
Use normalize(String commaDelimitedItems, String defaultItem)
There was a problem hiding this comment.
Just to clarify, should the Environment metadata include the default application/profile values from the normalized lists, or should it preserve the original metadata behavior while reusing the normalized values for property source lookup?
Summary
Improve handling of whitespace in comma-delimited application names in
CredhubEnvironmentRepository.Changes
Testing
CredhubEnvironmentRepositoryTests— 13 tests passed.spring-cloud-config-servermodule tests passed successfully.