Skip to content

enterprise/lifecycle: remove one review per object limitation - #21046

Merged
PeshekDotDev merged 18 commits into
goauthentik:mainfrom
atereshkin:lifecycle-multiple-reviews
Apr 30, 2026
Merged

PeshekDotDev merged 18 commits into
goauthentik:mainfrom
atereshkin:lifecycle-multiple-reviews

Conversation

@atereshkin

@atereshkin atereshkin commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Details

This lifts the requirement that only one Lifecycle Rule can apply to a single object, and, therefore, allows multiple concurrent reviews per obejct.

Additionally, this removes task list from the lifecycle rule list page and attaches the tasks to the schedule instead of rule.


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)

If applicable

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

@atereshkin
atereshkin requested review from a team as code owners March 20, 2026 16:15
@netlify

netlify Bot commented Mar 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 793ca36
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69f3a24914fad000085ddcc4
😎 Deploy Preview https://deploy-preview-21046--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.

@netlify

netlify Bot commented Mar 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 793ca36
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69f3a249778f4d0008688391
😎 Deploy Preview https://deploy-preview-21046--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 Mar 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 793ca36
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69f3a24916d636000888d5d4
😎 Deploy Preview https://deploy-preview-21046--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 Mar 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.15%. Comparing base (6993600) to head (793ca36).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #21046      +/-   ##
==========================================
+ Coverage   93.01%   93.15%   +0.13%     
==========================================
  Files        1017     1017              
  Lines       58397    58449      +52     
  Branches      331      331              
==========================================
+ Hits        54319    54448     +129     
+ Misses       4078     4001      -77     
Flag Coverage Δ
conformance 36.52% <17.97%> (-0.03%) ⬇️
e2e 42.41% <17.97%> (+0.23%) ⬆️
integration 32.99% <17.97%> (-0.53%) ⬇️
rust 0.00% <ø> (ø)
unit 92.02% <100.00%> (+0.01%) ⬆️
unit-migrate 92.05% <100.00%> (+0.03%) ⬆️

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

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

Comment thread authentik/enterprise/lifecycle/tasks.py Resolved
@atereshkin
atereshkin force-pushed the lifecycle-multiple-reviews branch from 86079b9 to 971c429 Compare March 31, 2026 18:36
@atereshkin
atereshkin requested a review from rissson April 1, 2026 16:07
@atereshkin
atereshkin force-pushed the lifecycle-multiple-reviews branch from 971c429 to 2263b2b Compare April 21, 2026 18:11
@atereshkin
atereshkin force-pushed the lifecycle-multiple-reviews branch from e3ab8db to cc5c126 Compare April 28, 2026 11:19

@kensternberg-authentik kensternberg-authentik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have some nitpicking (mostly about the Python), but overall this is solid. My biggest concern is the slot="header" no-op. It can stay for now, since we're time-compressed, but I'd like to schedule removing it since it will complicate future maintenance.

Comment thread authentik/enterprise/lifecycle/tasks.py Resolved
…e rules per object, add tests, update documentation
…tions on Review tab for better visual separation
…iews with user_is_reviewer annotation to prevent duplicate rows
…r use in a notification to prevent texts like "Review is due for Group Group X"
…nd switch to using per-rule schedules"

This reverts commit 8a06001.
… the schedule when launched from apply_lifecycle_rules
@atereshkin
atereshkin force-pushed the lifecycle-multiple-reviews branch from 9ff4ee2 to 793ca36 Compare April 30, 2026 18:41
@PeshekDotDev
PeshekDotDev merged commit 8963d29 into goauthentik:main Apr 30, 2026
104 checks passed
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.

5 participants