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

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

Build:
Build:
LAST BUILD BRANCH: feature/docker-config
DEFAULT BRANCH: master
Repo Added 08 Nov 2016 04:26PM UTC
Files 84
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

LAST BUILD ON BRANCH preview-button
branch: preview-button
CHANGE BRANCH
x
Reset
  • preview-button
  • admin-api
  • api
  • api-fields
  • blocks-cleanup
  • blue-links
  • change-admin-listings-templates
  • circular-dep
  • collage-gallery
  • components-v2
  • coveralls
  • custom-sidebar
  • description-field
  • export
  • export-external-mds
  • export-images
  • export-single-pages
  • feature/docker-config
  • figure-list
  • frontend-defaults
  • grey-links
  • guide-siblings
  • heroku-migrate
  • heroku-migrate-readme
  • home-api
  • images-tidyup
  • import-camel-case-components
  • license
  • links-consistency
  • main-homepage
  • master
  • md-editor-refactor
  • new-regions
  • page-by-path
  • panel-component
  • preview-api
  • remove-callouts
  • remove-the-unnecessary
  • rtd
  • simplemde-cleanup
  • split-panel
  • style-overrides
  • symptoms-conditions-revision
  • tests-cleanup
  • user-research1
  • user-research2
  • wagtail-1.8
  • wagtail-1.9

pending completion
87

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

Relevant lines Covered
Build:
Build:
943 RELEVANT LINES 925 COVERED LINES
0.98 HITS PER LINE
Source Files on preview-button
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
87 preview-button 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 ur... push 01 Dec 2016 10:33AM UTC marcofucci travis-ci pending completion  
83 preview-button 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 ur... push 28 Nov 2016 05:36PM UTC marcofucci travis-ci pending completion  
81 preview-button Add .eslintrc push 28 Nov 2016 05:22PM UTC marcofucci travis-ci pending completion  
79 preview-button fixup! Refactor js/html in order to get Tyom's approval. push 28 Nov 2016 05:11PM UTC marcofucci travis-ci pending completion  
77 preview-button 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 ur... push 28 Nov 2016 12:47PM UTC marcofucci travis-ci pending completion  
75 preview-button 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 ur... push 28 Nov 2016 12:34PM UTC marcofucci travis-ci pending completion  
74 preview-button 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 ur... push 28 Nov 2016 12:19PM UTC marcofucci travis-ci pending completion  
72 preview-button fixup push 28 Nov 2016 11:52AM UTC marcofucci travis-ci pending completion  
71 preview-button docs push 28 Nov 2016 10:49AM UTC marcofucci travis-ci pending completion  
70 preview-button fixup push 25 Nov 2016 05:28PM UTC marcofucci travis-ci pending completion  
See All Builds (260)
  • Repo on GitHub
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

© 2025 Coveralls, Inc