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

medplum / medplum / 27569302481
92%

Build:
DEFAULT BRANCH: main
Ran 15 Jun 2026 07:05PM UTC
Jobs 1
Files 826
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

15 Jun 2026 06:23PM UTC coverage: 92.487% (+0.006%) from 92.481%
27569302481

push

github

web-flow
Transaction scoped repos (#9285)

* Repository locked during transaction processing

Prevents unexpected transaction interleaving. Consider

repo.withTransaction(() => { ... });
repo.withTransaction(() => { ... });

Note the lack of awaits.

Previously, this resulted in
BEGIN
SAVEPOINT sp2
RELEASE SAVEPOINT sp2
COMMIT

Instead of the expected
BEGIN
COMMIT
BEGIN
COMMIT

Signed-off-by: Matt Long <ml@medplum.com>

* Do not provide client in withTransaction callback

It is no longer the right level of abstraction now that
a Repository is provided as a callback parameter.

Signed-off-by: Matt Long <ml@medplum.com>

* Use transaction repo correctly

Signed-off-by: Matt Long <ml@medplum.com>

* Add eslint rule for repo transactions

Signed-off-by: Matt Long <ml@medplum.com>

* [autofix.ci] apply automated fixes

* Avoid runtime guarding

Signed-off-by: Matt Long <ml@medplum.com>

* Sonar feedback

Signed-off-by: Matt Long <ml@medplum.com>

* More test coverage

Signed-off-by: Matt Long <ml@medplum.com>

* Add more spelling words

Signed-off-by: Matt Long <ml@medplum.com>

* Generic Repository is back

Signed-off-by: Matt Long <ml@medplum.com>

* Tighter transaction-scoped repo lifecycel checks

Signed-off-by: Matt Long <ml@medplum.com>

* Fix gap when preventing competing .withTransction

Signed-off-by: Matt Long <ml@medplum.com>

* Remove unneeded transaction wrappers

Signed-off-by: Matt Long <ml@medplum.com>

* Consolidate transactin-related tests

Signed-off-by: Matt Long <ml@medplum.com>

* Rework some transaction-related tests

Signed-off-by: Matt Long <ml@medplum.com>

* Chained pre-commits, explicitly disallow chained post-commits

Before, pre-commits that queue pre-commits would be silently
ignored.

Signed-off-by: Matt Long <ml@medplum.com>

* Use state lock in withStatementTimeout

Signed-off-by: Matt Long <ml@medplum.com>

* Increment pinDepth after successful query

Signed-off-by: Matt Long <ml@medplum.com>

* Scope-based repo connection

Signed... (continued)

24685 of 27490 branches covered (89.8%)

Branch coverage included in aggregate %.

285 of 298 new or added lines in 25 files covered. (95.64%)

37054 of 39264 relevant lines covered (94.37%)

23257.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
92.62
-0.46% packages/server/src/fhir/repository/repository-connection.ts
3
96.19
0.03% packages/server/src/fhir/sql.ts
2
94.89
0.42% packages/server/src/fhir/repo.ts
1
88.82
0.0% packages/fhir-router/src/repo.ts
1
78.38
0.0% packages/server/src/fhir/operations/update-user-email.ts
1
96.41
-1.36% packages/server/src/test.setup.ts
Jobs
ID Job ID Ran Files Coverage
1 27569302481.1 15 Jun 2026 07:05PM UTC 1378
92.28
GitHub Action Run
Source Files on build 27569302481
  • Tree
  • List 826
  • Changed 467
  • Source Changed 35
  • Coverage Changed 447
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27569302481
  • 6e65f887 on github
  • Prev Build on gh-readonly-queue/main/pr-9517-a318aa05abe728677bdf7a623ceaa368797d59bb (#27566551685)
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