-
Notifications
You must be signed in to change notification settings - Fork 0
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
PPF-523 Deleting integration should block keycloak clients #1211
PPF-523 Deleting integration should block keycloak clients #1211
Conversation
{ | ||
$integration = $this->integrationRepository->getById($integrationBlocked->id); |
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.
FYI: it's fine like it is now, but there is a getByIdWithTrashed
to get deleted integration.
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.
Ahh, thank you for that info, but we also don't use anything from the integration except the id so fetching it doesn't have any added value.
private readonly KeycloakClientRepository $keycloakClientRepository, | ||
private readonly ApiClient $client, | ||
private readonly LoggerInterface $logger | ||
) { | ||
} | ||
|
||
public function handle(IntegrationBlocked $integrationBlocked): void | ||
public function handle(IntegrationBlocked|IntegrationDeleted $integrationBlocked): void |
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.
Maybe use a more generic name for the parameter?
Added
Changed
BlockClients no longer fetches the integration but just uses the integration id.
Ticket: https://jira.uitdatabank.be/browse/PPF-523