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

mysociety / yournextrepresentative / 2640
51%

Build:
DEFAULT BRANCH: master
Ran 26 Apr 2016 10:37AM UTC
Jobs 3
Files 296
Run time 3min
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
2640

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

Jobs
ID Job ID Ran Files Coverage
1 2640.1 26 Apr 2016 10:37AM UTC 0
74.07
Travis Job 2640.1
2 2640.2 26 Apr 2016 10:40AM UTC 0
74.07
Travis Job 2640.2
3 2640.3 26 Apr 2016 10:41AM UTC 0
74.07
Travis Job 2640.3
Source Files on build 2640
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2640
  • d1139915 on github
  • Prev Build on master (#2630)
  • Next Build on master (#2645)
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