| Commit message (Collapse) | Author | Age | Lines |
... | |
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |
| |
| |
| |
| | |
This is only used for audit purposes on FixMyStreet and not required in
Confirm.
|
| |
| |
| |
| |
| | |
Use a generic report description for fetched reports rather than the one
fetched over open311
|
| |
| |
| |
| |
| | |
Different report sent confirmation text is used for reports when they
are submitted to Triage and when they are submitted to Confirm
|
| |
| |
| |
| |
| |
| | |
add a check into the Alerts script to skip comments that have
`triage_report` set in extra. Otherwise we send these our in new_updates
alerts.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add in some cobrand handlers to make sure
a) the appropriate categories are show to staff/non staff users on the
around and reports pages
b) that those categories are correctly expanded to the child
categories when using the category filter to search reports
This is because non staff users should only be shown Isle of Wight
categories with a send_method of 'Triage', however once those reports
are triaged the post triage categories need to be included in any
filtering
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
On reports with a state of `for_triage` override the `_inspect.html`
template to display one which allows only allows the user to change the
category from one with a 'Triage' send_method to a non Triage
send_method.
When saved this records a comment with the original category and the
category it was triaged to. This is hidden from the site as it's only
used for audit purposes and sending over Open311.
This assumes that the triage categories have the same names as the
groups of the confirm categories. It uses this to select the first
confirm category in the group corresponding to the triage category.
This also makes the sidebar geolocation onclick handler check for the
presence of the button, as the triage inspect form does not have it.
|
| |
| |
| |
| | |
sets the state of the report to `for_triage` upon sending
|
| | |
|
| |
| |
| |
| | |
This is only used to determine if we should block sending the form
|
| | |
|
| |
| |
| |
| | |
Fixes mysociety/fixmystreet-commercial#1522
|
| | |
|
| |
| |
| |
| | |
Also tests for confirm report, report sent and alert emails.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
The area name does not match the council name so it redirects to the
national site, so check for the all_reports_single_body and use that as
the matching instead.
|
| | |
|
|/
|
|
|
|
|
|
|
| |
Co-authored-by: Matthew Somerville <matthew@mysociety.org>
Configured to allow:
- updates only from original reporter
- close updates from fetch reports
- use OSM geocoder
|
| |
|
|
|
|
| |
Fixed, closed, or reports by the body user.
|
|\ |
|
| | |
|
| | |
|
| | |
|
|\ \ |
|
| | | |
|
| |/
|/| |
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
The request cobrand is set on the schema during the app's
setup_request(), which is called by the root auto action.
So anything in a controller's begin action will access an
incorrect cobrand (if one has already been set).
|
|/
|
|
|
|
|
|
| |
If the coordinates are (0,0) then return that straight back as trying to
reproject causes Geography::NationalGrid::GB to fall over as 0 lat is
outside UK
Fixes #2617
|
|
|
|
|
|
|
| |
This improves the reporting journey to only ask for category,
and then category extra questions if appropriate, first, so that
if the choice would lead to the form being disabled, this can
be shown immediately.
|
| |
|
|
|
|
|
|
| |
If a body was set to Open311, and a contact set to Email, it was
impossible to unset the contact's send method and set an Open311
code, because it would always demaned a valid email address.
|
|
|
|
|
| |
A cobrand feature flag can be used to only allow updates on open
reports, by the original reporter, to staff only, or to no-one.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
Remove all existing hard-coded register_category calls, and have
a new way of implementing staff_ignore.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
| |
There was a small bug where the 'default_to_body' permission would
override the 'report anonymously' button when staff users were adding
reports to the site. The result of this was that the name of the
anonymous user record would be shown. No harm done, as that user's name
would likely be set to "Anonymous user" in config, but it resulted in
reports pages showing the slightly odd wording along the lines of:
Reported in the Bin bags category by Anonymous user at 14:57 today
This commit ensures the contributing_as_body flag is mutually exclusive
with the 'report_anonymously' request parameter.
|
|\ |
|
| |
| |
| |
| |
| | |
If an extra field on a category has a protected flag then do not
overwrite or remove it when populating categories.
|
|/
|
|
|
| |
The question was being asked for even when it should not, because
the error key had been changed to start with an 'x' in 120b57d1.
|
|\ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a message is sent via the contact form, with a stated email address
matching a user in the database, the resulting email will now include
quick links to:
- Admin page for editing the user
- Admin page for viewing the user’s reports
And if the user has made at least one report, also:
- Admin page for the user’s most recent report
This should speed up admin email triage considerably.
|
| |
|
| |
|