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

mysociety / yournextrepresentative
74%
master: 51%

Build:
Build:
LAST BUILD BRANCH: liable-to-vandalism-in-db
DEFAULT BRANCH: master
Repo Added 29 Nov 2014 06:21PM UTC
Files 18
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 873-broken-jsonpatch-parsing
branch: 873-broken-jsonpatch-parsing
CHANGE BRANCH
x
Reset
  • 873-broken-jsonpatch-parsing
  • 104-persuasive-homepage
  • 123-footer
  • 124-candidate-parties
  • 130-candidate-editing
  • 143-add-parlparse-id-to-2010-mps
  • 146-profile-pages
  • 171-disclaimers
  • 183-login-page-improvements
  • 187-og-and-twitter-tags
  • 203-disable-submit-on-click
  • 246-allow-birth-year-or-dob
  • 271-store-twitter-ids
  • 319-add-vagrant-file
  • 379-add-more-tests
  • 383-generic-og-metadata
  • 416-update-csv-links
  • 53-favicon
  • 676-language-switcher
  • 692-winner-display
  • 749-other-names
  • 79-design-improvements
  • 855-prefill-party-dropdown-new-list-candidate
  • 856-show-elections-won-on-candidate-page
  • 862-search-with-apostrophe
  • 866-party-list-pos-person-view
  • 896-log-photo-reject-reason
  • 931-uk-import-2010-winners
  • 935-confirm-inset-winners
  • 942-optional-election-areatype-admin
  • 943-settings-in-db
  • 951-candidates-dc-vs-who-in-seo
  • TUSC_emblem
  • add-attention-needed-page
  • add-cache-control
  • add-candidacy-historic-elections-option
  • add-candidate-pictures
  • add-coveralls
  • add-descriptions-and-joint-parties
  • add-honorifics
  • add-leaderboard
  • add-new-parlparse-ids
  • add-parlparse-to-csv
  • add-recent-changes
  • add-to-vandalism-list
  • add-winner-counts-to-api
  • allow-creation-from-manual-area-ids
  • allow-twitter-at
  • are-we-generic-yet
  • backports-including-needs-review
  • before-image-proxy
  • cache-popit-results
  • calls-to-action
  • candidates_ignored_slugs
  • changes-for-tls
  • changes_feed
  • close-signups
  • contesting
  • copyright-assignment-agreement
  • crontab-election-night-updates
  • csv-generation-improvements
  • d3-user-contributions-graph
  • data-cleaning
  • dc_logo
  • display-more-helpful-constituency-values
  • django-1.7
  • django-1.7-second-attempt
  • django-1.7-travis-no-migrate
  • djdt-to-try-on-staging
  • elected-button-party-list
  • feature/candidates-counts
  • feature/candidates-counts-small-change
  • feature/csv_export
  • feeds_unicode
  • fewer-consituencies-queries
  • field_drives
  • finer-grained-permissions
  • fix-add-candidate-button
  • fix-cached-counts-update
  • fix-fix-data-commands
  • fix-image-metadata
  • fix-membership-issues
  • fix-party-numbers-page-counts
  • fix-party-sets-javascript
  • fix-settings-validation
  • fix-stale-memberships-after-merging
  • fix-standalone-create-person-form
  • fix-tests
  • fix-twitter-case-issue
  • fix-update-from-ec-unicode-errors
  • flash-photo-review-action-results
  • further-genericization
  • generic-elections
  • group-elections
  • homepage-form-margin
  • image-queue
  • image-queue-upload
  • improve-finder-validation
  • improve-mirroring
  • incomplete_field_lists
  • issues/380-electionmixin
  • issues/395-argentina-design
  • issues/395-homepage-styling
  • issues/395-styling-fixes
  • javascript-add-candidacy
  • ke-2017
  • ke-frontpage-tests
  • ke-mzalendo-link
  • ke-search-label-change
  • liable-to-vandalism-in-db
  • linkedin-in-csv
  • linkify-photo-review-sources
  • lock-constituencies
  • make-primary-photo-review-option
  • mark-incumbents-as-standing
  • master
  • merge-people
  • no-error-emails-on-popit-404
  • no-exact-md5sum-test
  • noddy-posts-cache
  • not-all-constituencies
  • notification-of-photos-for-review
  • numbers_json
  • only-install-django-once
  • party-page
  • party-page-responsive
  • party_id_in_csv
  • photo-review-improvements
  • photo_upload_help
  • popit-down-middleware
  • possibly-simplify-numbers
  • ppc-importer-updates
  • privacy-policy
  • progressive-add-candidacy-basic
  • refactor-person-handling-squashed
  • remove-bad-twitter-data
  • remove_ff_banner
  • replace-constituency-name-aargh
  • reproduce-popit-pagination-error
  • restrict-renaming
  • result-recorders
  • results-feed-updates
  • run-on-heroku
  • search_links
  • small-wording-updates
  • staging-with-robots-txt
  • stale-popit-workaround
  • stronger-source-hints
  • suggest-face-crop-in-review
  • switch-ga-to-secondary-domain
  • switch-to-image-proxy-thumbnails
  • switch-to-libsass-and-upgrade-pipeline
  • switch-to-photo-upload-radio-buttons
  • test-fix
  • trans-lang-select
  • translatable
  • turn-off-edits-stupidly
  • twitter_list
  • update-about-page
  • update-about-page-post-copyright-assignment
  • update-db-settings
  • update-face-detection-use-of-pillow
  • update-parties
  • update-party-update
  • wip-add-descriptions

pending completion
2660

push

travis-ci

mhl
Fix version diffs where JSON patch operations are dependent

The operations that make up a JSON patch may depend on earlier
operations - they're meant to be applied in order.  However, the code
that parsed these to generate readable diffs assumed that each operation
would apply to the original JSON.

This commit changes that behaviour so that after dealing with each
operation it's applied to the original JSON.  This fixes the problem,
for example, where an array of three items are reordered and the
generated operations in the patch are (a) insert an item at the front
and (b) remove the last item - if you don't apply (a) first then (b)
will refer to an index off the end of the array.

Fixes #873

7127 of 9679 relevant lines covered (73.63%)

2.21 hits per line

Relevant lines Covered
Build:
Build:
9679 RELEVANT LINES 7127 COVERED LINES
2.21 HITS PER LINE
Source Files on 873-broken-jsonpatch-parsing
  • 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
2660 873-broken-jsonpatch-parsing Fix version diffs where JSON patch operations are dependent The operations that make up a JSON patch may depend on earlier operations - they're meant to be applied in order. However, the code that parsed these to generate readable diffs assumed ... push 28 Apr 2016 02:46PM UTC mhl travis-ci pending completion  
See All Builds (1290)
  • 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