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

decentraland / comms-gatekeeper / 23166637571
82%

Build:
DEFAULT BRANCH: main
Ran 16 Mar 2026 09:26PM UTC
Jobs 1
Files 136
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

16 Mar 2026 09:24PM UTC coverage: 82.478% (-0.09%) from 82.572%
23166637571

push

github

web-flow
feat: add user moderation endpoints (#242)

* feat: add user moderation endpoints for banning and warning players

Add moderator-authorized endpoints for managing player bans and warnings:
- POST/DELETE/GET /moderation/users/:address/bans (ban, lift, status)
- POST/GET /moderation/users/:address/warnings (warn, list)
- GET /moderation/bans (list all active bans)

Includes database migration, business logic with address normalization,
moderator authorization via MODERATORS_ALLOWLIST env var, and full
unit + integration test coverage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: lint

* fix: testing standards

* fix: use existing test identities

* fix: allow cors methods for moderation ui

* feat: replace MODERATORS_ALLOWLIST env var with feature flags

Use @well-known-components/features-component to manage the moderator
allowlist via FF_DAPPS_PLATFORM_USER_MODERATORS, matching the pattern
used in social-service-ea. This enables dynamic flag management with
periodic refresh without requiring a restart.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: lint and fix package

* fix: remove optional signed fetch middleware

* fix: mock ff

* fix: remove unnecessary env var

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

885 of 1192 branches covered (74.24%)

Branch coverage included in aggregate %.

197 of 229 new or added lines in 19 files covered. (86.03%)

2570 of 2997 relevant lines covered (85.75%)

41.1 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
80.0
src/migrations/1742148000000_user-moderation.ts
3
93.02
src/adapters/user-moderation-db.ts
3
72.22
src/controllers/handlers/user-moderation/ban-player-handler.ts
3
50.0
src/controllers/handlers/user-moderation/ban-status-handler.ts
3
50.0
src/controllers/handlers/user-moderation/get-warnings-handler.ts
3
70.59
src/controllers/handlers/user-moderation/lift-ban-handler.ts
3
50.0
src/controllers/handlers/user-moderation/list-bans-handler.ts
3
57.14
src/controllers/handlers/user-moderation/warn-player-handler.ts
9
63.83
src/adapters/feature-flags.ts
Jobs
ID Job ID Ran Files Coverage
1 23166637571.1 16 Mar 2026 09:26PM UTC 272
83.78
GitHub Action Run
Source Files on build 23166637571
  • Tree
  • List 136
  • Changed 80
  • Source Changed 3
  • Coverage Changed 80
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23166637571
  • 5ffc39a7 on github
  • Prev Build on main (#22919883322)
  • Delete
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