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

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

Build:
Build:
LAST BUILD BRANCH: fix/deploy-watch-inactive
DEFAULT BRANCH: master
Ran 06 Apr 2026 10:19AM UTC
Jobs 1
Files 101
Run time 1min
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
88566b32-98b4-43c1-a7cc-19e88fe99e7f

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

47 of 51 new or added lines in 1 file covered. (92.16%)

19594 of 25587 relevant lines covered (76.58%)

23.35 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
87.4
membership/membership.go
Jobs
ID Job ID Ran Files Coverage
871 871 06 Apr 2026 10:18AM UTC 101
76.58
CircleCI Job 871
Source Files on build 88566b32-98b4-43c1-a7cc-19e88fe99e7f
  • Tree
  • List 101
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • CircleCI Build #88566B32...
  • Pull Request #63
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