Skip to content
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

Remove unused code in GitInfoContributor #31903

Closed
wants to merge 1 commit into from
Closed

Remove unused code in GitInfoContributor #31903

wants to merge 1 commit into from

Conversation

dalbani
Copy link
Contributor

@dalbani dalbani commented Jul 28, 2022

As stated in the documentation at https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/#info.retrieving.response-structure.git, the info Actuator endpoint doesn't include a build.time in the response.
Yet, in GitInfoContributor::postProcessContent(), the method looks for a build.time property that thus never exists, because it's not retained in the toSimplePropertySource() method above.
The line of code in question doesn't break anything but it has no effect either.
That's why I suggest removing it altogether for clarity.

Given that the `info` Actuator endpoint doesn't support/use the `git.build.time` property.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 28, 2022
@snicoll
Copy link
Member

snicoll commented Jul 28, 2022

@dalbani that's the output for the simple mode. When it outputs the full data, there is a build.time property exposed. The mode is documented here. I can see that this section could use a second look so I've created an issue for that.

@snicoll snicoll closed this Jul 28, 2022
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 28, 2022
@dalbani
Copy link
Contributor Author

dalbani commented Jul 28, 2022

Thanks a lot @snicoll for this super fast and helpful feedback 👍

@dalbani dalbani deleted the patch-1 branch July 28, 2022 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants