Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | [Bristol] Fix 500 error on /report/new | Dave Arter | 2017-08-21 | -1/+46 |
| | ||||
* | Merge branch 'speed-up-reports' | Matthew Somerville | 2017-08-18 | -12/+51 |
|\ | ||||
| * | Update changelog. | Matthew Somerville | 2017-08-18 | -3/+6 |
| | | ||||
| * | Cache Problem->bodies and prefetch the body areas. | Matthew Somerville | 2017-08-18 | -7/+15 |
| | | ||||
| * | Faster /reports for inspectors, reduce db queries. | Dave Arter | 2017-08-18 | -2/+30 |
| | | ||||
* | | Merge branch 'zurich-upgrade-openlayers' | Matthew Somerville | 2017-08-18 | -1398/+660 |
|\ \ | |/ |/| | ||||
| * | [Zurich] Bring all reports in line with upstream. | Matthew Somerville | 2017-08-18 | -15/+20 |
| | | | | | | | | | | Update the map/list if the map is zoomed/panned, and make sure the updated HTML list is returned. | |||
| * | [Zurich] Upgrade OpenLayers to master, matching others. | Matthew Somerville | 2017-08-18 | -1377/+625 |
| | | ||||
| * | Allow co-ords to be supplied to fixture script. | Matthew Somerville | 2017-08-18 | -6/+15 |
| | | ||||
* | | Reduce queries on /report when loading defect types/priorities | Dave Arter | 2017-08-18 | -2/+6 |
|/ | ||||
* | Make sure /around permalink/redirect have js param | Matthew Somerville | 2017-08-18 | -0/+7 |
| | | | | | The change in 17e38922 would not deal with the URL construted by the map permalink code, or the redirect after inspection. | |||
* | Merge branch 'js-you-only-load-once' | Matthew Somerville | 2017-08-17 | -98/+63 |
|\ | ||||
| * | Do not fetch pins server side if JS enabled. | Matthew Somerville | 2017-08-17 | -0/+9 |
| | | | | | | | | | | | | The page currently fetches the pins again client-side (as we don't know the extent of the map at the server point). I realise this isn't ideal, but should speed up the normal case quite a bit. | |||
| * | Fix replaced sidebar losing hover behaviour. | Matthew Somerville | 2017-08-17 | -3/+4 |
| | | | | | | | | | | If the list was replaced by JavaScript, the event handlers were being dropped. Switch the handlers to the parent that remains present. | |||
| * | Refactor /around list code to share with others. | Matthew Somerville | 2017-08-17 | -95/+50 |
| | | | | | | | | | | Both /reports and /my share an ID and a /reports/ajax function, use these also on /around (and share ajax/non-ajax code). | |||
* | | Merge branch 'issues/forcouncils/201-show-all-report-updates' | Matthew Somerville | 2017-08-17 | -22/+94 |
|\ \ | ||||
| * | | show all report updates, even if no public text | Struan Donald | 2017-08-17 | -22/+94 |
| | | | | | | | | | | | | | | | | | | | | | | | | Create a comment entry for all updates to reports regardless of whether there is any text part. Also adds an entry to extra if a defect was raised and includes that in the update status line. Fixes mysociety/fixmystreetforcouncils#201 | |||
* | | | Merge branch 'issues/forcouncils/187-all-reports-filter-by-substates' | Matthew Somerville | 2017-08-17 | -0/+105 |
|\ \ \ | ||||
| * | | | allow body users to filter on all problem categories | Struan Donald | 2017-08-17 | -0/+105 |
| |/ / | | | | | | | | | | | | | | | | Not just New/Fixed/Closed but the Investigating etc Fixes #1790 | |||
* | | | Merge branch 'edit-defecttypes-tests' | Matthew Somerville | 2017-08-17 | -0/+193 |
|\ \ \ | |/ / |/| | | ||||
| * | | tests for the defect types admin interface | Struan Donald | 2017-08-17 | -0/+193 |
| | | | ||||
* | | | [fixmystreet.com] Encode ampersands in link hrefs | Zarino Zappia | 2017-08-17 | -8/+8 |
|/ / | ||||
* / | [fixmystreet.com] Donation link on success pages | Zarino Zappia | 2017-08-17 | -20/+15 |
|/ | | | | Part of #1384. | |||
* | [Travis] Ignore perllib/Email. | Matthew Somerville | 2017-08-17 | -1/+1 |
| | ||||
* | Merge branch '1743-report-extras-editing' | Dave Arter | 2017-08-17 | -31/+883 |
|\ | ||||
| * | Add site-wide extra fields for reports, and admin UI to manage | Dave Arter | 2017-08-17 | -31/+877 |
| | | | | | | | | | | | | | | - Also provides an editor for the extra Open311 fields on contacts. - Adds .btn--small class for small buttons Fixes #1743. | |||
| * | Add make_css flag to run script after compilation | Dave Arter | 2017-08-17 | -0/+6 |
|/ | | | | | | | | | In conjunction with the --watch flag, the new --script flag can be used to run a given command after compilation caused by files changing. E.g. you could reload your browser automatically upon hitting save in your editor, with something like https://gist.github.com/davea/07a7456da15eeb8c47f1fb66e4b96c54 | |||
* | Merge branch 'duplicate-reverse' | Matthew Somerville | 2017-08-17 | -3/+47 |
|\ | ||||
| * | Store duplicate reverse lookups upon dupe setting. | Matthew Somerville | 2017-08-17 | -3/+47 |
| | | | | | | | | | | | | 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. | |||
* | | [Bromley] Template text tweaks. | Matthew Somerville | 2017-08-17 | -5/+18 |
| | | ||||
* | | translate defect category names in the controller | Struan Donald | 2017-08-16 | -2/+2 |
| | | | | | | | | | | | | | | As we're only passing category names through we need to do the translation in the controller and not the template Fixes mysociety/fixmystreetforcouncils#218 | |||
* | | enable body users to add problem updates anonymously | Struan Donald | 2017-08-16 | -2/+22 |
| | | ||||
* | | enable body users to report problems anonymously | Struan Donald | 2017-08-16 | -3/+44 |
|/ | | | | | | uses the body user but flags the report as anonymous Fixes #fixmystreetforcouncils/207 | |||
* | Document fetch-comments-24hs in crontab example. | Matthew Somerville | 2017-08-15 | -2/+4 |
| | | | | In the absence of making any changes. Fixes #1739. | |||
* | Don't use phone number as report ID. | Matthew Somerville | 2017-08-15 | -3/+1 |
| | | | | This led to a wrong/bad request for nearby duplicates. | |||
* | The Nearby model works in kilometres, not metres. | Matthew Somerville | 2017-08-15 | -1/+1 |
| | | | | | I think we probably don't care about reports in John o'Groats when we're in Oxford. | |||
* | Fix CSS bug on inspect form duplicate loader | Zarino Zappia | 2017-08-15 | -1/+1 |
| | ||||
* | Clearer highlight for selected duplicate on inspect form | Zarino Zappia | 2017-08-15 | -2/+17 |
| | | | | Fixes mysociety/fixmystreetforcouncils#211. | |||
* | Include MapIt API key in admin config if present. | Matthew Somerville | 2017-08-15 | -0/+3 |
| | | | | Fixes #1778. | |||
* | Ignore translation if fewer than two languages. | Matthew Somerville | 2017-08-15 | -15/+25 |
| | ||||
* | Add fn to fetch bodies plus the translated names. | Matthew Somerville | 2017-08-15 | -1/+30 |
| | ||||
* | Remember translation lookup for request remainder. | Matthew Somerville | 2017-08-15 | -2/+14 |
| | ||||
* | Remove a couple of debug lines. | Matthew Somerville | 2017-08-15 | -3/+0 |
| | ||||
* | [FiksGataMi] Fix "%s" in translation. | Matthew Somerville | 2017-08-15 | -1/+1 |
| | ||||
* | translate report template category names in controller | Struan Donald | 2017-08-14 | -2/+2 |
| | | | | | | | We can't translate them in the template as we're just passing in the category name and not the object. Fixes mysociety/fixmystreetforcouncils#216 | |||
* | Fix typo stopping response templates appearing | Dave Arter | 2017-08-14 | -1/+1 |
| | | | | Fixes mysociety/fixmystreetforcouncils#215 | |||
* | [Zurich] Fix map on /reports | Dave Arter | 2017-08-14 | -1/+9 |
| | | | | | | | | | | | | | | | | | | A seemingly unrelated change in ef6ffbdb was causing JS errors on the /reports page which meant the map loading spinner was permanently present. This commit fixes that, and also fixes another bug which was uncovered where the ?ajax=1 param was being ignored by the Zürich /reports page, leading to HTML being returned and another JS error. The call to `new OpenLayers.Bounds` in OpenLayers.Strategy.FixMyStreet.getMapBounds was causing three of the 4 bounds params to be lost when run on OpenLayers 2.11, as this version doesn’t accept an array to the Bounds constructor. This in turn was using an invalid `bbox` parameter (only the west value was present) in the AJAX call to /reports which returned a 500 error. This then crashed the JS and caused the loading spinner to get stuck. | |||
* | Prevent unnecessary string translation. | Matthew Somerville | 2017-08-11 | -5/+3 |
| | | | | | | Calling the function 'translate' causes gettext-extract to add the string to the .po file. Also, we no longer need an admin 'updated' message as the main form has its own success message. | |||
* | Merge branch 'switch-site-script' | Matthew Somerville | 2017-08-10 | -3/+40 |
|\ | ||||
| * | Add switch-site script for easily switching config | Zarino Zappia | 2017-08-10 | -3/+40 |
| | | | | | | | | | | | | | | Given a set of config files of the format `conf/general-{cobrand}.yml` this script lets you easily create and recreate a symlink at `conf/general.yml` that points to the cobrand config of your choice. The test suite also then uses this naming convention. |