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

divviup / divviup-api / 24687304870
69%

Build:
DEFAULT BRANCH: main
Ran 20 Apr 2026 08:00PM UTC
Jobs 1
Files 119
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 Apr 2026 07:57PM UTC coverage: 57.188% (-0.9%) from 58.079%
24687304870

push

github

web-flow
Migrate from Trillium [part 4]: Axum extractors (#2216)

Add `FromRequestParts` impls alongside every existing `FromConn` impl so
that Axum handlers (migrated in Parts 5-7) can extract the same types.
Both impls coexist on the same types; no routes migrate in this PR.

Extractors added:
- Db, Auth0Client, Crypter, FeatureFlags: via `FromRef<AxumAppState>`
- AccountBearerToken: from `Authorization: Bearer` header + DB lookup,
  cached in request extensions
- User: from tower-sessions Session (n.b. this is dead until Part 6 wires
  up `SessionManagerLayer`)
- PermissionsActor: tries bearer token, falls back to session user +
  memberships query, cached in request extensions
- Account, Task, Aggregator, ApiToken, CollectorCredential: via a shared
  `extract_entity` helper that generically handles path param parsing,
  DB lookup, and permission checking

Other changes:
- Expand AxumAppState with auth0_client, crypter, feature_flags fields
- Add `is_allowed_http`/`if_allowed_http` methods on PermissionsActor
  for `http::Method` (this is refactored to share logic with the Trillium
  variants via `check_permission`)
- Enable `axum-core` feature on tower-sessions-core for Session's
  `FromRequestParts` impl

8 of 134 new or added lines in 10 files covered. (5.97%)

1 existing line in 1 file now uncovered.

4344 of 7596 relevant lines covered (57.19%)

60.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
26
0.0
src/handler/extract.rs
25
64.29
-35.71% src/user.rs
24
61.54
-26.7% src/permissions.rs
21
38.89
-54.44% src/handler/account_bearer_token.rs
15
80.65
-10.86% src/handler.rs
3
87.5
-4.95% src/routes/accounts.rs
3
93.64
-2.63% src/routes/aggregators.rs
3
86.36
-6.32% src/routes/api_tokens.rs
3
79.37
-3.97% src/routes/collector_credentials.rs
3
91.73
-2.12% src/routes/tasks.rs

Coverage Regressions

Lines Coverage ∆ File
1
77.27
13.64% src/entity/aggregator/role.rs
Jobs
ID Job ID Ran Files Coverage
1 24687304870.1 20 Apr 2026 08:00PM UTC 119
57.19
GitHub Action Run
Source Files on build 24687304870
  • Tree
  • List 119
  • Changed 10
  • Source Changed 9
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24687304870
  • 8385b3dc on github
  • Prev Build on main (#24492602094)
  • Next Build on main (#24751252971)
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