You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support AND operator in yml profile matching #12469
In 2.0 we changed the way that YAML profiles are handled. We now delegate to Environment.acceptsProfiles to determine when the document is include. I think as a result of this change, if SPR-12458 is fixed then Boot should just work.
I'll leave this one open since we should add some tests, but getting SPR-12458 fixed should be the priority.
My current interpretation of the proposed fix for SPR-12458 is that it would not change the behavior of Environment.acceptsProfiles, but instead introduce a new annotation pattern to get the AND behavior. But perhaps I'm missing some context that didn't make it into the ticket. That is what led me to opening this issue and proposing a key like spring.allProfiles as an analogue to the suggested @Profiles approach in SPR-12458. If I understand correctly, boot will need more than a test case.
I'd be happy to submit a PR for that work, just waiting to hear from either ticket what the accepted solution should be.
Activity
philwebb commentedon Mar 19, 2018
In 2.0 we changed the way that YAML profiles are handled. We now delegate to
Environment.acceptsProfilesto determine when the document is include. I think as a result of this change, if SPR-12458 is fixed then Boot should just work.I'll leave this one open since we should add some tests, but getting SPR-12458 fixed should be the priority.
twicksell commentedon Mar 27, 2018
My current interpretation of the proposed fix for SPR-12458 is that it would not change the behavior of Environment.acceptsProfiles, but instead introduce a new annotation pattern to get the AND behavior. But perhaps I'm missing some context that didn't make it into the ticket. That is what led me to opening this issue and proposing a key like
spring.allProfilesas an analogue to the suggested@Profilesapproach in SPR-12458. If I understand correctly, boot will need more than a test case.I'd be happy to submit a PR for that work, just waiting to hear from either ticket what the accepted solution should be.
philwebb commentedon Mar 27, 2018
I missed the JIRA update from May 7. I've added a comment to the Spring issue
twicksell commentedon Mar 27, 2018
Thanks, I also wouldn't oppose the
p2+p3approach FWIW. Appreciate your help with this issue.