Skip to content

events: migrate top_per_user to serializer for params - #23779

Merged
BeryJu merged 2 commits into
mainfrom
events/fix-top_per_user
Jul 7, 2026
Merged

BeryJu merged 2 commits into
mainfrom
events/fix-top_per_user

Conversation

@BeryJu

@BeryJu BeryJu commented Jul 6, 2026

Copy link
Copy Markdown
Member

closes #23770

@BeryJu
BeryJu requested review from a team as code owners July 6, 2026 15:44
@netlify

netlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 28a4e50
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a4bcd589dc3470008df1428
😎 Deploy Preview https://deploy-preview-23779--authentik-docs.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 Jul 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.24%. Comparing base (92982cc) to head (287f14e).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #23779   +/-   ##
=======================================
  Coverage   93.23%   93.24%           
=======================================
  Files        1043     1043           
  Lines       60963    60965    +2     
  Branches      424      424           
=======================================
+ Hits        56841    56845    +4     
+ Misses       4122     4120    -2     
Flag Coverage Δ
conformance 36.33% <62.50%> (+<0.01%) ⬆️
e2e 41.53% <62.50%> (+<0.01%) ⬆️
integration 32.74% <62.50%> (+<0.01%) ⬆️
rust 0.00% <ø> (ø)
unit 92.30% <100.00%> (+<0.01%) ⬆️
unit-migrate 92.34% <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.

Signed-off-by: Jens Langhammer <[email protected]>
response = self.client.get(
reverse("authentik_api:event-top-per-user"),
data={"filter_action": EventAction.AUTHORIZE_APPLICATION},
data={"action": EventAction.AUTHORIZE_APPLICATION},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we're still sending action here but I don't see it used in the handler

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it's a filter on the entire eventviewset thats used by self.filter_queryset

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ahhh fair enough

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-287f14e575ff7e3d211e69d3d1d1488711858bfd
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

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-287f14e575ff7e3d211e69d3d1d1488711858bfd

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu
BeryJu merged commit 54ea3a3 into main Jul 7, 2026
110 checks passed
@BeryJu
BeryJu deleted the events/fix-top_per_user branch July 7, 2026 13:02
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.

GET /api/v3/events/events/top_per_user/ returns 500 on non-numeric or negative top_n query parameter

3 participants