Skip to content

Scoped targets such as those created by @RefreshScope are not skipped when discovering endpoint beans #15182

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

Closed
wants to merge 5 commits into from

Conversation

rahul404
Copy link
Contributor

This PR fixes #15063 .
The code make changes to
spring-boot/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/annotation/EndpointDiscoverer.java
to skip any beans whose name is prefixed with "scopedTarget."

@pivotal-issuemaster
Copy link

@rahul404 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@rahul404 Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 15, 2018
@wilkinsona wilkinsona added this to the 2.0.x milestone Nov 15, 2018
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 15, 2018
@wilkinsona wilkinsona changed the title filtering out the scopedTarget. version of endpoint bean Fixes gh-15063 Scoped targets such as those created by @RefreshScope are not skipped when discovering endpoint beans Nov 15, 2018
@philwebb philwebb changed the title Scoped targets such as those created by @RefreshScope are not skipped when discovering endpoint beans Skip scoped targets when determining endpoint beans Nov 15, 2018
@philwebb philwebb self-assigned this Nov 15, 2018
@philwebb philwebb changed the title Skip scoped targets when determining endpoint beans Scoped targets such as those created by @RefreshScope are not skipped when discovering endpoint beans Nov 15, 2018
philwebb added a commit that referenced this pull request Nov 15, 2018
* pr/15182:
  Polish "Skip scoped targets when determining endpoints"
  Skip scoped targets when determining endpoints
@philwebb philwebb closed this in 4853e6a Nov 15, 2018
@philwebb
Copy link
Member

@rahul404 Thanks very much for your first contribution to Spring Boot. This has now been merged into 2.0.x and master.

I've made one small polish commit that saves an unnecessary call to createEndpointBean.

Thanks again!

@philwebb philwebb modified the milestones: 2.0.x, 2.0.7 Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Skip scoped targets when determining endpoint beans
5 participants