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

Unleash / unleash / 21243272306
86%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 22 Jan 2026 09:40AM UTC
Jobs 1
Files 1137
Run time 2min
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

22 Jan 2026 09:32AM UTC coverage: 86.14% (-0.03%) from 86.174%
21243272306

push

github

web-flow
feat: add include query param to context api to allow different combinations (#11234)

Lets the context API return:
- all context fields
- only root context fields
- only fields belonging to a queried project
- all "assignable" fields within a project (project-specific + root)

Uses an "include" query parameter to control this. The parameter can
either be "project" or "root", e.g. "GET
api/admin/context?include=project".

Including "project" on the root level, will give all root fields AND all
project-specific fields (for all projects).
Likewise, including "root" on the project level will give the
project-specific fields for that project and all root fields.

Without the includes, the top-level context API only returns root
fields, and the project level API only returns project fields.

Tests to be added in a later PR.

## Root vs global

As [described in the
docs](https://docs.getunleash.io/concepts#the-root-level), Unleash calls
the top level the "root level". The root level includes things like
users, tokens, roles, and **context fields**. As such, I think that the
include keyword should be `root` instead of `global`.

1687 of 1900 branches covered (88.79%)

1 of 12 new or added lines in 3 files covered. (8.33%)

2 existing lines in 2 files now uncovered.

14264 of 16559 relevant lines covered (86.14%)

850.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
79.71
-3.62% src/lib/features/context/context-service.ts
8
82.81
-10.17% src/lib/features/context/context.ts

Uncovered Existing Lines

Lines Coverage ∆ File
1
84.69
3.06% src/lib/features/playground/feature-evaluator/constraint.ts
1
85.94
-0.78% src/lib/services/api-token-service.ts
Jobs
ID Job ID Ran Files Coverage
1 21243272306.1 22 Jan 2026 09:40AM UTC 1137
86.14
GitHub Action Run
Source Files on build 21243272306
  • Tree
  • List 1137
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #21243272306
  • 8a671edb on github
  • Prev Build on main (#21227794706)
  • Next Build on main (#21243342503)
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