aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model
Commit message (Collapse)AuthorAgeLines
...
* Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-1/+1
|
* 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.
* Remove unnecessary shebang lines.Matthew Somerville2016-01-22-8/+0
|
* 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.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-3/+3
|
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-66/+69
| | | | Command line scripts don't need a full blown app, just database.
* Add support for multiple photos per report.Hakim Cassimally2015-10-06-0/+76
| | | | | | | | For Zurich, see mysociety/FixMyStreet-Commercial#664. This commit includes a new PhotoSet class (NB: called Model:: though not really a model), should handle binary data (e.g. old style photos in database), fileids (40-char hash), and Catalyst::Upload objects.
* Move "missing" handling to separate column.Matthew Somerville2015-08-19-1/+3
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-76/+20
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Move Latin-char-specific name check to cobrand.Matthew Somerville2015-07-31-24/+0
| | | | | Also move some UK-specific code in the same function. The specific code is still tested in report_new.t.
* Alter token logging in and timeout behaviour.Matthew Somerville2015-07-10-1/+1
| | | | | | | Restrict email_sign_in token to one day, unused confirmation tokens to one month. Used tokens will redirect to the created thing but not log in; don't log in with alert links (unsubscribe link never expires, reply link will still show "reopen" tickbox).
* Add hidden_states and updating functions.Hakim Cassimally2015-06-16-0/+17
| | | | To allow visible/hidden states to be manipulated at runtime.
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-0/+111
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-7/+12
| | | | | This is now handled by normal bodies in the admin. In order to remove references in send_reports, tidy up (unused) EmptyHomes code a bit.
* Factor out test contact creation to function.Matthew Somerville2015-03-13-20/+7
|
* [UK] Output NI grid references to NI councils.Matthew Somerville2015-02-20-2/+10
|
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-1/+1
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* By default, use area-based alerts.Matthew Somerville2014-12-12-30/+32
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Tests for moderationHakim Cassimally2014-08-14-0/+66
|
* Removal old Southampton/Reading/Lichfield cobrands.Matthew Somerville2014-07-29-19/+19
|
* Update all email templates with new text.Myfanwy Nixon2014-05-16-2/+2
| | | | And FixMyStreet.com specific open questionnaire page.
* Update old-style open311 script to use bodies.Matthew Somerville2014-04-07-23/+13
| | | | Add some comments to the top of the open311 bin scripts.
* Make sure language is set early enough in email alert loop.Matthew Somerville2014-02-26-0/+25
| | | | | The call to set_lang_and_domain needs to happen before the first string is translated (the report state).
* Make sure bodies returned in consistent order.Matthew Somerville2014-02-25-2/+2
|
* Make alert_type.t test more robust.Matthew Somerville2014-02-24-4/+8
| | | | | | Put alerts in default cobrand, so changes to other cobrand email templates don't affect the test; and clean up at the end of the test so that it can be rerun without issue.
* Tests for contact with comma seperated multiple emailsStruan Donald2013-11-04-0/+46
|
* Fix test suite to run regardless of config setup.Matthew Somerville2013-10-24-9/+27
|
* switch to Sub::Override from Test::MockModuleStruan Donald2013-09-12-6/+7
| | | | | This is for consistency as Sub::Override is used for another test and also so we minimise the number of modules installed just for testing
* explicitly set bodies_str for abuse and app store testsStruan Donald2013-09-12-0/+2
| | | | | | | | The first email count test in the abuse subtest was failing on Travis but not on my machine because the sent email alert test was running on my machine, as it has the mock module installed, and this was resetting the bodies_str to one with a confirmed contact. Setting bodies_str on both these tests stops this sort of thing happening again
* mechanism to stop app store tests being sentStruan Donald2013-09-12-0/+29
| | | | | | In order to allow the iOS app to be tested in the app store we need to allow the user to create a report but we don't want to send it. To allow this hide reports with a specific title during send_reports
* Test to check reports from abuse users not sentStruan Donald2013-09-12-0/+47
| | | | | | Reports that have been created by a user who is logged in but whose email is in the abuse table should be hidden and not sent by send_reports.
* Switch Token over to use RABXColumn and test that changes to the col behave ↵Edmund von der Burg2013-09-10-1/+45
| | | | as expected
* Add RABX column code and testsEdmund von der Burg2013-09-10-0/+23
|
* Remove unneeded test diagnosticsEdmund von der Burg2013-09-05-2/+0
|
* Fix failing test for problem confirmationStruan Donald2013-08-01-1/+2
| | | | | Update for change to bodies_str, make sure sent_fail_count 0 and update standard template variables
* Remove *_local tz functions, set timezone on fetching original columns from ↵Matthew Somerville2013-02-14-6/+6
| | | | database.
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-36/+50
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/open311-populate-service-list bin/send-comments bin/update-all-reports conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/App/Controller/Report/New.pm perllib/FixMyStreet/App/Controller/Reports.pm perllib/FixMyStreet/Cobrand/Default.pm perllib/FixMyStreet/Cobrand/LichfieldDC.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/Result/Problem.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/FixMyStreet/SendReport.pm perllib/FixMyStreet/SendReport/Email.pm perllib/FixMyStreet/SendReport/Open311.pm perllib/Open311/GetServiceRequestUpdates.pm perllib/Open311/PopulateServiceList.pm t/app/controller/report_new.t t/app/controller/rss.t templates/web/bromley/report/display.html templates/web/default/admin/council_contacts.html templates/web/default/common_header_tags.html templates/web/default/dashboard/index.html templates/web/default/front/stats.html templates/web/default/report/_main.html templates/web/default/report/update-form.html templates/web/emptyhomes/index.html templates/web/emptyhomes/report/display.html templates/web/emptyhomes/report/new/councils_text_all.html templates/web/emptyhomes/reports/body.html templates/web/emptyhomes/reports/index.html templates/web/fixmystreet/report/new/fill_in_details_form.html templates/web/fixmystreet/report/update-form.html web/cobrands/fixmystreet/fixmystreet.js web/js/fixmystreet.js
| * Allow bodies to span multiple area IDs, and areas can be covered by more ↵Matthew Somerville2012-12-19-8/+8
| | | | | | | | than one body.
| * Update tests for new names of things and bodies needing to exist.Matthew Somerville2012-12-15-27/+41
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-8/+8
| | | | | | | | Add foreign key constraint from contacts to body.
* | Merge branch 'bromley-new-statuses'Struan Donald2013-01-16-0/+44
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/send-comments conf/crontab.ugly db/schema.sql perllib/FixMyStreet/App/Controller/Admin.pm perllib/FixMyStreet/DB/Result/Open311conf.pm perllib/FixMyStreet/DB/ResultSet/Problem.pm perllib/Open311.pm t/app/controller/report_updates.t t/open311.t templates/web/default/report/display.html templates/web/default/report/updates.html templates/web/fixmystreet/report/display.html
| * | update tests with new statusesStruan Donald2012-10-02-0/+16
| | |
| * | do not used planned status but use new action scheduled insteadStruan Donald2012-10-02-0/+28
| | | | | | | | | | | | | | | NB: planned still listed in some places to account for old reports some test coverage improvements
* | | add option to send email confirming report has been sent to councilStruan Donald2012-12-03-0/+47
| |/ |/|
* | If update alert email is to problem reporter, make it a login link.Matthew Somerville2012-10-12-15/+32
| | | | | | | | | | This is so they can more easily update, especially if the update they've just received has mistakingly 'fixed' the report. This fixes #7.
* | Move skip to start of subtest so it doesn't give a 'tests were run but no ↵Matthew Somerville2012-10-04-4/+4
|/ | | | plan' warning.
* Fix problem.t test so it skips Lichfield tests if Lichfield cobrand is not ↵Matthew Somerville2012-08-06-0/+4
| | | | present.
* Don't show postcode column in RSS/alert emails, may have no bearing on report.Matthew Somerville2012-07-23-50/+15
|
* Return correct failure code if no recipients.Matthew Somerville2012-07-23-38/+35
|
* Add NI sender, for handling cross-council road reports.Matthew Somerville2012-07-20-23/+50
|