Skip to content

sources/ldap: made ldap_sync_single calls from ldap_sync_all asynchronous#6862

Merged
BeryJu merged 1 commit intogoauthentik:mainfrom
a-gerhard:ldap_sync_all_async_children
Oct 16, 2023
Merged

sources/ldap: made ldap_sync_single calls from ldap_sync_all asynchronous#6862
BeryJu merged 1 commit intogoauthentik:mainfrom
a-gerhard:ldap_sync_all_async_children

Conversation

@a-gerhard
Copy link
Contributor

Contrary to the commit message of d36574f, ldap_sync_all does not call ldap_sync_single asynchronously. This leads to timeout, if the ldap_sync_single calls take more than 10 minutes in total.

This change fixes the issue.


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)
  • The translation files have been updated (make i18n-extract)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@a-gerhard a-gerhard requested a review from a team as a code owner September 12, 2023 12:00
@a-gerhard a-gerhard requested review from rissson and removed request for a team September 12, 2023 12:00
@netlify
Copy link

netlify bot commented Sep 12, 2023

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 27902fb
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/650052deb40a23000815b515

@rissson rissson requested a review from BeryJu September 12, 2023 12:02
@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage has no change and project coverage change: -40.50% ⚠️

Comparison is base (515ce94) 92.67% compared to head (27902fb) 52.17%.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #6862       +/-   ##
===========================================
- Coverage   92.67%   52.17%   -40.50%     
===========================================
  Files         565      565               
  Lines       27794    27794               
===========================================
- Hits        25756    14499    -11257     
- Misses       2038    13295    +11257     
Flag Coverage Δ
e2e 50.42% <0.00%> (-0.74%) ⬇️
integration 26.39% <0.00%> (ø)
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
authentik/sources/ldap/tasks.py 39.07% <0.00%> (-53.12%) ⬇️

... and 379 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@BeryJu BeryJu left a comment

Choose a reason for hiding this comment

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

Oh yeah nice catch, I didn't even realise that the code wasn't doing this

@BeryJu BeryJu merged commit 00b2a77 into goauthentik:main Oct 16, 2023
kensternberg-authentik added a commit that referenced this pull request Oct 16, 2023
* main:
  web: the return of pseudolocalization (#7190)
  rbac: revisions (#7188)
  website: bump @babel/traverse from 7.21.4 to 7.23.2 in /website (#7187)
  web: bump API Client version (#7186)
  core: Initial RBAC (#6806)
  lifecycle: re-fix system migrations (#7185)
  outposts: use channel groups instead of saving channel names (#7183)
  sources/ldap: made ldap_sync_single calls from ldap_sync_all asynchronous (#6862)
  website/docs: fix API OAuth token usage (#7159)
  web: bump rollup from 4.1.3 to 4.1.4 in /web (#7181)
  web: bump @formatjs/intl-listformat from 7.4.2 to 7.5.0 in /web (#7182)
  web: bump @rollup/plugin-replace from 5.0.3 to 5.0.4 in /web (#7177)
  web: bump the sentry group in /web with 2 updates (#7175)
  web: bump @rollup/plugin-commonjs from 25.0.5 to 25.0.7 in /web (#7178)
  web: bump yaml from 2.3.2 to 2.3.3 in /web (#7176)
  web: bump rollup from 4.0.2 to 4.1.3 in /web (#7179)
  web: bump the wdio group in /tests/wdio with 3 updates (#7180)
kensternberg-authentik added a commit that referenced this pull request Oct 17, 2023
* main: (23 commits)
  ci: test with postgres 16
  translate: Updates for file web/xliff/en.xlf in fr (#7189)
  web: bump the esbuild group in /web with 2 updates (#7195)
  web: bump the eslint group in /tests/wdio with 2 updates (#7192)
  core: bump ruff from 0.0.292 to 0.1.0 (#7194)
  web: bump the eslint group in /web with 2 updates (#7193)
  web: the return of pseudolocalization (#7190)
  rbac: revisions (#7188)
  website: bump @babel/traverse from 7.21.4 to 7.23.2 in /website (#7187)
  web: bump API Client version (#7186)
  core: Initial RBAC (#6806)
  lifecycle: re-fix system migrations (#7185)
  outposts: use channel groups instead of saving channel names (#7183)
  sources/ldap: made ldap_sync_single calls from ldap_sync_all asynchronous (#6862)
  website/docs: fix API OAuth token usage (#7159)
  web: bump rollup from 4.1.3 to 4.1.4 in /web (#7181)
  web: bump @formatjs/intl-listformat from 7.4.2 to 7.5.0 in /web (#7182)
  web: bump @rollup/plugin-replace from 5.0.3 to 5.0.4 in /web (#7177)
  web: bump the sentry group in /web with 2 updates (#7175)
  web: bump @rollup/plugin-commonjs from 25.0.5 to 25.0.7 in /web (#7178)
  ...
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.

2 participants