Skip to content

Conversation

@davdarras
Copy link
Contributor

  • check permission
  • add compose

@davdarras davdarras requested a review from alicela January 19, 2026 08:54
Copy link
Contributor

@alicela alicela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick review

import java.nio.charset.StandardCharsets;

@Slf4j
public class LoggingInterceptor implements ClientHttpRequestInterceptor {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No conflict with fr.insee.genesis.configuration.LogRequestFilter ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not have conflict, 2 different purposes:

  • LogRequestFilter => log user requests on genesis api
  • LoggingInterceptor => log the requests/responses when genesis api calls platine-management api



@Bean("platineRestClientBuilder")
public RestClient.Builder platineRestClientBuilder() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we used webclient in fr.insee.genesis.infrastructure.utils.http.HttpUtils

Maybe we have to harmonize

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a little chat with @loichenninger on this specific subject. WebClient should not be used anymore for this kind of cases. Its primary usage is to send asynchron requests. Here, WebClient is used to make synchrone calls (.block()). In recent versions of spring:

  • synchron => RestClient
  • asynchron => WebClient

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@loichenninger proposed to harmonize this in a next feature

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, something to do for us in the next 3 weeks ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants