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

panates / opra / 39392327738
86%
main: 86%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: main
Ran 20 Oct 2026 08:34AM UTC
Jobs 1
Files 393
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

20 Oct 2026 08:17AM UTC coverage: 85.985%. First build
39392327738

Pull #128

github

erayhanoglu
feat(nestjs-http): Add getOpraContext() for guards and interceptors

A guard runs before the handler, and it is the handler that settles
which of a request's contexts is the active one. Until then
`req.opraContext` holds whichever module's middleware ran last, so in an
application with two modules a guard setting `ctx.user` wrote it to the
other API's context and that API's handler saw no user. Exactly one of
the two modules worked, and which one was a matter of middleware order.

Everything needed to resolve this was already exported — the adapter
metadata on the controller class and `getRequestContext` — but only as
parts, leaving every application to join them itself and to know the
metadata key. `getOpraContext(executionContext)` is that join: it asks
the controller class which adapter owns the route and returns the
context that adapter built, falling back to the active context for a
route that is not an OPRA controller's.

With a single module it returns what `req.opraContext` would have, so it
is the right thing to reach for either way.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #128: fix(nestjs-http): schemaIsPublic scope, and a context helper for guards

4822 of 6175 branches covered (78.09%)

Branch coverage included in aggregate %.

77 of 78 new or added lines in 3 files covered. (98.72%)

41154 of 47295 relevant lines covered (87.02%)

317.14 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
92.14
packages/nestjs-http/src/opra-request-context.ts
Jobs
ID Job ID Ran Files Coverage
1 39392327738.1 20 Oct 2026 08:34AM UTC 393
85.98
GitHub Action Run
Source Files on build 39392327738
  • Tree
  • List 393
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39392327738
  • Pull Request #128
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc