• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Freegle / iznik-server-go / 88566b32-98b4-43c1-a7cc-19e88fe99e7f / 871
77%
master: 89%

Build:
Build:
LAST BUILD BRANCH: fix/deploy-watch-inactive
DEFAULT BRANCH: master
Ran 06 Apr 2026 10:19AM UTC
Files 101
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Apr 2026 10:09AM UTC coverage: 76.578%. First build
871

Pull #63

circleci

edwh
fix(membership): banned list shows V1 bans and isolates by group

V1 PHP stores bans in users_banned only (memberships row deleted).
Go API stored bans in memberships.collection='Banned' only.

Two bugs resulted:
1. filter=5 (Banned list) showed empty for mods whose members were
   banned via V1, since the query only checked memberships.
2. Members appeared in multiple groups' banned lists when legacy
   global ban data created memberships.collection='Banned' across
   all groups (no users_banned row scoped to specific group).

Fix:
- Ban action now writes to BOTH memberships AND users_banned (V1 parity)
- Unban action deletes from BOTH tables
- Unban-on-rejoin (PutMemberships) checks BOTH tables, clearing both
- filter=5 query uses UNION ALL: branch 1 selects from users_banned
  (group-specific, authoritative) for V1 and new Go bans; branch 2
  selects legacy Go-only memberships rows (NOT EXISTS guard prevents
  duplicates). ORDER BY (bandate IS NULL), bandate DESC so real dates
  sort above undated legacy entries.

Tests added:
- TestBannedListShowsV1StyleBan: V1-style ban appears in filter=5
- TestBannedListIsolatedByGroup: ban in group A absent from group B
- TestBanActionWritesUsersBanned: Ban API writes users_banned, bandate shown

Fixes Discourse topic #9553 post #4

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pull Request #63: fix(membership): banned list shows V1 bans and isolates by group

19594 of 25587 relevant lines covered (76.58%)

23.35 hits per line

Source Files on job 871
  • Tree
  • List 101
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 88566
  • CircleCI Build #871
  • d2558f87 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc