A paying member whose forum account was deleted never gets forum access back, and no page says why #332

Open
opened 2026-11-14 23:17:14 +00:00 by cgalo5758 · 0 comments
Owner

What happens

A member who is entitled to a forum group has a linked forum account. That account is deleted on the forum, by the member or by a forum admin. At the next sync the console finds the account gone and marks the link "orphaned", so that one dead username does not block the other members of the group.

The member then registers a new forum account. The console normally finds a member's forum account from their identity and links it, but it never looks this member up again:

  • the linking step answers "already linked" for any existing link that is not in conflict, an orphaned one included;
  • the sync adds only people whose link is in the linked state;
  • the list of entitled people without a link leaves out anyone who has a link of any state.

The operator's Discourse page lists unlinked people and conflicts and does not list orphaned links. The member's own forum card reads "Granted" and shows the guidance for linking an account, as it does for someone who never had one. The only trace is a warning in the server log.

What should happen

An orphaned link is looked up again, so a member who registers a new forum account is linked to it and added to the group at the next sync. Until then the operator's page lists orphaned links with the person and the forum username that disappeared, and the member's card says the forum account was not found.

Where

  • internal/integrations/discourse/linkage/linkage.go, EnsureLink.
  • internal/integrations/discourse/workflows/activities.go, where a link is marked orphaned.
  • internal/integrations/discourse/store/queries/desired_members.sql.
  • internal/integrations/discourse/web/operator.go and internal/integrations/discourse/web/member.go.
  • internal/integrations/discourse/store/migrations/00003_orphaned_link_status.sql says an orphaned link is visible to the operator and that linking again is the linker's decision. Neither is built.

Steps

  1. Link a member's forum account and let the sync add it to a mapped group.
  2. Delete that forum account on the forum.
  3. Run the sync. The link becomes orphaned.
  4. Register a new forum account for the same member and run the sync again.

The member is not in the group, the operator's page shows nothing about them, and the member's card reads as before.

Why it matters

A member keeps paying for forum access they do not have, and neither they nor an operator can find out why.

### What happens A member who is entitled to a forum group has a linked forum account. That account is deleted on the forum, by the member or by a forum admin. At the next sync the console finds the account gone and marks the link "orphaned", so that one dead username does not block the other members of the group. The member then registers a new forum account. The console normally finds a member's forum account from their identity and links it, but it never looks this member up again: - the linking step answers "already linked" for any existing link that is not in conflict, an orphaned one included; - the sync adds only people whose link is in the linked state; - the list of entitled people without a link leaves out anyone who has a link of any state. The operator's Discourse page lists unlinked people and conflicts and does not list orphaned links. The member's own forum card reads "Granted" and shows the guidance for linking an account, as it does for someone who never had one. The only trace is a warning in the server log. ### What should happen An orphaned link is looked up again, so a member who registers a new forum account is linked to it and added to the group at the next sync. Until then the operator's page lists orphaned links with the person and the forum username that disappeared, and the member's card says the forum account was not found. ### Where - `internal/integrations/discourse/linkage/linkage.go`, `EnsureLink`. - `internal/integrations/discourse/workflows/activities.go`, where a link is marked orphaned. - `internal/integrations/discourse/store/queries/desired_members.sql`. - `internal/integrations/discourse/web/operator.go` and `internal/integrations/discourse/web/member.go`. - `internal/integrations/discourse/store/migrations/00003_orphaned_link_status.sql` says an orphaned link is visible to the operator and that linking again is the linker's decision. Neither is built. ### Steps 1. Link a member's forum account and let the sync add it to a mapped group. 2. Delete that forum account on the forum. 3. Run the sync. The link becomes orphaned. 4. Register a new forum account for the same member and run the sync again. The member is not in the group, the operator's page shows nothing about them, and the member's card reads as before. ### Why it matters A member keeps paying for forum access they do not have, and neither they nor an operator can find out why.
cgalo5758 added the
kind
bug
area/discoursearea/operator-uiarea/member-ui
labels 2026-11-14 23:17:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wiki-cafe/member-console#332