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

umputun / remark42 / 42733903350
87%

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2026 01:14AM UTC
Jobs 1
Files 54
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

10 Nov 2026 01:10AM UTC coverage: 85.995% (+0.3%) from 85.732%
42733903350

push

github

web-flow
Simplify the REST handlers and server start-up (#2294)

* Cache the public reads through one helper and drop unused API code

The six cached public reads each repeated the same load, encode,
error and render sequence; cachedJSON now holds it once. URLKey and
URLKeyWithUser differed only in prefixing the user ID, so they become
one urlKey with a perUser flag, without the TrimPrefix of "admin!!",
which could never match since a request URL starts with "/" or a
scheme. A new test records the cache key of every cached read for an
anonymous user, a user, a token admin and the password admin, and
passes unchanged before and after, so external caches keep their keys.

parseError now runs only on vote and edit errors, the only ones that
can carry its strings; user detail errors get ErrInternal as before.
The anonymous vote check moves to rejectAnonUser on the route when
anonymous votes are off, with the same 403 "Access denied" body.

Interface members no handler calls, Migrator.KeyStore and the
test-only rest.SetUserInfo go; tests set users with token.SetUserInfo.

* Start every SSL mode through one sequence and claim migrations once

Run repeated the lock, shutdown check, ErrorLog setup and listen calls
for each of the three SSL modes. Each mode now only picks the handler
of the http server on the port and, with SSL, the https server, and
one sequence publishes and starts them. The root and api avatar
mounts share one route function, which keeps the api CSP middleware
on the api mount.

The import, form import and remap handlers each spelled out the 409
for a busy site; claim answers it in one place. Only setBusyIfFree
writes the busy map, so it alone creates it: a nil map reads false
and deletes as a no-op.

* Render html pages through one template helper and use stdlib IP checks

SendErrorHTML and the unsubscribe page each read, parsed and executed
a template through local Must helpers that panicked, leaving the
Recoverer to answer a plain 500. RenderTemp... (continued)

116 of 136 new or added lines in 8 files covered. (85.29%)

1 existing line in 1 file now uncovered.

6042 of 7026 relevant lines covered (85.99%)

36.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
72.55
-15.21% backend/app/rest/httperrors.go
4
94.85
1.5% backend/app/rest/api/rest.go
4
77.47
0.82% backend/app/rest/api/rest_private.go
1
77.02
0.48% backend/app/rest/api/admin.go
1
91.13
5.25% backend/app/rest/api/rest_public.go

Coverage Regressions

Lines Coverage ∆ File
1
94.85
1.5% backend/app/rest/api/rest.go
Jobs
ID Job ID Ran Files Coverage
1 42733903350.1 10 Nov 2026 01:14AM UTC 54
85.99
GitHub Action Run
Source Files on build 42733903350
  • Tree
  • List 54
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cff27690 on github
  • Prev Build on master (#42733211156)
  • Next Build on master (#42734289690)
  • Delete
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