Skip to content

core: don't add DISTINCT to users list when filtering by type (cherry-pick #26413 to version-2026.8) - #27463

Merged
BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26413-to-version-2026.8
Nov 3, 2026
Merged

BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26413-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #26413 to version-2026.8 branch.

Original PR: #26413
Original Author: @ryanpesek
Cherry-picked commit: 2f005db

`UsersFilter.type` is a `MultipleChoiceFilter`, which defaults to
`distinct=True` because filters across to-many relationships can return
duplicate rows. `type` is a column on the user table, so it can't, but the
DISTINCT made the paginator count and every page evaluate the superuser
annotation for, and sort, all matching users (all columns), usually on disk.
@netlify

netlify Bot commented Nov 2, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit aeb5632
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6ae8f3ab92969bace3342e7d
😎 Deploy Preview https://deploy-preview-27463--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Nov 2, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit aeb5632
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6ae8f3abf32902137ce3c4fb
😎 Deploy Preview https://deploy-preview-27463--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.05%. Comparing base (5b0999f) to head (aeb5632).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff               @@
##           version-2026.8   #27463   +/-   ##
===============================================
  Coverage           92.04%   92.05%           
===============================================
  Files                1164     1164           
  Lines               75219    75249   +30     
  Branches             4129     4129           
===============================================
+ Hits                69239    69270   +31     
+ Misses               5914     5913    -1     
  Partials               66       66           
Flag Coverage Δ
conformance 33.67% <3.12%> (-0.02%) ⬇️
e2e 38.30% <3.12%> (-0.02%) ⬇️
integration 30.34% <3.12%> (-0.02%) ⬇️
rust 46.45% <ø> (ø)
unit 93.47% <100.00%> (+<0.01%) ⬆️
unit-migrate 93.48% <100.00%> (+<0.01%) ⬆️

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

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

@BeryJu
BeryJu merged commit 534b55b into version-2026.8 Nov 3, 2026
132 of 134 checks passed
@BeryJu
BeryJu deleted the cherry-pick/26413-to-version-2026.8 branch November 3, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants