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

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

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

pending completion
83

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

Jobs
ID Job ID Ran Files Coverage
1 83.1 28 Nov 2016 05:36PM UTC 0
98.09
Travis Job 83.1
Source Files on build 83
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #83
  • f3df58ee on github
  • Prev Build on preview-button (#81)
  • Next Build on preview-button (#87)
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