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

mysociety / yournextrepresentative
65%
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 stale-popit-workaround
branch: stale-popit-workaround
CHANGE BRANCH
x
Reset
  • stale-popit-workaround
  • 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-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
  • 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
130

push

travis-ci

mhl
Add workaround for sometimes getting stale information from PopIt

There seems to be some situation (which I haven't yet managed to
reproduce in a minimal test case) where we get back out-of-date
information from PopIt when redirecting back to a person's page after
updating them. This commit tries to work around that by retrying the
GET up to 5 times if we get inconsistent data back.  It adds a retry
query parameter on any retries so that it'll be clear from the PopIt and
varnish logs that these are the retries.

This should stop people getting confusing 500 errors from the exception,
provide more information in the logs and reduce the amount of error
email we get, so it seems like a reasonable second-best to fixing the
underlying problem.

This is a workaround for issue #57

1237 of 1901 relevant lines covered (65.07%)

0.65 hits per line

Relevant lines Covered
Build:
Build:
1901 RELEVANT LINES 1237 COVERED LINES
0.65 HITS PER LINE
Source Files on stale-popit-workaround
  • 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
130 stale-popit-workaround Add workaround for sometimes getting stale information from PopIt There seems to be some situation (which I haven't yet managed to reproduce in a minimal test case) where we get back out-of-date information from PopIt when redirecting back to a p... push 12 Dec 2014 04:20PM 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