aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* [Buckinghamshire] Handle HE flytipping reports.Matthew Somerville2020-07-08-1/+18
| | | | | We do not want to recategorise a report into the off-road category if it is going to be sent to Highways England.
* Merge branch 'hibp'Matthew Somerville2020-07-08-14/+62
|\
| * Add option to check password on Have I Been Pwned.Matthew Somerville2020-07-07-14/+62
| | | | | | | | | | | | | | 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-4/+21
|\ \
| * | Provide list of keys to ignore in moderation diff.Matthew Somerville2020-07-07-1/+16
| | | | | | | | | | | | | | | This is a current full list of extra keys that could be set on a report that could confuse the moderation diff display.
| * | Only show removed in moderation diff if non-blank.Matthew Somerville2020-07-07-1/+1
| | |
| * | Handle arrayrefs in moderation extra diff display.Matthew Somerville2020-07-07-1/+3
| | |
| * | Make sure string_diff does not return undef.Matthew Somerville2020-07-07-1/+1
| |/ | | | | | | | | As string_diff is used in hash values, it must always return something, otherwise you could end up with e.g. category => 'extra'.
* / Better sort admin user table.Matthew Somerville2020-07-07-14/+10
|/ | | | | 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-3/+8
|\
| * Fix duplicate message after dismissing suggestionsMatthew Somerville2020-07-06-2/+7
| | | | | | | | | | | | | | | | 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.
| * [Buckinghamshire] Default unknown types to street light.Matthew Somerville2020-07-06-1/+1
| |
* | Merge branch 'rewrite-open311-update-reports'Matthew Somerville2020-07-07-494/+392
|\ \
| * | Factor out/default Open311 construction object.Matthew Somerville2020-07-06-44/+23
| | | | | | | | | | | | This simplifies the code wherever used.
| * | Rewrite open311-update-reports to share code.Matthew Somerville2020-07-06-465/+384
| |/ | | | | | | | | Make GetUpdates and GetServiceRequestUpdates share a common base; spot all visible states.
* | [Hackney] skip hackney categories for TfL red routesStruan Donald2020-07-06-2/+36
| | | | | | | | | | | | Because Hackney doesn't have any matching categories for TfL red routes skip sending the body, otherwise you get a "no contact details" message when you click on a red route in Hackney
* | Merge branch 'issues/commercial/1934-bristol-cobrand-categories'Struan Donald2020-07-06-1/+12
|\ \ | |/ |/|
| * [Bristol] Ensure categories edited via the admin are visible on cobrandDave Arter2020-07-03-1/+12
| |
* | [Hackney] Add Google AnalyticsDave Arter2020-07-03-1/+11
| |
* | [Hackney] Use cobrand feature config for email envelope domainDave Arter2020-07-02-1/+27
| |
* | Allow cobrand to provide custom domain for VERP addressesDave Arter2020-07-02-4/+14
| |
* | [Hackney] Add geocoder override for Teale StreetDave Arter2020-07-02-1/+9
| |
* | [Hackney] Query WFS server differently when finding park/estateDave Arter2020-07-02-12/+17
| | | | | | | | | | | | | | | | For some reason the BBOX query would return results that weren’t actually intersecting the BBOX causing false positives and misdirected reports. This change uses the Intersects query instead which is more accurate.
* | [Hackney] Refine geocoder results displayDave Arter2020-07-02-0/+21
| |
* | Allow cobrands to manipulate OSM query params directlyDave Arter2020-07-02-0/+1
| |
* | Display contents of lists in report extra data in adminDave Arter2020-07-02-5/+30
| |
* | Add allowed_domains OIDC config to limit logins to specific domainsDave Arter2020-07-02-0/+8
| |
* | [Hackney] Add staff sign-in link to login formsDave Arter2020-07-02-1/+123
| |
* | [Hackney] Enable OIDC social loginDave Arter2020-07-02-8/+108
| |
* | Include redirect URI when fetching OIDC access tokenDave Arter2020-07-02-0/+1
| |
* | OIDC scope/token parsing improvementsDave Arter2020-07-02-5/+17
| | | | | | | | | | | | | | - 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
* | Rename O::L::C::W::Azure to O::L::C::W::AuthCodeFlowDave Arter2020-07-02-7/+10
| | | | | | | | Turns out there’s nothing strictly Azure-specific about it.
* | [Hackney] Special destination handling.Matthew Somerville2020-07-02-29/+133
| |
* | Improve category import scriptDave Arter2020-07-02-2/+3
| | | | | | | | | | Adds ability for categories to be marked as devolved with their own send_method, and for the open311_protect flag to be set.
* | [Hackney] Extend open311_protect flag to entire contact, not just name/groupDave Arter2020-07-02-1/+24
| |
* | [Hackney] Include TfL assets on mapDave Arter2020-07-02-1/+1
| |
* | [Hackney] Add initial asset layers & configStruan Donald2020-07-02-0/+253
| |
* | [Hackney] Enable anonymous reportingDave Arter2020-07-02-0/+8
| |
* | [Hackney] Add admin_user_domainDave Arter2020-07-02-0/+2
| |
* | [Hackney] Switch to OSM geocoderDave Arter2020-07-02-0/+5
| |
* | [Hackney] Use OpenStreetMap base mapDave Arter2020-07-02-0/+5
| | | | | | | | | | | | Also bumps up default zoom level a couple of notches For https://github.com/mysociety/fixmystreet-commercial/issues/1760
* | [Hackney] set extra open311 parametersStruan Donald2020-07-02-0/+22
| |
* | [Hackney] Initial cobrand design & privacy policy amendmentMartin Wright2020-07-02-2/+763
| | | | | | | | | | | | Co-Authored-By: Struan Donald <struan@exo.org.uk> For https://github.com/mysociety/fixmystreet-commercial/issues/1808
* | Don’t show `sent_to` on moderation diffDave Arter2020-07-02-2/+3
| |
* | [Alloy] asset layers for Alloy V2Struan Donald2020-07-02-13/+80
| | | | | | | | | | Mostly inherits from original Alloy code, with addition of a new format as Alloy no longer returns a native geoJSON collection.
* | [Northamptonshire] Factor out code to add multiple Alloy asset layersDave Arter2020-07-02-20/+23
|/
* Merge branch 'fix-client-rotation'Matthew Somerville2020-07-01-41/+317
|\
| * Fix photo orientation in modern browsers.Matthew Somerville2020-07-01-40/+315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+2
| | | | | | | | In my Firefox on Windows, .jpeg files are not otherwise shown.
* | Merge remote-tracking branch 'Sambruk/internationalize_heatmap'Matthew Somerville2020-07-01-9/+9
|\ \ | |/ |/|