lib/sync/outgoing: handle deletions even if object does not exist in database#18968
lib/sync/outgoing: handle deletions even if object does not exist in database#18968
Conversation
…database Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #18968 +/- ##
==========================================
- Coverage 93.22% 93.18% -0.05%
==========================================
Files 948 948
Lines 52026 52053 +27
==========================================
+ Hits 48503 48505 +2
- Misses 3523 3548 +25
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-6ba2db3ec364794590ff116e69dd4687e8ef887d
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-6ba2db3ec364794590ff116e69dd4687e8ef887dAfterwards, run the upgrade commands from the latest release notes. |
| if not microsoft_group: | ||
| self.logger.debug("Group does not exist in Microsoft, skipping") | ||
| return None |
There was a problem hiding this comment.
I am trying to remember if there was a reason this check exists
| ) | ||
| microsoft_user.delete() | ||
| return response | ||
| MicrosoftEntraProviderUser.objects.filter( |
There was a problem hiding this comment.
Do we even needs these deletes here? Cause when a user/group is deleted this should cascade..although I guess we need this to delete from the connection object?
There was a problem hiding this comment.
It might not be required, but it doesn't hurt for now I guess
BeryJu
left a comment
There was a problem hiding this comment.
Added some comments otherwise lgtm
|
🍒 Cherry-pick to |
Details
See #18961
Checklist
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make docs)