Repository navigation
tasks: aggregate status from logs instead of legacy field - #24792
Conversation
✅ 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✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24792 +/- ##
========================================
Coverage 91.47% 91.48%
========================================
Files 1148 1150 +2
Lines 72323 72430 +107
Branches 3875 3875
========================================
+ Hits 66160 66264 +104
- Misses 6128 6131 +3
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-a58eb8fccbbb5aeda97cbe781094b13779258775
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-a58eb8fccbbb5aeda97cbe781094b13779258775Afterwards, run the upgrade commands from the latest release notes. |
rissson
left a comment
There was a problem hiding this comment.
approving provided the added tests pass
|
🍒 Cherry-pick to |
|
🍒 Cherry-pick to |
…#24792 to version-2026.8) (#25004) tasks: aggregate status from logs instead of legacy field (#24792) * aggregate task status from logs instead of legacy field * remove comment * remove backfill of tasks Co-authored-by: Marcelo Elizeche Landó <[email protected]>
Task.aggregated_statusis set by a trigger that reads the_messagesfield.0005_tasklogmoved logs into theTaskLogtable but left the trigger untouched, and nothing writes_messagesanymore, soaggregated_statuscan only ever equal the task's state, andinfo/warning/errorare unreachable.As a result, tasks that log errors display as Done, the "exclude successful" task view matches nothing, and the status summary always reports zero for those levels. 13 non-test
self.error()/self.warning()call sites are invisible in the UI. Tasks that raise are unaffected,rejectedis a state, not log-derived.How
TaskLog, as explicit plpgsqlIF/ELSEso the lookup only runs on the transition todone, hitting the existing(task_id, previous)index.donedespite warning/error logs; it reuses the trigger, so the query only selects affected rows.Example
before with a broken blueprint: all good

after:
Checklist
make all)make docs)