aboutsummaryrefslogtreecommitdiffstats
path: root/t
Commit message (Collapse)AuthorAgeLines
* Alter token logging in and timeout behaviour.Matthew Somerville2015-07-10-4/+6
| | | | | | | Restrict email_sign_in token to one day, unused confirmation tokens to one month. Used tokens will redirect to the created thing but not log in; don't log in with alert links (unsubscribe link never expires, reply link will still show "reopen" tickbox).
* Rename map filtering GET param, remove unnecessary querySteven Day2015-06-29-2/+2
|
* Add some tests for the category & status filtering on /ajaxSteven Day2015-06-29-0/+39
|
* Add hidden_states and updating functions.Hakim Cassimally2015-06-16-0/+17
| | | | To allow visible/hidden states to be manipulated at runtime.
* Use mocked Nominatim to deal with bad connections.Matthew Somerville2015-05-13-2/+45
|
* [Zurich] add columns to stats exportHakim Cassimally2015-03-31-1/+1
| | | | | | | | | | | | | | | - Original Report description - Amended Report description (unsure what this is) - Media URL (currently one picture, in the future 1-3 pictures) - Interface used (see open311) - Requested datetime (see open311) (seems to be same as created) - Agency sent datetime (see open311) - Updated datetime (see open311) - Council-Response - title as per https://github.com/mysociety/FixMyStreet-Commercial/issues/678
* Add Extra role to ease use of {extra} field.Hakim Cassimally2015-03-20-16/+188
| | | | | | | | | Historically, the extra field has been used in two different ways by different cobrands, both as a list (e.g. Open311 category fields) and a hash (e.g. the Zurich cobrand). This commit consolidates usage, adding an API to make use of the field easier and always returning a hash for the code to use. Fixes #1018.
* [fixmystreet.com] Remove special NI code.Matthew Somerville2015-03-16-7/+13
| | | | | This is now handled by normal bodies in the admin. In order to remove references in send_reports, tidy up (unused) EmptyHomes code a bit.
* [fixmystreet.com] Remove special Report-It code.Matthew Somerville2015-03-13-3/+17
|
* Factor out test contact creation to function.Matthew Somerville2015-03-13-128/+59
|
* Tweak wording of area local alert email.Matthew Somerville2015-02-25-1/+1
| | | | Fixes #1011.
* [UK] Output NI grid references to NI councils.Matthew Somerville2015-02-20-2/+10
|
* Always show confirmation page for reports/updates.Matthew Somerville2015-02-19-29/+25
| | | | | Rather than redirecting to the report if they're already logged in. Fixes #1003.
* Simplifed "confirmation-header" for success pages.Zarino Zappia2015-02-19-13/+13
|
* Make sure all co-ordinates are stringified.Matthew Somerville2015-02-13-0/+59
| | | | | | | This includes MapIt postcode lookups, geocoding, query parameters, tile clicks. Stringifying truncates them to six decimal places, which means we no longer need any "short" versions anywhere, and the JSON response will always uses a decimal point regardless of locale.
* Add tests for admin message, cobrand email alert.Matthew Somerville2015-01-20-3/+24
|
* Rename 'body_edit' admin endpoint to 'body'.Matthew Somerville2015-01-20-6/+6
|
* Remove need for cron-wrapper with existing scriptsMatthew Somerville2015-01-19-17/+1
| | | | | Call the necessary boilerplate in each script so you can call them directly. Remove boilerplate from files that don't need it.
* Use same handling for cron and non-cron email.Matthew Somerville2015-01-13-3/+3
| | | | | This means that e.g. SMTP authentication is used when set up by all emails, not just non-cron ones. Fixes #988.
* Version 1.5.2.v1.5.2Matthew Somerville2014-12-17-0/+12
| | | | | | | Includes: * [UK] Don't show topic form field when reporting abuse. * Use token in moderation response URL to prevent hidden report leak. * Make sure successful submission page is full width.
* Add a script to always test on a clean db/config.Hakim Cassimally2014-12-12-2/+4
| | | | Fixes #786.
* By default, use area-based alerts.Matthew Somerville2014-12-12-183/+189
| | | | | | | | | The body-based alert only works if the body ID matches the MapIt ID. This fixes #959. Further work needs to be done to enable proper body-based alerts that work properly in all circumstances. Consequently, factor out fixed body IDs from many tests. Also fix a couple of tests not overriding geocoder correctly.
* Add Open311 i18n test, and add utf8 pragma.Matthew Somerville2014-12-10-15/+27
| | | | Also remove some unused variables.
* Fix encoding of signature in emails.Matthew Somerville2014-12-10-0/+103
| | | | | This text was being imported encoded, which led to double-encoding when used in templates. Fixes #960 and #961.
* Don't generate unused special templates/po files.Matthew Somerville2014-11-19-2/+2
|
* Show logged in message as success, not error.Matthew Somerville2014-11-18-8/+7
| | | | | | Fixes #357. Also consolidate almost-identical fill_in_details.html template (for #344).
* [Warwickshire] Integration bits during/after visitHakim Cassimally2014-10-16-184/+220
| | | | | | | - Tweaks required to get things working in WCC environment - update Open311 to onsite changes - updated Open311 parameters after WCC's Bentley and County Highways workshop. - ... including ce_cpr_id
* Open311: FMS <-> Open311 Endpoint End to end testsHakim Cassimally2014-10-16-9/+147
| | | | | Uses LWP::Protocol::PSGI to avoid having to spawn external processes in order to test these end to end.
* Open311 Warwick (Exor) IntegrationHakim Cassimally2014-10-16-8/+330
| | | | | | | | | | | | | | | | | | | | | | | ::Integration::Warwick subclasses ::Integration::Exor refactor request_class and new_request Exor service Warwickshire updates retrieval, with datetimes stubbing out of Oracle constants, for local testing We also edit FMS's core PopulateServiceList routine to hide system fields from FMS: Bromley/Warwickshire send metadata in their services/FOO.xml advising that you can pass, e.g. attributes[easting]. FMS by default shows all of these to the user to fill in, however we don't *want* the user to supply these, rather they are added by the cobrand. Bromley had an exception for this (keyed by $body->areas->id). We write this more generally for Warwickshire too, keying instead by $body->name (as this is far less likely to be overridden for installs using global or custom Mapit's)
* Open311 Role for accepting default config fileHakim Cassimally2014-10-16-0/+24
| | | | | | | | See also MooX::ConfigFromFile, but that's underdocumented and seems overengineered -- may be worth implementing if requirements become more complex however. (See also Config::Any, which is well worth doing in future, using YAML only reflects current usage in FMS though.)
* Open311 Endpoint mySociety extensions roleHakim Cassimally2014-10-16-3/+194
| | | | | | | | | | | | | | * Get Service Request Updates This requires a new object ::Service::Request::Update, which of course is not part of standard spec. So, in order to make the core not too contaminated by : * the endpoint should instantiate ::Service::Request::mySociety objects which know about updates * have added a learn_additional_types callback from Schema to Endpoint, so that core doesn't need to know about /open311/service_request_update * (but ::Spark knows about the exception for updates... meh, but is 1-line)
* Open311 EndpointHakim Cassimally2014-10-16-0/+623
| | | | | | | | | | | | | | | | | | | | | Subsystems include * ::Spark encoding conventions for xml/json * ::Schema using Rx to validate form of inputs and outputs, including validation for, e.g., dates and CSV as part of Open311 Handles following paths: * Open311 attributes for Service Definition http://wiki.open311.org/GeoReport_v2#GET_Service_Definition * POST service request * GET Service Requests * GET Service Request Objects: * ::Service * ::Service::Request
* [Warwickshire] cobrand workDave Arter2014-10-16-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First Warwickshire styling - imported WCC's header and footer files - Use Warwickshire colours for page elements - Include FMS elements in header - Use correct Warwickshire colours on map - Use full-screen map on desktop. - Improve display of homepage elements - Ensure correct classes are added to body tag - Make sure site header has correct height on front page - Tidy-up of unused header content and wrappers - Improve display of map - Position map beneath other elements Improve map display - Take some CSS from Warwickshire styles to ensure its applied - Fix container widths on map page - Make sure map wrapper is the correct width - Add style overrides to match Warwickshire.gov.uk - Ensure map controls are visible Nav and mobile styling - Make sure sticky sidebar nav is usable - Improve mobile front page - Ensure map is full-screen on mobile - Improve front page display on mobile - Fix map display on desktop - Fix Warwickshire and FMS nav on mobile - Add viewport meta tag for mobile devices - Tighten up vertical spacing on front page - Fix header height on tablet size screens - Set pan/zoom position in CSS, not JS Styling tweaks - correct styling of nav for wider screens (previous hidden by media query) - Add draft Warwickshire FAQ - Fixes https://github.com/mysociety/FixMyStreet-Commercial/issues/611 - Warwickshire. remove all reports link as requested. - see https://github.com/mysociety/FixMyStreet-Commercial/issues/609 - Update WCC footer - see https://github.com/mysociety/FixMyStreet-Commercial/issues/597 Bring WCC css locally, and override - Override for https://github.com/mysociety/FixMyStreet-Commercial/issues/612 - favicon https://github.com/mysociety/FixMyStreet-Commercial/issues/616 - update contact details - custom FAQ - fix padding on mobile https://github.com/mysociety/FixMyStreet-Commercial/issues/617
* UK. Generic problems_clause for two-tier councilsHakim Cassimally2014-10-10-0/+28
| | | | | | Replace copy-pasted problems_cause declarations in Hart, Oxfordshire, and East Sussex with a generic override in UKCouncils.pm (as a bonus also overrides Stevenage)
* Prevent overhang of admin body categories table.Matthew Somerville2014-10-08-7/+7
| | | | Group things together more simply. Fixes #738.
* Validate category name/email/note in admin.Matthew Somerville2014-10-08-0/+1
| | | | This prevents the creation of a category with a blank name. Fixes #556.
* Couple of tests missing MapIt override.Matthew Somerville2014-10-08-2/+10
| | | | Looks like Travis doesn't like connections back to itself.
* Update test for changes in 6eff7846.Matthew Somerville2014-09-11-2/+2
|
* Tests for moderationHakim Cassimally2014-08-14-0/+391
|
* [SeeSomething] fix and test for stats contentHakim Cassimally2014-07-31-1/+50
|
* Replace from_council with from_body in SeeSomething cobrandSteven Day2014-07-31-0/+39
| | | | | | | | | | | | | | | | | | | | | | 'from_council' was renamed to 'from_body' and turned into a relationship in b2aa34b Feb 2013, and the seesomething code was missed. Though the FMS::DB::Result::User object would (correctly) throw an error if an invalid method is called, *Catalyst* idea of a user object wraps this in a Catalyst::Authentication::Store::DBIx::Class which uses AUTOLOAD to delegate methods and swallows the error. e.g. this code always returns false, hence the code path is never run. (I think this is a bug and have opened: https://rt.cpan.org/Ticket/Display.html?id=97640 ) Added test case and (hopefully) corrected template, will need a check against site running copy with recent data to check that nothing looks squiffy. We also had to change the %council_details stash, which was based on the old code, not sure if suggested fix matches original intent, but looks plausible. (As discussed with @dracos @stevenday this is slightly repeated, and should arguably use ->{bodies} but that's a possible future FIXME)
* Removal old Southampton/Reading/Lichfield cobrands.Matthew Somerville2014-07-29-52/+52
|
* Some tweaks for Travis timeout errors.Matthew Somerville2014-07-29-7/+12
| | | | | | Hopefully this will reduce the chance of a timeout: * Wrap admin body tests in MapIt override. * Use full hostname to save a redirect each time.
* Switch test to use different working cobrand.Matthew Somerville2014-07-14-8/+9
|
* Update GA code to use ecommerce ping.Matthew Somerville2014-07-08-3/+7
|
* Merge branch 'mysociety/798-show-reports-subset'Matthew Somerville2014-07-04-0/+118
|\
| * Link through from all reports page to sub categoriesStruan Donald2014-07-01-0/+118
| | | | | | | | | | | | | | | | Add a type parameter to the /reports/body page to restrict list by problem category. Only link to report categories that have entries. Fixes #798
* | Use https for UK site where appropriateStruan Donald2014-07-03-2/+2
|/ | | | | | | Council redirects, BASE_URL comparisons, hard coded links, email signatures For #488
* Better spotting of signing in on /auth form.Matthew Somerville2014-06-20-1/+19
| | | | | | | | | If your browser autocompleted form fields, you could fill in the signing in part of the form but still be sent a confirmation email. This commit will now default to trying to sign in if the sign in button is clicked or there is data in the signing in password field. Fixes #816.
* Fix test of postcode that has moved ever so slightly.Matthew Somerville2014-05-30-9/+9
|