[ ] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[ ] PR title is ready for inclusion in changelog
Database Migrations
[ ] If your PR contains a database migation, it MUST be the latest in date order alphabetically
When a group is deleted in Lagoon, there is a cached item that stores the group-id against the group-name. This allows us to recall information from keycloak quicker by using the ID, rather than a name based search and filtering method.
Unfortunately, if you delete a group, this cached ID remains, and subsequently re-creating the group before the cache expires, results in potential issues with trying to do things against the wrong group ID.
This fixes the issue by purging the cached ID when a group is deleted.
General Checklist
Database Migrations
When a group is deleted in Lagoon, there is a cached item that stores the group-id against the group-name. This allows us to recall information from keycloak quicker by using the ID, rather than a name based search and filtering method.
Unfortunately, if you delete a group, this cached ID remains, and subsequently re-creating the group before the cache expires, results in potential issues with trying to do things against the wrong group ID.
This fixes the issue by purging the cached ID when a group is deleted.