aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
Commit message (Collapse)AuthorAgeLines
* Version 3.1.v3.1M Somerville2020-11-16-39/+43
|
* prevent editing of category names with hardcoded flagStruan Donald2020-10-28-0/+1
| | | | | | | | | | | | If a category has hardcoded set to 1 in it's extra metadata then prevent the name being edited in the admin. This is to avoid issues where the name of the category is used in e.g. layers or other configuration and changing it breaks things. Also includes admin interface for setting this that is restricted to super users only. Fixes mysociety/fixmystreet-commercial#1992
* allow bulk removal of staff status from usersStruan Donald2020-10-23-0/+1
| | | | | | | Bulk option to remove body, roles and permisions, and disable login in admin for users. Fixes mysociety/fixmystreet-commercial#2025
* Include extra fields in submit emails.M Somerville2020-10-12-0/+1
|
* do not cache the service workerStruan Donald2020-10-09-0/+1
| | | | | As the contents of the service worker vary depending on if the user is logged in don't cache it.
* Fix email alert on initial update template.M Somerville2020-10-09-0/+1
| | | | | | | | A report's confirmation timestamp uses current_timestamp, and so includes microseconds. An initial update text, to fit in with the Open311 handling of updates, uses a DateTime object, which does not. This means if a report is created when logged in, the initial update can have a timestamp earlier than the report, and so is not alerted on.
* Show all category history even if category renamedM Somerville2020-10-07-0/+1
|
* Merge branch '3167-strip-space-middle'M Somerville2020-10-02-0/+1
|\
| * Don’t strip all spaces from Open311 categories.M Somerville2020-10-02-0/+1
| | | | | | | | | | | | If a category’s send method is Open311, only strip spaces from the ends of the code. We are aware of active Open311 servers that have codes with spaces in the middle.
* | Merge branch 'deleted-response-priorities'M Somerville2020-10-02-0/+1
|\ \
| * | Do not display deleted priorities in inspect form.M Somerville2020-10-02-0/+1
| |/
* / Record whether report made on desktop or mobile.M Somerville2020-10-02-0/+1
|/
* Merge branch 'issues/commercial/1928-html-in-response-templates'M Somerville2020-09-30-0/+2
|\
| * Enable HTML in updates from staff usersDave Arter2020-09-30-0/+2
| | | | | | | | This also extends to response templates.
* | Merge branch 'improved-email-phone-in-form'M Somerville2020-09-30-0/+1
|\ \
| * | If text auth on, ask which method they wish to useM Somerville2020-09-25-0/+1
| | |
* | | do not trigger duplicate check with stopper checkStruan Donald2020-09-30-0/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | The stopper checking code is triggered using the category_change event which, by default also calls the duplicate check code. This meant that when an extra question dropdown with an associated stopper was updated the duplicate check re-ran and the duplicate reports panel was re-shown. The invocation of category_change on the extra questions now includes the skip_duplicates parameter to avoid this. Fixes mysociety/fixmystreet-commercial#2007
* | [UK] "Search tips" message when there are no location search resultsZarino Zappia2020-09-28-0/+1
|/ | | | | | | | | UK cobrands now display UK-specific postcode/address search tips, when the geocoder returns no results. This should hopefully help people tweak their search, to return a better result next time. The tips are based on findings from a study we ran on geocoder misses across all UK cobrands over March, April, May, and June 2020.
* fix using multiple disable messages on category questionsStruan Donald2020-09-25-0/+1
| | | | | | Provide a stopper per disable message, rather than per question. Previously there was one stopper per dropdown so only the last message encountered was used.
* Update relevant meta message lines on named asset.M Somerville2020-08-24-0/+1
| | | | | | Otherwise, if you switch category and the new asset layer is added before the old is removed, the old (still visible) layer asset found would fire but change the meta message of the new layer.
* Allow one more zoom level on most map types.M Somerville2020-08-14-0/+1
| | | | Not on StreetView/OpenMap Local based, which are not available.
* Allow inspectors to change report asset.M Somerville2020-08-13-0/+1
| | | | | This hopefully copes with assets displayed by category or by group, and updates the button to show/hide on category change.
* Offline process for CSV generation.M Somerville2020-08-11-0/+1
| | | | | Include a status page, the option for access token requests to use this system, and a script for manual generation.
* Add photo upload field to inspector formChris Mytton2020-08-06-0/+1
| | | | | This adds the code for photo uploads from the regular update form to the inspector form, and adds details to the documentation.
* Add database index for full text search.Matthew Somerville2020-07-31-0/+1
|
* Merge branch '3110-deep-linking-category-group'Matthew Somerville2020-07-16-0/+2
|\
| * Select matches for both filter category and group.Matthew Somerville2020-07-16-0/+1
| | | | | | | | If both are specified, we want to treat it as an AND, not an OR.
| * Fix lookups in templates of categories with &s.Matthew Somerville2020-07-16-0/+1
| | | | | | | | | | | | A hash lookup in a template is escaping the key used, meaning the lookup is failing anywhere we are using a category containing an ampersand as a key. A continuation of the changes made in 527d763b.
* | Add aerial option to OSM maps.Matthew Somerville2020-07-16-1/+1
|/
* Do not have bootstrap run sudo commands.Matthew Somerville2020-07-15-0/+1
| | | | | | | | | Your site user may not have access to sudo, and your admin user may cause permission issues if used to do the git checkout, or the Perl module installation. Document the separate script to install system packages instead. Co-authored-by: Sam Pearson <sam@mysociety.org>
* Centralise update creation to include fields.Matthew Somerville2020-07-14-0/+1
| | | | | | Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
* Merge branch 'issues/commercial/1870-aerial-maps'Matthew Somerville2020-07-13-0/+1
|
* Merge branch 'hibp'Matthew Somerville2020-07-08-0/+1
|\
| * Add option to check password on Have I Been Pwned.Matthew Somerville2020-07-07-0/+1
| | | | | | | | | | | | | | If switched on, sends first five letters of the SHA1 hash of the entered password to HIBP's API, which then returns all matching hashes in their database of breached passwords. If we find a match, tell the user they need to pick a different password.
* | Merge branch 'fix-moderation-diff-display'Matthew Somerville2020-07-08-0/+1
|\ \
| * | Provide list of keys to ignore in moderation diff.Matthew Somerville2020-07-07-0/+1
| |/ | | | | | | | | This is a current full list of extra keys that could be set on a report that could confuse the moderation diff display.
* / Better sort admin user table.Matthew Somerville2020-07-07-0/+1
|/ | | | | Sort the table when showing search results, and show users without name at the bottom, rather than at the top.
* Merge branch 'fix-duplicate-asset-selection-message'Matthew Somerville2020-07-07-0/+1
|\
| * Fix duplicate message after dismissing suggestionsMatthew Somerville2020-07-06-0/+1
| | | | | | | | | | | | | | | | If we create one category_meta_message for each category, removing when not relevant, then duplicat suggestion showing leads to duplicate messages because the layer is still relevant, just not visible, and so the old layer message is not removed. Instead, repurpose the ID of any existing category_meta_message, so there is only ever one in existence.
* | Rewrite open311-update-reports to share code.Matthew Somerville2020-07-06-0/+1
|/ | | | | Make GetUpdates and GetServiceRequestUpdates share a common base; spot all visible states.
* Allow cobrand to provide custom domain for VERP addressesDave Arter2020-07-02-0/+1
|
* OIDC scope/token parsing improvementsDave Arter2020-07-02-0/+1
| | | | | | | - Cobrand config can now specify custom scope and other params e.g. G Suite supports per-domain customisation and the ‘prompt’ param to always ask the user to select the account they want to login with. - Token may have an ‘name’ claim instead of needing to concat given_/family_name claims
* Fix photo orientation in modern browsers.Matthew Somerville2020-07-01-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use Dropzone (the photo upload library) to shrink photos client-side before uploading in the background and display thumbnails. For the resized upload, Dropzone restores the original Exif data, including orientation, so it can be correctly oriented server-side; for a thumbnail, it orients the image itself for immediate display. Recently, browsers have started honouring Exif orientation much more widely (Chrome 81+ and Firefox 77+ both now do it by default). This means the data Dropzone gets from a resize has already been oriented according to the Exif orientation data. Then Dropzone either looks at the orientation to correct for display (thumbnail), or adds back the Exif orientation data (upload) – in both cases, this leads to a double implementation of the orientation, and an incorrect display. To fix this, if we detect we are on a modern browser, we do not try and fix orientation ourself [1], and in all cases we do not add any Exif data back in (we only strip it server-side anyway). Conversely, that means on a non-modern browser, we always perform a manual orientation because no Exif data will be being sent server-side. Also includes a fix to the orientation code [2] which wouldn't be noticed in thumbnail generation as they are square, but could be now we may be orienting full size photos. [1] https://gitlab.com/meno/dropzone/-/merge_requests/80 [2] https://gitlab.com/meno/dropzone/-/merge_requests/45
* Include file extensions in Dropzone acceptedFiles.Matthew Somerville2020-07-01-0/+1
| | | | In my Firefox on Windows, .jpeg files are not otherwise shown.
* Only show access tokens once, and store hashed.Matthew Somerville2020-06-30-0/+2
|
* Improve Bing geocoder results.Matthew Somerville2020-06-25-0/+1
| | | | | Add a couple of parameters to hopefully improve results, and make sure the returned locality is included in the summary address.
* [Open311] Use devolved data on update sending.Matthew Somerville2020-06-23-0/+2
|
* Add lazy image loading on list items.Matthew Somerville2020-06-15-0/+2
|
* Skip accounts without email for inactive emails.Matthew Somerville2020-06-11-0/+1
|
* Merge branch 'issues/commercial/1906-he-anon-all'Matthew Somerville2020-06-10-0/+1
|\