aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/ResultSet/Problem.pm
Commit message (Collapse)AuthorAgeLines
* Make front page cache time configurable.Matthew Somerville2019-02-04-4/+8
| | | | | Add a configuration variable to use for the front page stats/ recent list, plus the max-age of `/reports`.
* Check cached reports have photos before showing.Matthew Somerville2019-01-10-1/+1
|
* add private only report filterStruan Donald2019-01-04-4/+13
|
* add report_mark_private permissionStruan Donald2018-11-12-1/+2
| | | | | | | | Allows user's to see the inspector panel to mark reports as Private, and also to view those non-public reports. Useful for call centre staff who want to record private reports but don't need to other permissions. Fixes mysociety/fixmystreet-commercial#1213
* Only display reports from last 6 months on around.Struan Donald2018-07-03-0/+3
| | | | | | | Add a checkbox to show older reports, plus if we get to the end of the new reports then instead of a Next button show a "show older" button that will reload the current page but with older reports also loaded. Wire it all up into the pushState code as well.
* Use correct created column in problem timeline.Matthew Somerville2018-06-13-3/+3
| | | | The User model now also has a created column.
* Allow cobrands to give extra parameters for pins.Steven Day2018-05-02-0/+3
| | | | | | | So that you can build functionality to add extra limitations on to the map pins displayed. Useful for Collideoscope initially to filter out (or in) reports from the Department of Transport's Stats19 Data.
* Check recent reports for any hidden since cached.Matthew Somerville2018-04-06-22/+13
| | | | | Also stop caching lat/lon specific alert photo lists, and improve Memcached code.
* [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-2/+2
| | | | | | | The Zurich code was written a long time ago, and used overriding so that e.g. the hard-coded 'investigating' state referred to Wunsch (wish). Now that states are stored in the database, we can create ones specially for Zurich and use them instead. Hooray!
* Show non_public reports to staff on list pages.Matthew Somerville2018-02-13-5/+32
|
* Remove unused (except by tests) send_reports() fn.Matthew Somerville2018-01-15-6/+0
|
* Add pagination to around page.Matthew Somerville2017-11-06-3/+6
|
* Remove Show all pins link and on_map_list_limit.Matthew Somerville2017-11-06-4/+1
| | | | | /around will now show all reports all the time, but we are about to introduce pagination to stop that.
* Add sort order options to list pages.Matthew Somerville2016-11-04-11/+23
| | | | | | | | Includes newest, oldest, least/most recently updated, and most comments. The default remains the same, which is last updated on /reports, and newest on /my and /around (the latter plus not-in-view sorted-by-distance ones).
* Allow multiple selections in report list filter.Zarino Zappia2016-10-13-2/+2
| | | | | | This lets people filter by multiple categories or states. It uses our jQuery multi-select plugin to turn the <select multiple>s into little overlay lists of checkboxes. HTML5 history is also supported.
* Pass back Open311 request through send_reports for tests.Matthew Somerville2016-08-24-1/+1
|
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-2/+4
| | | | | | | | | | | | 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.
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-304/+5
| | | | Maintain old location wrappers.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-6/+6
|
* Reduce use of FixMyStreet::App.Matthew Somerville2015-12-02-4/+4
| | | | Command line scripts don't need a full blown app, just database.
* Move EmailSend out of Catalyst for use elsewhere.Matthew Somerville2015-12-02-1/+3
|
* Speed up admin front page.Matthew Somerville2015-10-23-1/+4
| | | | | | | | * Don't show a categories summary unless asked via a link * Don't needlessly join in questionnaire/update summaries * Switch count(distinct()) to a subselect as it turns out select count(*) from (select distinct(user_id) from problem) temp; is a lot quicker than select count(distinct(user_id)) from problem;
* [Zurich] admin workflow changes available statesHakim Cassimally2015-10-06-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | See mysociety/FixMyStreet-Commercial#690 - external_message for Extern/Wunsch states - as per PDF mockups, the "public response" field is now editable from more states, namely: - Ruckmeldung ausstehend - Extern - Zustandigkeit unbekannt - Wunsch - Nicht kontaktierbar - Unsichtbar - test fixes NB: slight hack to reorder Zurich report_display tests As these remove 'investigating' from hidden_states, these break tests for default cobrand (the FMS::App code expects to be called once on request start, not multiple times within one test) - Not contactable button and tests for this and the similar `send_back` functionality (previously untested). NB: Unsure why we need to specify form_number=2 just for these submits, but test won't find the buttons otherwise. - Make sure SDMs' "time_spent" figure is recorded. (See mysociety/FixMyStreet-Commercial#718)
* Merge branch '1070-dmarc-workaround'Matthew Somerville2015-08-19-1/+1
|\
| * Add default sender to send_email_cron.Matthew Somerville2015-08-19-1/+1
| | | | | | | | | | Matches send_email, remove unneeded setting of sender in one call, and add contact name to report sent email.
* | Simplify/consolidate body restriction db code.Matthew Somerville2015-08-19-2/+13
| | | | | | | | | | | | | | Make dashboard work properly in two-tier councils, showing reports sent to both. Create an index on the array of the bodies_str column to speed up performance, and use that throughout the code replacing all LIKE scans. This also enables a simplifying tidy of the restriction code.
* | Use ResultSet/cobrand->problems where appropriate.Matthew Somerville2015-08-19-2/+2
| | | | | | | | Fixes #893.
* | Move "missing" handling to separate column.Matthew Somerville2015-08-19-7/+12
|/
* Fix display of warning message in report sending.Matthew Somerville2015-08-13-1/+1
|
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-5/+5
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Allow /ajax to be filtered by statusDave Arter2015-06-29-2/+6
| | | | | If present, the 'status' param can be set to 'open' or 'fixed' to display ensure only open or fixed reports respectively are included in the response.
* Add category filtering support to /ajax via 'category' GET paramDave Arter2015-06-29-1/+2
|
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-82/+70
| | | | | 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.
* [UK] Output NI grid references to NI councils.Matthew Somerville2015-02-20-10/+14
|
* Switch easting/northing output to one line.Matthew Somerville2015-02-16-4/+1
| | | | | This is more friendly for e.g. copy and pasting by someone using the Dynamics CRM software. Fixes #997.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-4/+2
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* [Harrogate] custom form fieldsHakim Cassimally2015-01-08-0/+4
| | | | | | | | | | | | | | Requires previous (generic) commit to prevent information only categories (e.g. Dead animals message) from displaying a spurious textbox. Also support for sending these custom fields by email: Requires a hook in RS::Problem method, as by default, only a restricted number of hard-coded fields are send in the email. (And the template language is pseudo-PHP so we can't simply pass in the whole data-structure.)
* refactor repeat code into get_email_templateHakim Cassimally2014-08-14-7/+1
|
* Merge branch '700-auto-emails'Matthew Somerville2014-05-16-2/+4
|\
| * Set site_name and signature email variables for alertsStruan Donald2014-05-16-2/+4
| | | | | | | | so we can include the name of the site non TT templated emails
* | Merge branch 'issues/commercial-503-centro-email'Steven Day2014-05-01-0/+2
|\ \ | |/ |/|
| * Fix missing subcategory_line that was breaking email sendingSteven Day2014-05-01-0/+2
| | | | | | | | | | | | subcategory_line is optional in seesomethingsaysomething, so we need to set it to something (a blank line is what I've chosen) otherwise email sending breaks when it tries to template up the email message
* | Make sure bodies returned in consistent order.Matthew Somerville2014-02-25-1/+4
| |
* | Test for admin_base_url in RS::ProblemHakim Cassimally2013-12-17-1/+6
| | | | | | | | | | Test that the slash is added in correct place (the base URL should not have its own trailing slash).
* | Rationalise trailing slashes from admin_base_urlHakim Cassimally2013-12-11-1/+1
| | | | | | | | | | | | Remove from admin_base_url (which wraps config vars like {ADMIN_,}BASE_URL) and add to places in code which aren't expecting it.
* | mechanism to stop app store tests being sentStruan Donald2013-09-12-1/+5
| | | | | | | | | | | | 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
* | Changed hardcoded URL in Problem.pm to be using variable from general.yml ↵Matthew Somerville2013-08-30-1/+2
| | | | | | | | instead.
* | Consolidate sending backoff for different types of sender.Matthew Somerville2013-05-02-12/+0
| |
* | Merge remote branch 'origin/zurich'Matthew Somerville2013-02-21-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (locale ignored, will rerun .po extraction after to get all changes.) Conflicts: locale/FixMyStreet.po locale/cy_GB.UTF-8/LC_MESSAGES/EmptyHomes.po locale/de_CH.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nb_NO.UTF-8/LC_MESSAGES/FixMyStreet.po locale/nn_NO.UTF-8/LC_MESSAGES/FixMyStreet.po templates/web/fixmystreet/report/banner.html templates/web/zurich/faq/faq-de-ch.html
| * | Translate user details in Zurich external email.Matthew Somerville2013-02-20-1/+1
| | |