| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
| |
Use a small subclass of (our) P::M::D::Template to
have better display of our template path names.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If debug is enabled, using the CATALYST_DEBUG/FIXMYSTREET_APP_DEBUG
environment variables, add a debug toolbar to the output, including
request/response details and a database query log.
This uses Plack middleware, so works by switching our dev server to
use Starman with plack directly, rather than via the script runner.
We remove the GZip compression as this interferes, and take a local
copy of the QueryLog::AdoptPlack trait as it needs a tweak to work.
Make sure the CSP header is not output in debug mode, as that would
prevent the toolbar JavaScript from running.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Both uses can be covered by existing modules.
This means we can drop FCGI also.
|
|
|
|
| |
This means we can drop Crypt::SSLeay and a few others.
|
| |
|
|
|
|
|
|
| |
Given a MapIt area ID, the script will create a body and categories,
users with different levels of permissions, and some random problems
and updates. It can optionally empty out the database first.
|
|
|
|
|
|
|
|
|
|
| |
0.09 was communicating with v2.2 of the Facebook API which was switched off
on 25th March 2017, so Facebook logins were no longer working.
Mock::Facebook was updated to correctly return JSON from /oauth/access_token,
to match the behaviour expected since v2.3 of the FB API.
Fixes #1681
|
|
|
|
|
|
|
|
|
|
| |
Email::Send is long deprecated and uses submodules that no longer work
correctly (e.g. Net::SMTP::TLS breaks with recent IO::Socket::SSL). We
create an Email::Sender subclass to perform the same functionality and
this also simplifies the email code with simpler envelope handling.
Bundle Email::Sender::Transport::SMTP to include fix from
https://github.com/rjbs/Email-Sender/issues/46
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Move to using libsass via CSS::Sass, and stop using compass, supplying
any used mixins directly. This removes the need for any ruby/gem based
installation, and greatly increases the speed of compilation. make_css
is also enhanced, bringing in the file monitoring previously done by a
separate script and improving its dependency monitoring.
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The following modules had bugs that have been fixed for working in
recent perls:
* List::MoreUtils
* Guard
* PadWalker
* aliased
* URI
* Convert::NLS_DATE_FORMAT
The CGI module was removed from core in 5.20, so include it in the
snapshot (I don't think it's actually used, but is a dependency).
"{" needs to be escaped in regular expressions, and ~~ should not be
used.
Fix some tests that expect e.g. a certain hash ordering, to use sorted
output or better comparisons.
|
|
|
|
|
| |
Version 1.01 of Net::SMTP::SSL does not work with perl 5.22 (with
Net::SMTP > 2.34). https://rt.cpan.org/Public/Bug/Display.html?id=99454
|
| |
|
|
|
|
|
|
| |
Travis has Cpanel::JSON::XS preinstalled, which means that the build
would fail there, as JSON::MaybeXS would try and upgrade JSON::XS to
version 3 which the snapshot did not contain.
|
| |
|
|
|
|
|
| |
Template::Plugin::Number::Format works internationally, whilst
Template::Plugin::Comma does not.
|
|
|
|
| |
And create default cobrand class without all of Moose.
|
|
|
|
| |
Required by Zurich for mysociety/FixMyStreet-Commercial#675
|
| |
|
|
|
|
|
| |
I thought this was already pulled in by e.g. Email::Valid, but on
precise it does not appear to be.
|
| |
|
|
|
|
|
|
|
| |
This works around a couple of issues installing using either MacPorts or
Homebrew, making sure the version of ExtUtils::MakeMaker in the snapshot
is installed early in the process, and that MooseX::NonMoose is present
in the snapshot.
|
| |
|
|
|
|
| |
As that's what it does; and use it in Travis.
|
|
|
|
| |
Fixes #786.
|
|
|
|
|
|
| |
Try and save other people the potential pain of installing SOAP::Lite;
only UK FixMyStreet and Zurich geocoder use it, so set it as an optional
feature in the cpanfile instead.
|
|
|
|
|
| |
Uses LWP::Protocol::PSGI to avoid having to spawn external processes
in order to test these end to end.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
- redaction marked with [...]
- of report and comments
- stores original data
- uses a single form, on the report/_main view
- requires additional permissions (user_body_permissions)
- Hide report functionality
- Moderation notification/contact form
- Moderation writes to admin_log
|
|
|
|
|
|
| |
Fixes #406. Include Perl modules necessary for Email::Send::SMTP to
handle TLS/SSL, and upgrade Dir::Self due to
https://rt.cpan.org/Public/Bug/Display.html?id=88393
|
| |
|
|
|
|
|
|
|
| |
Fixes #365 (how appropriate) by mocking datetime to allow the
dashboard test's assumptions (that we're not so near beginning
of year that a report from X days ago isn't still in same year)
to hold.
|
|
|
|
|
|
|
|
|
|
|
| |
Run with bin/make_css_watch
This watches the .scss files in web/cobrands/* and runs the appropriate
sass/compass commands (as per bin/make_css) on just those directories
with changed files.
As a special case, a change to the partials in web/cobrands/sass will
cause a rebuild of all cobrands.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Provide a button to download the details and text of reports
at the second "Look up" button on /dashboard.
Provides acknowledged, fixed, closed dates by parsing updates.
Fixes #692 (and mysociety/FixMyStreet-Commercial#399)
Email is not shown, and name honours anonymous flag: as /dashboard
is accessible to people who are from_body (who still do not see
anon-users name and email in the FMS web app.)
A basic test is provided as per Zurich's similar report.
|
|
|
|
| |
Note how we'd like to do the same with SOAP::Lite.
|
| |
|
|
|
|
|
|
|
| |
* Upgrade ExtUtils::MakeMaker, and remove old workaround.
* DIME::Tools won't install without --force (needed by SOAP::Lite in travis).
* Remove SOAP::WSDL from cpanfile, as it won't install and nothing
needs it apart from Barnet (UK specific).
|
|
|
|
|
| |
I guess it's mySociety::Web, which should probably stop being used,
it's not really needed.
|
| |
|
| |
|
|
|