aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
Commit message (Collapse)AuthorAgeLines
...
* | Stop using collapse filter in category template.Matthew Somerville2016-07-15-1/+1
|/ | | | | | If a category had eg. a double space, the use of the filter meant it was output in the HTML with only a single space and so woudn't match the database entry. Switch to more explicit template space chomping.
* Add two-tier responsibility note to confirm emailDave Arter2016-07-08-0/+7
|
* Refactor sending of problem confirmation emailDave Arter2016-07-08-0/+38
| | | | | | | | Replaced duplicate code blocks that are responsible for sending confirmation of problem email with a function. Should make it easier to do two-tier conditional messages later on. Also fixes a minor bug where the wrong confirmation email would be sent for reports from the mobile app to unresponsive councils.
* Stub out calls to Gaze when running testsDave Arter2016-07-08-1/+1
| | | | The tests were running slowly because of gaze.mysociety.org's rate-limiting.
* Fix CSRF issue with new login during process.Matthew Somerville2016-07-05-0/+1
| | | | | | If you had no session cookie, started reporting a problem, logged in through that process, you would then get a CSRF error as the token had been created before the session was.
* Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-1/+1
| | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* Merge branch '1347-fold-back-zurich'Matthew Somerville2016-06-29-20/+12
|\
| * Add external field editing to admin report edit.Matthew Somerville2016-06-29-20/+12
| | | | | | | | Show bodies for which details are missing, and any send method used.
* | Use valid orientation flag for test imageDave Arter2016-06-27-3/+3
|/ | | | | | jhead 3.00 considers 0 an invalid value for EXIF orientation and will replace it with 1 when run with the -autorot flag. This was causing a test failure as the SHA hash of the sample image was being changed.
* Allow admin to edit user's phone number.Matthew Somerville2016-06-22-0/+5
|
* Merge branch '360-change-email'Matthew Somerville2016-06-20-114/+117
|\
| * Allow users to update their email address.Matthew Somerville2016-06-20-3/+51
| |
| * Improve CSRF tokens and add to more forms.Matthew Somerville2016-06-20-111/+66
| |
* | Fix check for old-style parsed XML.Dave Arter2016-06-16-0/+8
|/ | | | | It errored on new-style parsed XML, rather than let it through. Add a new category to the test that highlights this.
* Fix broken test due to missing config override.Matthew Somerville2016-05-27-2/+7
|
* Merge branch '1383-remove-dead-projects'Matthew Somerville2016-04-22-56/+32
|\
| * Update tests for cobrand/template changes.Matthew Somerville2016-04-20-56/+32
| |
* | 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/+111
|\ \ | |/ |/|
| * Add Twitter social login.Matthew Somerville2016-04-08-0/+111
| |
* | Merge remote-tracking branch 'origin/1302-support-pngs'Matthew Somerville2016-04-20-4/+7
|\ \
| * | Add PNG image support.Matthew Somerville2016-04-08-4/+4
| | | | | | | | | | | | | | | | | | | | | 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-5/+5
|\
| * Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-5/+5
| |
* | Default new category creation to confirmed.Matthew Somerville2016-03-29-0/+1
|/ | | | Fixes #1266.
* 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
|/
* 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-10/+10
|\
| * Move test mocks to their own directory.Matthew Somerville2016-01-27-10/+10
| |
* | 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-2/+143
|\ | | | | | | | | | | 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/+143
| |
| * Remove unnecessary shebang lines.Matthew Somerville2016-01-22-2/+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.
* Secret always created as part of test run setup.Matthew Somerville2015-12-15-8/+0
|
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-3/+1
| | | | Maintain old location wrappers.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-1/+1
|
* Add generic static route handler.Matthew Somerville2015-10-29-0/+9
| | | | | This puts all static pages under /about, and lets you add new static pages by placing new HTML in your about template directory.
* [Zurich] Update de_CH .po fileHakim Cassimally2015-10-06-3/+1
|
* [Zurich] Override MAP_TYPE in tests where appropriateDave Arter2015-10-06-0/+3
|