• 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 fix-stale-memberships-after-merging
branch: fix-stale-memberships-after-merging
CHANGE BRANCH
x
Reset
  • fix-stale-memberships-after-merging
  • 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
  • 873-broken-jsonpatch-parsing
  • 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-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
2638

push

travis-ci

mhl
On merging / reverting remove Memberships as well as MembershipExtras

This was a bug - the revert_person_from_version_data method,
which was used to implement merges of two candidates as well
as reverting them to an earlier version, deletes all existing
candidacies of a person and then recreates the ones that
should be there.  However, the code was only actually removing
the MembershipExtra objects and leaving the Membership objects
in the database.  These weren't shown on the user-facing site
because of missing the MembershipExtra objects, but would be
shown in the API output which was causing confusion.

This commit fixes that problem; a delete on the Membership
queryset deletes the corresponding MembershipExtras too.

Thanks to Sym Roe (@symroe) for spotting this and figuring
out that it related to merging.

7054 of 9524 relevant lines covered (74.07%)

2.22 hits per line

Relevant lines Covered
Build:
Build:
9524 RELEVANT LINES 7054 COVERED LINES
2.22 HITS PER LINE
Source Files on fix-stale-memberships-after-merging
  • 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
2638 fix-stale-memberships-after-merging On merging / reverting remove Memberships as well as MembershipExtras This was a bug - the revert_person_from_version_data method, which was used to implement merges of two candidates as well as reverting them to an earlier version, deletes all e... push 25 Apr 2016 10:31PM 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