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

medplum / medplum / 21532276268
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: cody-patient-match-operation
DEFAULT BRANCH: main
Ran 30 Jan 2026 10:17PM UTC
Jobs 1
Files 721
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

30 Jan 2026 10:05PM UTC coverage: 92.293% (-0.002%) from 92.295%
21532276268

push

github

web-flow
Remove alignment testing from $book (#8331)

There are some edge cases that we haven't handled yet, most notably
when the alignmentInterval is set to a value greater than `60`. I had
assumed that this was invalid during initial implementation, but it has
come out that some users would like scheduling to follow a "tip to tail"
model. This works well when the slots are less than an hour and have a
length that is a divisor of 60, but otherwise was failing.

For example, consider 90 minute slots from 9am - 5pm. The desired result
from $find would be:
- 9am
- 10:30am
- 12pm
- 1:30pm
- 3pm

Right now, $find operates by getting the first aligned time, and then
generating slots by adding `alignmentInterval` minutes at a time. So
it's fairly close to this model already (the first slot _might_ not be
returned depending on the timing). But trying to feed these resulting
slots into $book could cause an error if the alignment math didn't work
out.

For now, we are opting to remove the alignment checks from $book
entirely. This means that it is possible for someone to schedule an
off-grid appointment, but it also means that all results from $find
should be accepted by $book.

We will revisit this and tighten it up later.

Signed-off-by: Noah Silas <noah@medplum.com>

16921 of 19183 branches covered (88.21%)

Branch coverage included in aggregate %.

30946 of 32681 relevant lines covered (94.69%)

13861.48 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21532276268.1 30 Jan 2026 10:17PM UTC 721
92.29
GitHub Action Run
Source Files on build 21532276268
  • Tree
  • List 721
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f970721a on github
  • Prev Build on gh-readonly-queue/main/pr-8322-736d0ef14b7cce846d4c0ce396b3499d6b7e6588 (#21532147603)
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