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

medplum / medplum / 31847753089
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: fix-access-token-leakage
DEFAULT BRANCH: main
Ran 14 Aug 2026 10:58PM UTC
Jobs 1
Files 884
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

14 Aug 2026 10:43PM UTC coverage: 92.191% (+0.004%) from 92.187%
31847753089

push

github

web-flow
perf(fhir): skip attachment rewrite when a resource has no attachments (#10204)

rewriteAttachments runs on every authenticated response and rebuilt the entire
object graph via Object.fromEntries, awaiting once per property, even when the
payload contained no attachments at all. That is the common case.

Check for a binary URL first and hand the input back untouched when there is
nothing to rewrite. For a 1000-resource search Bundle this replaces a ~13ms
rebuild with a ~1ms scan.

The predicate tests for an actual binary via normalizeBinaryUrl rather than for
the presence of a `url` property: every FHIR extension carries a `url`, so a
presence check would fall through to the slow path on most real resources.

Because the result may now be the input itself, callers that mutate it have to
copy first. Only the update path did: replaceConditionalReferences rewrites
nested references in place, and previously relied on the rewrite having already
detached the resource from validatedResource and the cached existing resource.
That copy is now explicit at the call site. Every other caller only serializes
the result, and the subscription worker already deep-cloned its input.

Signed-off-by: Derrick Farris <derrick@medplum.com>

24040 of 27218 branches covered (88.32%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 2 files covered. (100.0%)

42390 of 44839 relevant lines covered (94.54%)

11751.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31847753089.1 14 Aug 2026 10:58PM UTC 884
92.19
GitHub Action Run
Source Files on build 31847753089
  • Tree
  • List 884
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #31847753089
  • 7afcfdce on github
  • Prev Build on gh-readonly-queue/main/pr-10212-1b5d066c5954e7ae7fbfe21756d8986f536c884b (#31841011345)
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