-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add platine management export permission check #386
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
base: main
Are you sure you want to change the base?
Conversation
davdarras
commented
Jan 16, 2026
- check permission
- add compose
- check permission - add compose
alicela
left a comment
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ;-)