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

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

Build:
Build:
LAST BUILD BRANCH: feature/docker-config
DEFAULT BRANCH: master
Ran 28 Nov 2016 05:36PM UTC
Files 49
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

28 Nov 2016 05:34PM UTC coverage: 98.091%. Remained the same
83.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 disabling 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 83.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 83
  • Travis Job 83.1
  • f3df58ee on github
  • Prev Job for on preview-button (#81.1)
  • Next Job for on preview-button (#87.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