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

medplum / medplum / 26894454242
92%

Build:
DEFAULT BRANCH: main
Ran 03 Jun 2026 03:30PM UTC
Jobs 1
Files 807
Run time 3min
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

03 Jun 2026 03:18PM UTC coverage: 92.15% (+0.001%) from 92.149%
26894454242

push

github

web-flow
feat(server): record authenticating ClientApplication on AuditEvent.agent[] (#9337)

The per-interaction AuditEvent only ever recorded a single agent (the acting
profile / author), so the authenticating ClientApplication was absent from the
audit trail. Under X-Medplum-On-Behalf-Of the acting client disappeared
entirely, leaving the event indistinguishable from the user acting directly;
the same gap applies to SMART-on-FHIR apps acting on behalf of a user.

Thread login.client through the repository context and append it as an
additional non-requestor agent[] participant (DICOM "Application" role) when it
differs from the actor. agent[0] is unchanged, so consumers assuming agent[0]
is the actor are unaffected. The client is omitted when it is itself the actor
(client_credentials) or absent (system path). This generalizes the dual-agent
attribution createBotAuditEvent already produces.

Closes #9332

Signed-off-by: Jesse Carter <jesse.r.carter@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

22785 of 25553 branches covered (89.17%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 1 file covered. (100.0%)

35981 of 38219 relevant lines covered (94.14%)

23254.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 26894454242.1 03 Jun 2026 03:30PM UTC 1030
92.58
GitHub Action Run
Source Files on build 26894454242
  • Tree
  • List 807
  • Changed 162
  • Source Changed 3
  • Coverage Changed 162
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26894454242
  • 5e0a2cb1 on github
  • Prev Build on gh-readonly-queue/main/pr-9339-ffedf54030e473c7e626b6e92c8d292d029f2371 (#26863264953)
  • Next Build on main (#26894794025)
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