| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
| |
This also can set up users so that the admin
"Log user out" function works correctly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The 'updates are not sent to the council' message was incorrectly being
shown on reports where updates would in fact be sent. This was affecting
non-Bromley/Stevenage reports on fms.com and all cobrands using Open311.
This commit moves the logic out of the template and adds the
Problem->updates_sent_to_body method which inspects the receiving body's
Open311 configuration to determine whether updates will be sent.
The duplication of the Lewisham/Oxfordshire logic between Problem.pm and
send-comments isn't ideal but hopefully there won't be any new Open311
bodies that only send and don't receive updates. If there are we'll have
to look at refactoring that list.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bristol's Open311 endpoint still seems to be returning empty metadata
for some services that claim to have metadata. They have made changes to
their published services since the change was made to exclude their
endpoint, which is causing issues for new reports.
Rather than exclude their endpoint entirely from being updated, this
commit just silences the noisy error message for Bristol.
Reverts the change made in 491eb26e4.
|
| |
|
| |
|
| |
|
|
|
|
| |
And use the existing ones more.
|
|
|
|
|
|
|
|
|
|
| |
It took a few years but somebody finally made a report at a whole-number
lat/lon (52°N in this case) which was duly rejected by the OCC Exor
script as not being a valid coordinate due to the assumption that all
lat/lon values will contain a ‘.’ character.
This commit makes the decimal part of the value optional, allowing
integer values to be sent.
|
| |
|
| |
|
|
|
|
|
| |
Only works on bodies with an associated area, and requires the
object to be passed in, not just its ID.
|
|
|
|
| |
Fixes mysociety/fixmystreetforcouncils#251
|
|
|
|
| |
otherwise the login doesn't work post sms auth changes.
|
| |
|
| |
|
|
|
|
|
| |
These are so we can state whether a user's email address or phone number
have been verified by confirmation email/text.
|
|
|
|
|
| |
body_str is encoded with the provided charset/encoding, body is used
as-is (and so will die in email sending if it contains wide characters).
|
|
|
|
| |
This was missed in 0998aef4.
|
|
|
|
|
| |
Couple of missed strings for translation, and prevent a couple of
warnings in tests.
|
|
|
|
|
|
|
|
| |
The timestamp of when a problem was included in an RDI is shown on the
problem’s inspector form. Also check back and include any inspected
reports that for some reason haven't been instructed yet.
Fixes mysociety/fixmystreetforcouncils#223.
|
|
|
|
| |
Add some reports to the inspector's shortlist.
|
|\ |
|
| |
| |
| |
| |
| | |
We keep the internal states hardcoded, plus the core open (confirmed)
and closed ones, but the remainder are moved to the database.
|
| | |
|
| |
| |
| |
| | |
The change in 66bd45b6 did not account for being run with no CSS files.
|
|/ |
|
| |
|
|
|
|
|
|
|
| |
- Also provides an editor for the extra Open311 fields on contacts.
- Adds .btn--small class for small buttons
Fixes #1743.
|
|
|
|
|
|
|
|
|
| |
In conjunction with the --watch flag, the new --script flag can be used to
run a given command after compilation caused by files changing.
E.g. you could reload your browser automatically upon hitting save in your
editor, with something like
https://gist.github.com/davea/07a7456da15eeb8c47f1fb66e4b96c54
|
|
|
|
|
|
| |
This avoids the need to search the whole table to find a report's
duplicates. And is easier than constructing an index or upgrading
PostgreSQL.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Given a set of config files of the format `conf/general-{cobrand}.yml`
this script lets you easily create and recreate a symlink at
`conf/general.yml` that points to the cobrand config of your choice. The
test suite also then uses this naming convention.
|
|/
|
|
|
|
| |
A reference to ->storage was missed as this script changed in a
different branch. The schema files contain transaction commands
themselves. A check for migration 52 was missing.
|
|
|
|
| |
Store a schema object on FixMyStreet::DB instead.
|
| |
|
| |
|
|
|
|
| |
Fixes mysociety/fixmystreetforcouncils#203
|
| |
|
|
|
|
|
|
|
| |
This makes it possible to display stats per area on /reports
Cobrands using this functionality should use the pre-dashboard
reports/index.html template and pass --areas when calling bin/update-all-reports
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This is a much broader summary page, plus a body name autocomplete.
This was originally implemented for fixmystreet.com in 8a6a4ccb7.
It also adds '(no longer exists)' in the autocomplete next to
bodies not covering any areas.
You can supply the `--table` argument to `update-all-reports` to
generate the old-style data.
|
|
|
|
|
|
|
|
|
|
|
| |
This is a much broader summary page, plus a body name autocomplete.
This uses a cut down version of chart.js. [1]
[1] The full version was 149Kb (41Kb gzipped) plus you needed moment
(50Kb/17Kb), for a total of 199Kb/58Kb. By stripping out unused graphs
and code and config options, and switching to category axis rather than
time, it is now a total of 39Kb/13Kb.
|
| |
|
|
|
|
| |
Also include areas in auto-generated problems.
|
| |
|
|
|
|
| |
This means that the tests can be run in parallel.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Historically in UK cobrands, bodies have had IDs the same as the MapIt
area ID they cover. This can be confusing (if you are setting up a dev
environment, say) and should not be necessary. This commit removes the
requirement entirely, by switching any ID checks to either the name of
the body, or the actual area it covers.
One note: the body name in the test has to match so that we do not get
two bodies both covering 2237 created. This will not be necessary when
the tests are compartmentalized in the next commit.
|
|
|
|
|
|
| |
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.
|
| |
|