| Commit message (Collapse) | Author | Age | Lines |
| |
|
|
|
|
|
|
|
| |
At the moment if you fetch a report in a staff category it will still be
created but will be in the Other category. Given that some staff
categories are marked as private this can allow reports that should be
private to be put in a public category.
|
|
|
|
|
| |
Make GetUpdates and GetServiceRequestUpdates share a common base;
spot all visible states.
|
|
|
|
|
| |
Make them take start/end hour arguments, cope if only one given,
optional body, and combine them together in one `fetch` script.
|
| |
|
|
|
|
|
|
| |
This change ensures that a report fetched via Open311 for a non_public category
will always be marked as non_public even if its Open311 XML doesn’t explicitly
include the non_public tag.
|
|
|
|
|
|
|
|
|
| |
Times in the database should be stored in the application server's local
timezone, by e.g. using `current_timestamp`, or by setting that timezone
explicitly before storage (the database columns are all without timezone
so any timezone info is silently ignored). Reports & updates fetched via
Open311 and offline updates were being put into the TIME_ZONE setting if
present, meaning they were stored incorrectly for future usage.
|
| |
|
|
|
|
|
| |
When fetching reports run them through the cobrands
filter_report_description method if it exists.
|
|
|
|
|
|
|
|
|
| |
If there is
<non_public>1</non_public>
tag in an incoming service request then set the created report to
non_public.
|
|
|
|
|
| |
This should reduce the incidence of the ‘Problem id X for Y has an
invalid time, not creating’ cron errors we’ve been seeing.
|
| |
|
| |
|
|
|
|
|
| |
Add a more helpful error message when a problem fetched over Open311 is
rejected for problems with the date.
|
|
|
|
|
|
|
|
|
| |
If a body has a `fetch_all_reports` setting in the extra metadata then
all reports are fetched over Open311 and processed regardless of age.
This is useful for bodies where the API endpoint always returns all the
reports as it suppresses the error messages you would otherwise get
about reports with invalid dates.
|
|
|
|
|
|
|
|
| |
FMS uses the Contact->email field for the Open311 service code,
and the Contact->category field is the user-friendly service name.
The wrong value was being compared previously, resulting in all
fetched problems being assigned to the 'Other' category.
|
|
|
|
| |
Certain endpoints can be slow, so fetch fewer reports at a time.
|
|
|
|
| |
Also adds script for fetching the last 24hrs of reports
|
| |
|
|
|
|
|
|
|
| |
When pulling reports in over Open311 it's sometimes useful to be able to
accept reports with Easting/Northing rather than latitude/longitude.
This adds an option to GetServiceRequests to convert them as they
come in.
|
|
This enables the display of existing reports from the back end on FMS
if the body is configured to do this.
Reports will not be created if they are missing an id, a lat or a long,
if the lat/long is outside the area covered by the body, if there is
already a report with a matching id, or if we can't parse out the
request time.
|