aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
Commit message (Collapse)AuthorAgeLines
* [Bromley] Include asset ID in title if given.Matthew Somerville2018-06-04-1/+11
|
* [BANES] Add extra columns to dashboard CSV export; behind new permissionDave Arter2018-05-31-0/+197
|
* ajax endpoint to return closest address.Struan Donald2018-05-09-3/+16
| | | | | | | | /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.
* Add way of validating data in report_form_extras.Matthew Somerville2018-04-23-4/+31
|
* [Oxfordshire] Fix admin exor download page.Matthew Somerville2018-04-16-4/+4
| | | | | 07906f40 changed the HTML date input form, but did not update the server parsing of the format.
* [fixmystreet.com] Stop non-council email sign-up.Matthew Somerville2018-04-09-2/+4
| | | | 100% false positives so far.
* send easting/northing over open311 if send_notpinpointed and no map/postcodeStruan Donald2018-03-21-22/+50
| | | | | | If the map was not clicked and we don't have a postcode we should still send the easting and northing extra attributes if send_notpinpointed is set.
* Merge branch 'rutland-integration'Struan Donald2018-03-15-0/+60
|\
| * [Rutland] cobrand files for RutlandStruan Donald2018-03-15-0/+60
| | | | | | | | | | Web and email template changes, CSS plus cobrand file with open311 config
* | [Zurich] Fix typo causing crash on /report/ajaxDave Arter2018-03-15-0/+9
|/
* [Zurich] Switch to more modern database states.Matthew Somerville2018-03-07-27/+102
| | | | | | | 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!
* [Zurich] Let SDM view awaiting reports.Matthew Somerville2018-03-07-0/+6
|
* [Zurich] Make wish state publicly visible.Matthew Somerville2018-03-07-0/+3
|
* Merge branch 'issues/commercial/974-closed-report-incorrectly-reopened'Matthew Somerville2018-03-02-0/+5
|\
| * [Zurich] Do not reopen closed reports by mistake.Matthew Somerville2018-03-02-0/+3
| | | | | | | | | | The code for moving a report to the intermediary state was running even if the report was in a closed state and had not been changed.
* | [Zurich] Show to-be-hidden reports until confirmedMatthew Somerville2018-03-02-2/+4
|/
* [Oxfordshire] Remove response days, add home page message.Matthew Somerville2018-02-15-51/+0
|
* Hide 'updates not sent' message on reports sent via Open311Dave Arter2018-01-23-1/+1
| | | | | | | | | | | | | | | The 'updates are not sent to the council' message was incorrectly being shown on reports where updates would in fact be sent. This was affecting non-Bromley/Stevenage reports on fms.com and all cobrands using Open311. This commit moves the logic out of the template and adds the Problem->updates_sent_to_body method which inspects the receiving body's Open311 configuration to determine whether updates will be sent. The duplication of the Lewisham/Oxfordshire logic between Problem.pm and send-comments isn't ideal but hopefully there won't be any new Open311 bodies that only send and don't receive updates. If there are we'll have to look at refactoring that list.
* Merge branch 'issues/commercial/988-c6-email-address-link'Matthew Somerville2018-01-18-9/+25
|\
| * [Zurich] Allow publishing of individual photos.Matthew Somerville2018-01-18-9/+25
| | | | | | | | | | When more than one photo has been uploaded, allow each one to be published/not independently.
* | Remove unused (except by tests) send_reports() fn.Matthew Somerville2018-01-15-3/+6
|/
* [fixmystreet.com] CSV download from marketing pageStruan Donald2017-12-15-42/+84
| | | | | | Limited to most recent 100 rows and not full data. Factor the two CSV generations together.
* [fixmystreet.com] Marketing page, filterable statsStruan Donald2017-12-15-1/+0
| | | | | Uses the dashboard stats code to display a rough table of stats which can be used as the basis for a chart later
* display council contacts on council dashboardStruan Donald2017-11-28-0/+26
| | | | | | | | Display a list of the email addresses used to contact the council on the council dashboard. Does not display emails if the council has an integration, rejects FMS reports or is currently turned off. Fixes mysociety/fixmystreetforcouncils#941
* Make sure returned geocoder data is UTF-8 decoded.Matthew Somerville2017-11-15-1/+1
| | | | | | It turns out that HTTP::Message (as used by LWP::Simple::get) only decodes text/* and 'XML', not application/json, as used by all the geocoders. Work around this, hopefully in a future-proof way.
* [fixmystreet.com] No social login on UK councils.Dave Arter2017-11-08-0/+36
|
* Have /around ajax use same format as others.Matthew Somerville2017-11-02-4/+4
| | | | | Both /reports and /my work by using the same URL with ajax=1. We should use the same on /around for consistency.
* Merge branch 'reports-dashboard-councils'Matthew Somerville2017-10-20-0/+47
|\
| * [fixmystreet.com] Council pages only from council.Matthew Somerville2017-10-20-0/+47
| |
* | [Oxfordshire] Add initials/traffic to RDI desc.Matthew Somerville2017-10-18-3/+4
|/
* Simplify geocode cache read/writing.Matthew Somerville2017-10-10-5/+5
| | | | Don't think the return data ever needs decoding.
* Add ability to confirm reports/updates via text.Matthew Somerville2017-09-30-5/+5
|
* [Oxfordshire] Use local time for rdi_processed, not UTCDave Arter2017-09-13-2/+10
|
* Merge branch '1836-slash-category-bug'Matthew Somerville2017-09-11-0/+1
|\
| * Fix issue editing category with '/' in it.Matthew Somerville2017-09-11-0/+1
| | | | | | | | | | | | Simplify chaining of body/category admin URLs so that all categories are treated the same, with `/` or without, and the template will then always have its CSRF token.
* | [Oxfordshire] Log when problems sent by RDI email.Dave Arter2017-09-11-1/+32
| | | | | | | | | | | | | | | | The timestamp of when a problem was included in an RDI is shown on the problem’s inspector form. Also check back and include any inspected reports that for some reason haven't been instructed yet. Fixes mysociety/fixmystreetforcouncils#223.
* | [Oxfordshire] tests for response time messagesStruan Donald2017-09-11-0/+51
|/
* Remove hardcoded states from templates.Matthew Somerville2017-08-31-2/+2
| | | | | | | | | | | State display names are now got from the database wherever they are displayed, including admin dropdowns, list filters, and update meta statements. This also covers the open/closed/fixed 'groups'. This also fixes a bug whereby if e.g. an update has problem_state investigating, the next update has no problem_state, and the last update has investigating again, it was previously showing a state change to investigating on that third update.
* Make sure gettext domain specified in all tests.Matthew Somerville2017-08-25-6/+0
|
* [Bristol] Fix 500 error on /report/newDave Arter2017-08-21-0/+44
|
* [Zurich] Bring all reports in line with upstream.Matthew Somerville2017-08-18-6/+8
| | | | | Update the map/list if the map is zoomed/panned, and make sure the updated HTML list is returned.
* [Oxfordshire] Put I when single char activity codeMatthew Somerville2017-08-02-4/+19
| | | | | The "M" line needs an "I" after the activity code if the activity code is only one character.
* [Oxfordshire] RDI file should show all inspections as happening on the same dateDave Arter2017-07-24-2/+2
| | | | Fixes mysociety/fixmystreetforcouncils#203
* Add inactive state to categories.Matthew Somerville2017-07-14-2/+1
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* [Oxfordshire] Group RDI output by activity code.Matthew Somerville2017-07-06-11/+32
|
* Run each test file in a transaction.Matthew Somerville2017-06-20-29/+3
| | | | This means that the tests can be run in parallel.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-4/+4
| | | | | | | | | | | | Historically in UK cobrands, bodies have had IDs the same as the MapIt area ID they cover. This can be confusing (if you are setting up a dev environment, say) and should not be necessary. This commit removes the requirement entirely, by switching any ID checks to either the name of the body, or the actual area it covers. One note: the body name in the test has to match so that we do not get two bodies both covering 2237 created. This will not be necessary when the tests are compartmentalized in the next commit.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-40/+3
|
* Fix test that would not run offline.Matthew Somerville2017-05-25-2/+1
| | | | | Switch it to use our mock MapIt. Also remove other unused overrides to external services.
* [UK] Stop nearest request with scientific notationMatthew Somerville2017-05-18-16/+15
| | | | | | If the longitude was very close to 0, it was being sent as e.g. 1e-6 in the request to MapIt. Mock out the Bing query so that this can be tested (the closest.t tests were previously always being skipped).