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

decentraland / events / 24939241526
65%

Build:
DEFAULT BRANCH: master
Ran 25 Apr 2026 08:19PM UTC
Jobs 1
Files 30
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

25 Apr 2026 07:50PM UTC coverage: 64.368% (+6.4%) from 57.935%
24939241526

push

github

web-flow
feat: add admin API for event moderation via bearer token (#911)

* feat: add admin API for event moderation via bearer token

* refactor: fold admin bearer auth into existing event routes

* refactor: split admin bearer middleware from user auth

* Refactor admin event routes and add integration tests

* refactor: address admin API review feedback

- Extract shared validateRejectionReason helper in Event/utils.ts to
  unify the duplicated trim/non-empty/length checks previously in
  admin.ts (getRejectionReason) and updateEvent.ts (normalizeRejectionReason).
- Export editEventAttributesWithoutRejected from Event/types.ts and
  reuse it in admin and updateEvent instead of recomputing the filter.
- Introduce adminServiceProfile and adminServiceSessionProfile builders
  to replace the inline DEFAULT_PROFILE_SETTINGS spreads, making the
  session-profile (subscriptions: []) callsite explicit.
- Convert adminBearer middleware to async/await with try/catch.
- Tighten EventUpdate openapi schema with additionalProperties: false
  so the PATCH oneOf disambiguates against the admin schemas.

* fix: Lint

---------

Co-authored-by: LautaroPetaccio <lausuper@gmail.com>

299 of 405 branches covered (73.83%)

Branch coverage included in aggregate %.

529 of 610 new or added lines in 10 files covered. (86.72%)

2 existing lines in 2 files now uncovered.

3276 of 5149 relevant lines covered (63.62%)

2.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
28
89.88
src/entities/Event/routes/admin.ts
25
64.29
src/entities/Event/routes/middleware/adminBearer.ts
12
70.49
0.27% src/entities/Event/utils.ts
8
10.39
-0.17% src/entities/Slack/utils.ts
7
52.17
24.79% src/entities/Event/routes/getEvent.ts
1
69.95
28.01% src/entities/Event/routes/getEventList.ts

Coverage Regressions

Lines Coverage ∆ File
1
52.17
24.79% src/entities/Event/routes/getEvent.ts
1
71.58
5.73% src/entities/Event/routes/updateEvent.ts
Jobs
ID Job ID Ran Files Coverage
1 24939241526.1 25 Apr 2026 08:19PM UTC 30
64.37
GitHub Action Run
Source Files on build 24939241526
  • Tree
  • List 30
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 8e4ba987 on github
  • Prev Build on master (#24753292401)
  • Next Build on master (#25015316267)
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