| Commit message (Collapse) | Author | Age | Lines |
| |
|
|\ |
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
Avoid doing cobrand-specific logic within SendReport::Open311.
The hooks defined are:
open311_config: set extra fields
open311_pre_send: set endpoints and munge data
These are tested in the new t/app/sendreport/open311.t, which does
not send any actual reports, but just checks that all the data is
munged into the expected format. (tests under t/open311* should
already test the actual sending)
Remove unused Open311 special cases.
|
|
|
|
| |
The interception of 404s etc is too much of an inconvenience.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
The list code was checking the photo ID given in the database existed on
disk – this shouldn't ever not be the case, and if it was, all that
would happen would be a broken image when the full photo code looks for
it (this is only for e.g. lists of reports).
|
| |
| |
| |
| |
| | |
The versioning code wasn't remembering when it had found that a file did
not exist, so was checking for them each time.
|
|/
|
|
| |
Fixes mysociety/fixmystreetforcouncils#98
|
|
|
|
|
|
|
|
|
|
|
| |
Reports in the generated Exor RDI file need to have an external_id so they can
be linked to existing enquiries (PEMs) when the RDI is imported into Exor.
There is a small window of opportunity for a report to be created, inspected and
downloaded in an RDI before it's been sent to Exor via Open311 and had an
external_id assigned. This commit closes that window by excluding reports from
the RDI that don't have an external_id.
Fixes mysociety/fixmystreetforcouncils#168
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The RDI file format encapsulates information about inspections that have taken
place, and can be uploaded into Exor to create defects in bulk.
This commit adds a page to the Oxfordshire cobrand's admin allowing RDI files
to be generated and downloaded from FMS.
For mysociety/fixmystreetforcouncils#127
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rather than assigning +1 to a user's reputation every time a report is
inspected, this allows cobrands to specify which states should increment or
decrement the reputation value when a report is inspected.
The default behaviour is for reputation to never be changed, but the Oxfordshire
cobrand will increment the reputation when a report is marked as 'action
scheduled'.
For mysociety/fixmystreetforcouncils#119
|
|
|
|
|
|
| |
A report is now considered 'inspected' if its state was changed by an inspector.
Additionally, an AdminLog entry is created so the time of inspection and
inspector can be recorded.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This script can be used for the bulk closure of old reports that haven't been
updated in a long time.
Reports that haven't been updated in a *really* long time (since 2014, by
default) are simply closed, and those that haven't been updated since 2015 (by
default) are closed and an email explaining the closure is sent to the report
creator.
This script can be used for other cobrands, but they'll need an
archive.{txt,html} template in order for the emails to be sent.
For mysociety/fixmystreetforcouncils#51
|
|
|
|
|
| |
Tokens can include a 'p' field in their data to set query params for the
post-login redirect URL.
|
|
|
|
|
|
| |
This method creates a token that logs the reporting user in, optionally
with some parameters which are stored with the token for use when redirecting
after login.
|
| |
|
|
|
|
|
| |
- Add year and month to $nearest options
- Allow prettify_duration to choose a sensible $nearest if omitted
|
|
|
|
| |
If the user has a from_body and at least one category set.
|
| |
|
| |
|
|
|
|
| |
Fixes mysociety/fixmystreetforcouncils#159
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Adding an official badge to Greenwich updates so as to avoid exchanges in which
public contributions are mistaken for official ones.
As per the Bromley version e.g. https://fix.bromley.gov.uk/report/973784 - this
helps to avoid situations where public contributions are mistaken for official
ones.
|
|\ |
|
| |
| |
| |
| | |
Bromley had this already in its update state change messages.
|
|\ \ |
|
| |/
| |
| |
| | |
This joins easting, northing and an external ID field.
|
| | |
|
|/
|
|
|
|
| |
This function is used e.g. in report lists, and if you were using the
multiple language subdomain functionality, those links could take you
to a different language.
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
Assume that if they inspect and save a report, they want
to go back to their shortlist.
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
| |
Solves a minor bug where it was difficult to create a new user and immediately
assign permissions, as the page didn't show the appropriate permissions UI.
|
|
|
|
|
| |
There are a couple of servers we currently talk to that
error not that infrequently but work in the end.
|
|\ |
|
| |
| |
| |
| |
| | |
This is to work around
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8572187/
|
|\ \
| | |
| | |
| | | |
'origin/issues/forcouncils/136-show-user-details-for-council-report'
|
| | | |
|
| | | |
|