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

scriptype / writ-cms / 27648284015 / 4
53%
master: 53%

Build:
DEFAULT BRANCH: master
Ran 16 Jun 2026 09:10PM UTC
Files 132
Run time 3s
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

16 Jun 2026 09:07PM UTC coverage: 57.236% (-0.3%) from 57.494%
27648284015.4

push

github

scriptype
Keep contentTree fresh on update entry

To allow that to happen, api returns the fresh path of updated entry, so
contentPanel can re-fetch contentModel, find the updated node by using
the fresh path and pass the node back to editor.

But fetching contentModel right after updateEntry caused a race
condition (even when updateEntry was awaited). Because, updateEntry
triggers a new build, and server was not waiting until it's finished.

After some playing around, manually triggering build on post update
endpoint and wrapping it with flag setters to guard watcher looked like
the most robust option to fix the issue. A guardWatcher middleware on
the horizon.

One finding from the playing around is how to reproduce #19: Removing
await from watcher onChange and thus racing the conditions.

646 of 1119 branches covered (57.73%)

Branch coverage included in aggregate %.

2241 of 3925 relevant lines covered (57.1%)

184.3 hits per line

Source Files on job 27648284015.4
  • Tree
  • List 132
  • Changed 132
  • Source Changed 132
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 27648284015
  • 7dd31a42 on github
  • Prev Job for on master (#27567863917.1)
  • Next Job for on master (#27648284015.5)
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