aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
* Fix broken test due to missing config override.Matthew Somerville2016-05-27-2/+7
|
* Use only one templating system for emails.Matthew Somerville2016-05-25-2/+2
| | | | | | | Historically, emails sent offline (alerts, questionnaires, etc) used a different templating system from those sent by the website (e.g. login emails), though the newer system was also being used for the site name and signature of offline emails.
* Fallback if request to Gaze fails.Matthew Somerville2016-05-18-6/+5
| | | | Fixes #1286.
* Skip fetched updates if they're out of date range.Matthew Somerville2016-04-26-6/+7
| | | | | Even when we ask for a specific range of dates, we sometimes get given more in the response.
* Merge branch '1383-remove-dead-projects'Matthew Somerville2016-04-22-262/+60
|\
| * Update tests for cobrand/template changes.Matthew Somerville2016-04-20-111/+60
| |
| * Remove final web/fixmystreet templates.Matthew Somerville2016-04-20-1/+0
| | | | | | | | And associated, e.g. nothing references fixmystreet-old-box.js any more.
| * Remove some unused cobrands.Matthew Somerville2016-04-20-150/+0
| |
* | Fix Twitter authentication test.Matthew Somerville2016-04-22-2/+5
| | | | | | | | Pull in the same fix that was made in f598f56f for the Facebook tests.
* | Merge remote-tracking branch 'origin/twitter-login'Matthew Somerville2016-04-22-0/+154
|\ \ | |/ |/|
| * Add Twitter social login.Matthew Somerville2016-04-08-0/+154
| |
* | Merge remote-tracking branch 'origin/1302-support-pngs'Matthew Somerville2016-04-20-13/+28
|\ \
| * | Add PNG image support.Matthew Somerville2016-04-08-13/+25
| | | | | | | | | | | | | | | | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
| * | Prevent dev sites auto-creating session.Matthew Somerville2016-04-06-0/+3
| |/ | | | | | | | | We check for a session's existence before looking in it, as looking in it first would auto create a session.
* / Cope with a '/' in body name in body slug.Matthew Somerville2016-04-20-0/+5
|/ | | | Fixes #574.
* Fix test issue running on PostgreSQL>=9.2 on Mac.Matthew Somerville2016-03-31-1/+2
| | | | | | | | | | Test::PostgreSQL sets up a new database with initdb and empties the generated postgresql.conf; PostgreSQL 9.2+ sets its locale/timezone information at the initdb stage, not when it is run. It is possible therefore for the tests to be in one timezone but the test database to be in another (GMT) – causing a test failure when e.g. an update is created manually. Make sure the first comment is well before the others being tested, so there is no chance the order gets confused.
* Merge remote-tracking branch 'mysociety/refactor-email'Matthew Somerville2016-03-31-116/+113
|\
| * Fix/skip locale tests that don't pass on Mac OS X.Matthew Somerville2016-03-30-3/+13
| |
| * Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-113/+100
| |
* | [Angus] SOAP interface/send method for Angus CRMDave Arter2016-03-29-0/+61
| |
* | Default new category creation to confirmed.Matthew Somerville2016-03-29-0/+1
|/ | | | Fixes #1266.
* Allow zurich tests to run without network.Matthew Somerville2016-03-23-11/+58
|
* Updates to cpanfile and code for perl 5.20/5.22.Matthew Somerville2016-03-23-35/+70
| | | | | | | | | | | | | | | | | | | | The following modules had bugs that have been fixed for working in recent perls: * List::MoreUtils * Guard * PadWalker * aliased * URI * Convert::NLS_DATE_FORMAT The CGI module was removed from core in 5.20, so include it in the snapshot (I don't think it's actually used, but is a dependency). "{" needs to be escaped in regular expressions, and ~~ should not be used. Fix some tests that expect e.g. a certain hash ordering, to use sorted output or better comparisons.
* Merge branch '1341-friendly-ab-test'Matthew Somerville2016-03-11-0/+6
|\
| * [fixmystreet.com] Friendly A/B test setup.Zarino Zappia2016-03-11-0/+6
| | | | | | | | | | | | | | | | Includes a smiley, bright yellow homepage, and updated nav bar and footer across the entire site; a few content changes; request for gender information from users. Fixes #1341.
* | Fix test that fetched page removed in last commit.Matthew Somerville2016-03-11-2/+2
|/
* Add cobrand-specific custom reporting fields.Matthew Somerville2016-03-09-0/+85
| | | | | | This adds a new cobrand variable, report_form_extras, which contains a list of extra fields that will be saved in the 'extra' metadata of the report. Fields may optionally be marked as required.
* Remember user's last anonymous state.Matthew Somerville2016-03-04-0/+61
| | | | | If a user is logged in, use their last report/update to set the default anonymity state.
* Better handle replies to bounce addresses.Matthew Somerville2016-02-23-0/+20
| | | | | | | | | | Auto unsubscribe alert bounces, forward on report bounces and alert replies to support, and send through to report creator non-bounce replies to their report (for systems that ignore both the From and Reply-To headers). Also forward any totally unparsed bounce to support to possibly then adjust this bounce handling.
* Merge remote-tracking branch 'mysociety/add-osm-link-to-email'Matthew Somerville2016-02-09-18/+11
|\
| * Switch final few JSON uses to JSON::MaybeXS.Matthew Somerville2016-02-09-18/+11
| |
* | Exclude update alerts from summary alert counts.Matthew Somerville2016-02-09-2/+2
|/ | | | | | There might be the odd update alert we are interested in (those not auto-signed up for as part of report or update creation), but they will be rare.
* Merge branch '1315-open311-update-media_url'Matthew Somerville2016-01-29-15/+60
|\
| * Spot media_url in Open311 GetServiceRequestUpdate.Matthew Somerville2016-01-29-0/+45
| | | | | | | | Fixes #1315.
| * Move test mocks to their own directory.Matthew Somerville2016-01-27-15/+15
| |
* | If app user logged in, perform alert signup.Matthew Somerville2016-01-27-0/+38
|/ | | | Thanks to @jonkri for spotting.
* Merge branch '1146-social-login'Matthew Somerville2016-01-27-18/+195
|\ | | | | | | | | | | Conflicts: templates/web/base/report/new/fill_in_details_form.html templates/web/base/report/update-form.html
| * Add tests of social login.Matthew Somerville2016-01-22-0/+195
| |
| * Remove unnecessary shebang lines.Matthew Somerville2016-01-22-18/+0
| |
* | Improve some error pages.Matthew Somerville2016-01-26-1/+1
|/ | | | | Use design of auth/token in generic error, 404, and token server error pages, and use the same error for too old/ token not found errors.
* Add ability to have multiple update photos.Matthew Somerville2016-01-12-32/+92
| | | | Also adds admin ability to rotate update photos.
* Factor multiple photo details into nicer function.Matthew Somerville2016-01-12-2/+9
| | | | | Remove get_photo_params, which only looked at the first photo, make explicit when we're doing that using `.first`.
* Handle multiple photo rotation/removal in admin.Matthew Somerville2016-01-08-1/+2
|
* Fix bug showing reports on Your Reports.Matthew Somerville2015-12-17-1/+6
| | | | | 92dfeac used an incorrect user column name in the new lookup, and there was no test to catch the regression.
* Add multiple photo upload support.Zarino Zappia2015-12-16-35/+78
| | | | | | | | | | Three file inputs, progressively enhanced with dropzone. This moves the photo input higher up, so that photos can upload while you're filling out the form. It standardises and improves photo error handling. [fixmystreet.com] Guidance for what photos should and shouldn’t include.
* Remove risk of infinite loop in PhotoSet.Matthew Somerville2015-12-16-2/+2
| | | | | | Use a separate attribute for data direct from a database row when creating a PhotoSet, so that data will always contain one or more photo IDs.
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-6/+62
| | | | | | | | | | | | 5c79337 simplified a bit too far, as after then a particular cobrand could in Nearby and My only filter reports to a particular body, not any other criteria. To fix this, introduce more generic functions in the default cobrand to allow more flexibility. Make sure a few tests delete their bodies fully so that new tests pass when run as part of the suite. Fixes #1289.
* Secret always created as part of test run setup.Matthew Somerville2015-12-15-8/+0
|
* Switch template plugin for nice numbers.Matthew Somerville2015-12-09-1/+18
| | | | | Template::Plugin::Number::Format works internationally, whilst Template::Plugin::Comma does not.
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-3/+1
| | | | Maintain old location wrappers.