aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
* | [Bristol] Switch back to own map tiles/assetsDave Arter2018-02-13-1/+33
| | | | | | | | This reverts commit 549d1cc66e591cf2da6b5243fbd28c7f40e75f14.
* | Refactor asset loading code to be more idiomaticDave Arter2018-02-13-81/+87
| | | | | | | | | | | | | | This simplifies the asset layer loading code to allow multiple layers to be created and added to the map at the correct time. This also means always_visible layers are, in fact, always visible, and not hidden when the map is clicked or a category-specific asset layer is shown.
* | WFS asset layers can set their name attributeDave Arter2018-02-13-4/+6
| |
* | Improvements to asset layer user interactionDave Arter2018-02-13-33/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit allows asset layers to be added to the map that have more complex behaviours than simply 'click a marker'. - Layers can be non-interactive and/or always visible Previously an asset layer would only be shown when its associated category was chosen from the dropdown. You can now add layers which are always visible, as well as ignoring user input. Useful for, e.g. showing an LLPG overlay on the map. - Stylemaps can be provided for individual layers This means you can, for example, have custom rules for styling features based on their attributes or other complex rules. - Functions can be used for the feature/report field mapping Instead of a one-to-one mapping between feature attributes and fields on the new report form, you can provide a callback function which can provide a calculated value to the report form.
* | Make asset layer WFS configuration more customisableDave Arter2018-02-13-14/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes it easier to customise the way asset layers are loaded over WFS, including: - Adds support for WFS layers via GET method The standard HTTP method for WFS GetFeature requests is POST, but some WFS services only support GET. OpenLayers.Protocol.WFS is hardcoded to use POST, but we can use OpenLayers.Protocol.HTTP instead to use GET. The options passed to fixmystreet.add_assets should include a 'http_options' object which configures the HTTP protocol. - Allows HTTP asset layers to provide their own format This makes it simpler to use GeoJSON, for example, instead of the default of GML. - Asset layers can provide their own loading strategy The default strategy can be overridden if, for example, you want to use a BBOX strategy with a smaller ratio in order to load fewer features at a time.
* | Fix OpenLayers.Projection.OS transformsDave Arter2018-02-13-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | It seems that the projectInverse/projectForward methods in OpenLayers.Layer.SphericalMercator have been renamed which was causing problems. Additionally this gem was buried in the OpenLayers.Projection.transform docs: Returns point - [...] The original point is modified. The previous code didn't seem to modify the original point which was confusing OpenLayers.
* | Merge branch 'issues/forcouncils/276-staff-only-reports'Matthew Somerville2018-02-13-37/+132
|\ \ | |/ |/|
| * Show non_public reports to staff on list pages.Matthew Somerville2018-02-13-16/+51
| |
| * Allow inspectors to see/change non_public reports.Matthew Somerville2018-02-09-6/+63
| |
| * Only leave inspect update if text or state change.Matthew Somerville2018-02-08-15/+17
| | | | | | | | | | We don't want to leave a blank update when e.g. only internal things have changed.
* | Merge branch 'version-2.3.1'v2.3.1Matthew Somerville2018-02-12-12273/+15963
|\ \
| * | Version 2.3.1.Matthew Somerville2018-02-12-8/+10
| | |
| * | Update locale files with new strings.Matthew Somerville2018-02-12-11382/+15542
| | |
| * | Updated translations from transifex.Matthew Somerville2018-02-12-901/+429
| | |
* | | Merge branch 'banes-improvements-grab-bag'Matthew Somerville2018-02-12-13/+83
|\ \ \ | |/ / |/| |
| * | Cobrands can pass `components` to Google Geocoder.Dave Arter2018-02-12-4/+72
| | | | | | | | | | | | | | | | | | This allows more fine grained control over the geocoder search, e.g. to specify the administrative area or town. See the geocoder api docs: https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering
| * | Improvements to report_sent_confirmation_email functionDave Arter2018-02-12-6/+7
| | | | | | | | | | | | | | | | | | - Send ‘report sent’ emails from cobrand’s contact address - Don’t send email when report is made using contribute-as-other and report_sent_confirmation_email is active.
| * | Display report extra fields on inspect formDave Arter2018-02-08-3/+4
| | | | | | | | | | | | | | | | | | | | | This commit restores display of report extra fields on the inspect form, previously missing because of a typo. Also improves the compactness of the form by hiding ‘notice’ extras and any extra guidance attached to each field.
* | | Script to remove expired sessions.Matthew Somerville2018-02-09-0/+81
| | | | | | | | | | | | | | | This also can set up users so that the admin "Log user out" function works correctly.
* | | Fix warning when sending reports from user with no emailDave Arter2018-02-09-1/+1
| | |
* | | prevent timezone related util test failureStruan Donald2018-02-09-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Make sure that the prettify_dt tests use the same timezone as FMS otherwise the test can fail if now in the local timezone is actually yesterday/tomorrow in the FMS timezone. Fixes #1984
* | | [Bristol] Switch map to OSM temporarilyDave Arter2018-02-08-33/+1
|/ / | | | | | | maps.bristol.gov.uk is currently offline, so the Bristol map tiles aren’t loading.
* | Show loading spinner on map for assets as well as markersDave Arter2018-02-08-2/+10
| |
* | Factor map loading spinner code out so multiple things can load at onceDave Arter2018-02-08-6/+28
|/
* Allow updates to be left as another user with phone numberDave Arter2018-02-07-9/+76
|
* Don’t require SMS_AUTHENTICATION to view/edit user email/phone_verifiedDave Arter2018-02-07-8/+14
| | | | | | | Previously this would force phone_verified to false for all user edits, as well as forcing email_verified to true - which would be the wrong thing to do if the user had been created/verified via the ‘report as another user’ flow.
* Allow ‘report as another user’ to only provide a phone numberDave Arter2018-02-07-10/+96
|
* Increase two-factor skew to 2 time periods.Matthew Somerville2018-02-07-1/+1
|
* Merge branch '2fa-superuser'Matthew Somerville2018-02-07-36/+423
|\
| * Allow two-factor to work during creation flow.Matthew Somerville2018-02-07-18/+84
| |
| * Add two-factor authentication for superusers.Matthew Somerville2018-02-07-18/+339
| |
| * [Travis] Do not ignore Authentication::CredentialsMatthew Somerville2018-02-07-1/+1
| |
* | Merge branch '1944-admin-remove-account'Matthew Somerville2018-02-07-7/+92
|\ \
| * | Admin ability to remove user account details.Matthew Somerville2018-02-06-0/+42
| | |
| * | Add admin ability to log user out.Matthew Somerville2018-02-06-7/+50
| |/
* | Merge branch 'password-tests'Matthew Somerville2018-02-06-31/+221
|\ \
| * | Add length/common password checking.Matthew Somerville2018-02-06-31/+221
| |/
* | Upgrade Number::Phone.Matthew Somerville2018-02-05-261/+266
| | | | | | | | | | This brings in my new format_for_country function which allows for nicer display of phone numbers to people.
* | [Oxfordshire] Switch mapping style to OS.Matthew Somerville2018-02-01-2/+0
| |
* | Increase bcrypt cost.Matthew Somerville2018-02-01-7/+18
| | | | | | | | Though when running tests, decrease it for speed.
* | Ask for current pw/send email on password change.Matthew Somerville2018-02-01-11/+103
|/ | | | | If they have a current password, ask for it; if they don't, send a confirmation email.
* Merge branch '1942-admin-anonymize'Matthew Somerville2018-01-31-1700/+2038
|\
| * Split up admin test file into many separate files.Matthew Somerville2018-01-31-1694/+1937
| |
| * Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-22/+72
| |
| * Admin ability to make user anonymous.Matthew Somerville2018-01-31-3/+38
| |
| * Add missing labels on admin user form.Matthew Somerville2018-01-18-10/+20
| |
| * Make update moderation button match report one.Matthew Somerville2018-01-18-1/+1
| |
* | Merge branch 'borsetshire-pro-changes'Matthew Somerville2018-01-31-22/+97
|\ \
| * | [Borsetshire] Add Pro banner at top.Matthew Somerville2018-01-29-1/+76
| | |
| * | [fixmystreet.com] Consistent Pro naming.Matthew Somerville2018-01-29-21/+21
| | |