Count rotations as active days, and leave the seeded operator out of the KPI feed #361
No reviewers
Labels
No labels
area:docs
area:identity
area:ops
area:plugin
area:server
channel:community
channel:direct
channel:owned
channel:press
channel:social
dependencies
e2ee-constrained
gate:at-ga
gate:pre-ga
marketing
parity
relay:absent
relay:planned
relay:requested
relay:supported
risk:additive
risk:contract
risk:none
security
usability
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Nectenda/nectenda!361
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-kpi-rotation-days"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task: NEC-401
Two KPI corrections found while reading "days seen" for a customer.
devices.last_seenmoves only when a device connects, so a desktop left syncing for a week read as one active day. The collector now also records the day of each identity session's last rotation (the plugin rotates at least hourly while it runs), as a union with the connect days. Counted from 27 Nov 2026; the schema comment and the active-users panel description say so, and the dashboard JSON is regenerated.ADMIN_USERNAME(shard:bc664ee2on eu1) read as a person on the leaderboard and a one-member organisation. It is excluded from users, members, folder members and invites, and an organisation it alone belongs to is excluded with its folders. A pre-identity user who is not an instance admin, and a hosted user of any role, are still reported.Both rules are tested and mutation-checked: removing the rotation union fails the collector test, and each of the eight server exclusions, inverted in turn, fails the server test.
The rest of NEC-401 (the last-active view and panel) is not in this PR.
After merge: manual steps
mainpromotes:stable.deploy/clconsole/kpi/toclconsole:kpi/(excludingdata,backups,.env) so the collector and dashboard pick up the rotation days.Changelog
NONE
🤖 Generated with Claude Code
https://claude.ai/code/session_01MY63BZ4UVtMHFcADNr1jFg