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

medplum / medplum / 28471579753
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: kevin/products-page
DEFAULT BRANCH: main
Ran 30 Jun 2026 07:55PM UTC
Jobs 1
Files 844
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

30 Jun 2026 07:49PM UTC coverage: 91.89%. Remained the same
28471579753

push

github

web-flow
[Provider] Hide slots related to cancelled appointments (#9686)

* [Provider] Hide slots related to cancelled appointments

If you have created an appointment with attributes like "bufferBefore",
then when you use `$cancel` the Slot resource created to enforce that
is also soft-deleted.

When you do this from the Provider UI, we want to clear such Slots from
the calendar. We don't get the Slot resources back in the update
response (as they have been deleted), so we inspect `Appointment.slot`
to find references to the related Slot resources we can hide.

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

* PR Feedback

Claude correctly called out that we were storing "merged" slots in the
component state, and so trying to clear out only parts of a merged slot
could cause confusing UI bugs.

We now store the "raw" slots in the state, and derive the "merged" slot
state from that in a separate memo. This way we can update the state and
then the merge will re-run and derive new updated state.

In the long term I think we probably will want to drop this merge code,
as it means that our UI is not as reflective of reality, or prepare some
alternative way to drill in to the respective slots, but for now this is
an easy way to improve correctness.

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

* PR Feedback

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

---------

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

21580 of 24529 branches covered (87.98%)

Branch coverage included in aggregate %.

38505 of 40859 relevant lines covered (94.24%)

12528.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28471579753.1 30 Jun 2026 07:55PM UTC 844
91.89
GitHub Action Run
Source Files on build 28471579753
  • Tree
  • List 844
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 53b701af on github
  • Prev Build on gh-readonly-queue/main/pr-9690-a8a0bf7f81b03696aeece4cf6e17d4d56b8b143f (#28464964682)
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