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

nhsuk / nhsuk-content-store / 74 / 1
98%
master: 94%

Build:
Build:
LAST BUILD BRANCH: feature/docker-config
DEFAULT BRANCH: master
Ran 28 Nov 2016 12:19PM UTC
Files 49
Run time 2s
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

28 Nov 2016 12:17PM UTC coverage: 98.091%. Remained the same
74.1

push

travis-ci

marcofucci
Implement preview login via the Preview API

The default Wagtail preview logic depends too much on the templating
rendering layer whilst we're using an API approach.

The first attempt, tried to change the default logic by POSTing to
a Frontend url passing through the preview content as a POST param.
This is far from ideal and not very secure.

Hence, this PR restructures the preview logic by disablying the Wagtail
'preview by POST' and requires content designers to always save
the content (and therefore create a revision in background) before
previewing it.

This way, we can preview content using the page id and the specific
revision id via the API.

The frontend app will pull the preview content using the passed in ids
instead of receiving it via a POST param and is therefore more secure.

925 of 943 relevant lines covered (98.09%)

0.98 hits per line

Source Files on job 74.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 74
  • Travis Job 74.1
  • d8bfbb5b on github
  • Prev Job for on preview-button (#72.1)
  • Next Job for on preview-button (#75.1)
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