aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model/problem.t
Commit message (Collapse)AuthorAgeLines
* Rewrite open311-update-reports to share code.Matthew Somerville2020-07-06-43/+22
| | | | | Make GetUpdates and GetServiceRequestUpdates share a common base; spot all visible states.
* Replace use of FixMyStreet::App with DB in tests.Matthew Somerville2019-11-22-3/+2
|
* Store email addresses report sent to on the reportMatthew Somerville2019-11-10-0/+3
|
* Slightly simplify new report category handling.Matthew Somerville2019-09-05-9/+0
|
* [UK] Council reference in .com confirm sent email.Matthew Somerville2019-03-27-1/+1
|
* ajax endpoint to return closest address.Struan Donald2018-05-09-1/+3
| | | | | | | | /ajax/closest will return ajax with details of the closest address to the lat/lon passed in from the Bing geocoder. Tidy up find_closest() to use overloaded string rather than passing in whether you want a string or not.
* Remove unused (except by tests) send_reports() fn.Matthew Somerville2018-01-15-6/+7
|
* Make sure gettext domain specified in all tests.Matthew Somerville2017-08-25-3/+0
|
* Store duplicate reverse lookups upon dupe setting.Matthew Somerville2017-08-17-0/+2
| | | | | | This avoids the need to search the whole table to find a report's duplicates. And is easier than constructing an index or upgrading PostgreSQL.
* Set up translatable category columns.Matthew Somerville2017-08-10-9/+0
| | | | | | As category is used both for display and as a link between Problem and Contact tables, add `category_display` for use whenever a category is displayed.
* Add inactive state to categories.Matthew Somerville2017-07-14-1/+1
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Run each test file in a transaction.Matthew Somerville2017-06-20-6/+0
| | | | This means that the tests can be run in parallel.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-5/+0
|
* Fix test that would not run offline.Matthew Somerville2017-05-25-3/+0
| | | | | Switch it to use our mock MapIt. Also remove other unused overrides to external services.
* Use sender in From if From and To domains match.Matthew Somerville2017-03-14-5/+13
| | | | | | To deal with a recipient mail server not allowing inbound email using the same domain as an internal domain, e.g. https://community.mimecast.com/docs/DOC-1419
* Add is_in_progress Problem helper.Matthew Somerville2017-03-10-0/+16
|
* [Oxfordshire] Use 'days ago' format on problem listspezholio2017-02-27-1/+14
| | | | Fixes mysociety/fixmystreetforcouncils#98
* Add Problem->tokenised_url for logging user inpezholio2017-02-15-2/+29
| | | | | | This method creates a token that logs the reporting user in, optionally with some parameters which are stored with the token for use when redirecting after login.
* Add Problem->time_ago for pretty-printed durationpezholio2017-02-15-0/+44
|
* If a problem has duplicates, display them on its detail pageDave Arter2016-12-13-0/+11
|
* Fix list of response templates for a problem.Matthew Somerville2016-10-20-0/+14
| | | | | Instead of returning all templates for the problem's body, return those for the problem's category (or with no category).
* Add HTML email templates.Matthew Somerville2016-08-01-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | Design is all Zarino. This adds the ability to send HTML emails, including attached inline images. When included, this is done as a multipart/related email containing a multipart/alternative (of plain and HTML) and any attached images, so that the images are available even if HTML mail is not. The alert emails list data has been improved so it can be constructed in the templates rather than the code. Various templates have been tidied. Various workarounds for email clients have been made, including: * <th> is used so that the Android 4.x mail client can give them `block` styling in the small screen media query. * Font settings defined on every table cell (<th>) so that sans-serif fonts are used in Outlook, rather than Times New Roman. * A three-column wrapper table to create a 620px centred content area that also shrinks down on narrow screens. (Outlook doesn’t like max-width, so this is the simplest alternative.) * Enforcing a sensible (500px) min-width for the main content area, on clients that don’t support media queries (eg: native Gmail app). * Giant borders on buttons so Outlook displays them * Image alignment with align rather than float.
* Tidy up some UK specific easting/northing handlingMatthew Somerville2016-06-22-6/+6
|
* Remove unnecessary shebang lines.Matthew Somerville2016-01-22-2/+0
|
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-16/+16
| | | | Command line scripts don't need a full blown app, just database.
* Move "missing" handling to separate column.Matthew Somerville2015-08-19-1/+3
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-12/+12
| | | | | 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.
* Add hidden_states and updating functions.Hakim Cassimally2015-06-16-0/+17
| | | | To allow visible/hidden states to be manipulated at runtime.
* [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.
* Removal old Southampton/Reading/Lichfield cobrands.Matthew Somerville2014-07-29-15/+15
|
* 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 bodies returned in consistent order.Matthew Somerville2014-02-25-2/+2
|
* 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-6/+12
|
* 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.
* 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-4/+4
| | | | database.
* Merge remote branch 'origin/zurich'Matthew Somerville2013-02-04-32/+46
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-23/+37
| |
| * Rename area_id on Contacts table to body_id.Matthew Somerville2012-12-15-8/+8
| | | | | | | | Add foreign key constraint from contacts to body.