Skip to content

fix: clear a user's presence when their account or site membership ends - #342

Merged
josephfusco merged 3 commits into
feature/network-summary-pushfrom
fix/327-presence-cleanup
Aug 24, 2026
Merged

josephfusco merged 3 commits into
feature/network-summary-pushfrom
fix/327-presence-cleanup

Conversation

@josephfusco

@josephfusco josephfusco commented Aug 24, 2026 •

Copy link
Copy Markdown
Collaborator

Based on #333, off to the side of the network presence stack rather than in the line of it:

  1. feat: add a network-wide presence summary table #332 summary table
  2. feat: push each site's online set into the network summary #333 write path
  3. feat: read the network summary as a capped snapshot #334 read path
  4. feat: add an Online column to the Network Sites list #335 Sites list column
  5. feat: add an Online view and column to the Network Users list #336 Users list
  6. feat: add a Who's Online widget to the Network Admin dashboard #337 network dashboard widget

Merges any time after #333, independent of #334 and above.


@i-am-chitti wrote this in #339, which merged into feature/network-presence-screen after that branch was closed along with #313, so the commits are cherry-picked here with authorship intact. The only change is that the network test moved from tests/test-network-presence.php to tests/test-network-summary-push.php, since the restructure split that file into four.

Fixes #327

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5
Used for: Assisting with rebasing and testing

@github-actions

Copy link
Copy Markdown
Contributor

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props iamchitti.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@github-actions

Copy link
Copy Markdown
Contributor

▶ Preview in WordPress Playground

Open in WordPress Playground

Boots a fresh WordPress with this PR's presence-api build, seeds 5 demo users, and drops you on the dashboard.

Stress-test variant: 40 demo users · Built from 74d68f4486176332b784394c1e28472845419c4f. Auto-updates when you push.

@josephfusco
josephfusco merged commit 8a3abdc into feature/network-summary-push Aug 24, 2026
17 checks passed
@josephfusco
josephfusco deleted the fix/327-presence-cleanup branch August 24, 2026 20:29
@josephfusco josephfusco added [Area] Database Issues for the wp_presence table and cron cleanup [Area] Multisite Network-wide presence, aggregation, and Network Admin surfaces and removed [Area] Database Issues for the wp_presence table and cron cleanup labels Sep 4, 2026
@josephfusco josephfusco added this to the 0.2.0 milestone Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Multisite Network-wide presence, aggregation, and Network Admin surfaces

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants