| Commit message (Collapse) | Author | Age | Lines |
... | |
|
|
|
|
|
|
| |
This led to an odd issue whereby a deleted category started being
used for a category change, but only when the other category with
the same name was edited (so thus changed the database's internal
ordering).
|
|\ |
|
| |
| |
| |
| |
| |
| | |
replace_query_parameter() was stringifying select multiples, meaning
they were incorrectly recorded by the pushState and thus breaking on
navigation.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Including testing the filters, viewing a report, and pushState.
Plus a mock MapIt handler for returning a GeoJSON outline, to make the
page load. The BASE_URL is also set to the same as the test server, as
that is used in list link output.
|
| |
| |
| |
| |
| | |
The existing fixture script generates random results so is no use for
front end testing.
|
| |
| |
| |
| |
| |
| |
| |
| | |
When using the mySociety Vagrant box, ensure that the `local/` directory
is present before attempting to bind mount the pre-built Perl modules.
Without this directory present the bind mount will fail and the Perl
modules will all be built again unnecessarily.
|
| |
| |
| |
| |
| |
| | |
The install script calls a service restart at build, this failed
if the stop action in the init script doesn't check for the
existence of the PIDFILE first, so check.
|
| |
| |
| |
| | |
Fixes #2263.
|
|/
|
|
| |
checks what is shown/hidden at various screen sizes
|
|
|
|
| |
The new lookup would only work if it was present.
|
|
|
|
|
|
| |
Rather than pulling across the preinit file from master, use the
version in the copy of FixMyStreet on the image - this will then
match the release actually being built.
|
|
|
|
| |
Fixes mysociety/fixmystreet-commercial#1131
|
|
|
|
|
| |
The change to web/js/front.js was required because Oxfordshire has no
`.report-a-problem-btn`, so the front.js shouldn’t assume it’s there.
|
|
|
|
|
|
|
|
|
|
|
| |
The large negative text-indent can sometimes cause horizontal scrollbars
in Right-to-Left languages, and, in some browsers, can also result in a
huge :focus outline being drawn around the button and off to the right
of the window.
Setting a zero height, padding top, and overflow:hidden is a simpler
way to achieve the same thing, and works regardless of text direction,
text length, or focus state.
|
|
|
|
| |
There is no need for #front_stats to always be nested inside of #front-howto.
|
| |
|
|
|
|
|
|
|
|
| |
The reference number is a) the FMS report id which is irrelevant and b)
we don't get an OCC reference number back immediately so could not show
it anyway.
Related to mysociety/fixmystreet-commercial#1193
|
|
|
|
|
| |
but only send if the problem as a customer reference and use that as the
external id reference
|
|
|
|
|
| |
we no longer need some of the hardcoded oxfordshire Open311 overrides so
remove them
|
|
|
|
|
| |
OCC uses the customer reference from extra to store the enquiry
reference so use that on the report page rather than external_id.
|
|
|
|
|
| |
If an Open311 update has a customer_reference property then add that to
the metadata for the problem.
|
|
|
|
|
| |
This is required to build some of the Perl modules pulled in by the
addition of `Net::Amazon::S3`.
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
Adds a mocked Oxfordshire cobrand permissions method that adds
back in the permissions explicitly removed there.
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
This adds details of our Docker images and the example Docker
Compose environment, including notes on how to use this with
a cobrand and how to customise the database configuration.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds a script for loading cobrands into an instance of the
FixMyStreet Docker container.
A directory containing the necessary module, templates, css, etc
should be mapped into the container at `/var/www/fixmystreet/cobrand`
and activated by adding the cobrand to `ALLOWED_COBRANDS` as usual.
See the documentation at https://fixmystreet.org/install/docker
for more details.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This includes four containers: app, memcached, nginx, and postgres.
The preinit script is used at container startup to ensure the database
is initialised. Includes a volume for the Postgres database to permit
persistence. Also sets the `PGDATA` variable to a subdirectory to
support optional use of a filesystem mount.
The repo/branch can be specified at build time.
If `SUPERUSER_EMAIL` and `SUPERUSER_PASSWORD` are set when the FMS
container starts the preinit script will pass these to
`bin/createsuperuser` when it starts up. These have been set to test
values in the supplied Docker Compose configuration.
Reverse proxy issue
===================
If nginx and fms were on the same machine, ReverseProxy would
automatically be in use, but via docker containers they are not. Do we
need to force it to be switched on? Let's see. There are four possible
options, with their outcome:
* port not in Host, ReverseProxy not in use
Anything using the automatically-generated base instead of BASE_URL uses
port 9000, meaning those links don't work.
* port not in Host, ReverseProxy in use
Anything using the automatically-generated base instead of BASE_URL uses
port 80, meaning those links don't work (they would if you had
docker-compose listen on port 80, being then a similar situation to e.g.
the AMI image).
* port in Host, ReverseProxy not in use
This works *unless* the port is 80, just to be contrary to the above; in
that case it is stripped and :9000 is put back on, meaning those links
again don't work. I realise we use 8000, but would be confusing if
someone tried it out.
* port in Host, ReverseProxy in use
This works in all scenarios, and thus is what we go with.
|
| |
| |
| |
| |
| |
| |
| | |
- Adds support for additional variables intended to control when to
install postfix and postgres.
- Skips nginx setup and integration when performing a docker build.
- Don't print usage during docker build
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
This sets the default box to be `mysociety/fixmystreet` and provides
an optional argument, `--base-box`, that can be used to override this.
When using the `mysociety/fixmystreet` box, the Perl modules are
prebuilt in `/usr/share/fixmystreet/local` and are bind-mounted into
`/home/vagrant/fixmystreet/local`. This ensures that these are
compatible with the guest machine and speeds up an initial launch.
The `mysociety/fixmystreet` box is also based on Debian Stretch so is
a closer match to our current production environment.
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
Use a HashRefInflator wherever all_sorted is used, with consequential
changes to deal with it now not being an object (e.g. add some with_*
functions for manual fetching of extra data).
|
| | |
|
| | |
|
|/
|
|
| |
For mysociety/fixmystreet-freshdesk#16.
|