aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Open311
Commit message (Collapse)AuthorAgeLines
* Record service as Open311 for pulled-in reports.M Somerville2020-10-02-0/+1
|
* [Oxfordshire] include asset id in open311 descriptionStruan Donald2020-08-10-1/+1
|
* [Open311] use staff categories when fetching reportsStruan Donald2020-08-06-1/+1
| | | | | | | 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.
* Centralise update creation to include fields.Matthew Somerville2020-07-14-5/+0
| | | | | | Given the user, we can infer the name if not provided, and the extra data if a staff user. We can also provide defaults for various other fields. Always have superuser take precedence over from_body.
* Factor out/default Open311 construction object.Matthew Somerville2020-07-06-15/+22
| | | | This simplifies the code wherever used.
* Rewrite open311-update-reports to share code.Matthew Somerville2020-07-06-319/+321
| | | | | Make GetUpdates and GetServiceRequestUpdates share a common base; spot all visible states.
* [Hackney] Special destination handling.Matthew Somerville2020-07-02-1/+1
|
* [Hackney] Extend open311_protect flag to entire contact, not just name/groupDave Arter2020-07-02-1/+7
|
* [Open311] Use devolved data on update sending.Matthew Somerville2020-06-23-10/+15
|
* [Open311] Do not remove any devolved contacts.Matthew Somerville2020-06-04-3/+3
|
* Include updates in failure summary report.Sam Pearson2020-05-26-0/+22
| | | | This includes details of any failing updates in the summary script.
* Add sending updates capability to daemon.Matthew Somerville2020-04-28-46/+67
|
* Add contact flag to protect category/group names from Open311 changesDave Arter2020-04-28-2/+3
| | | | | | | Adds a new tickbox to the contact editing form that protects the category and group names from being changed by Open311. For mysociety/fixmystreet-commercial#1776
* [Open311] external status code takes precedence.Struan Donald2020-04-08-1/+4
| | | | | | | | Order the response templates query by external status code so if you have an update with an external status code the response template matching that is always used. Previously with the database left to determine the order it could pick a response template with a matching state rather than a matching external status.
* Allow slow processes to spin up new ones.Matthew Somerville2020-04-02-2/+20
|
* Parallelize fetching updates.Matthew Somerville2020-04-02-0/+9
| | | | Allow a configurable number of bodies to fetch updates simultaneously.
* Combine and improve fetch-comments/reports scriptsMatthew Somerville2020-04-02-31/+50
| | | | | Make them take start/end hour arguments, cope if only one given, optional body, and combine them together in one `fetch` script.
* [Open311] Factor together editor, note, and whenedited fields when updating ↵Dave Arter2020-01-24-22/+16
| | | | contacts
* [Open311] Don’t use full path to open311-populate-service-list in editor ↵Dave Arter2020-01-24-6/+7
| | | | column
* [open311] always update problem state if no commentsStruan Donald2020-01-20-6/+8
| | | | | | | To avoid issues with autogenerated updates in the bodies back-end happening quicker that the back-end returns the external_id to us ignore the check for comment being earlier than the last update if it's the first comment.
* Scrub admin description fields.Matthew Somerville2020-01-09-1/+7
|
* Warnfix for missing order in extra fields.Matthew Somerville2019-12-02-1/+1
|
* [Open311] protected is true/false string, not boolean.Matthew Somerville2019-10-09-3/+3
|
* Stop empty Open311 group causing duplicate historyMatthew Somerville2019-10-03-18/+16
| | | | | | | | It arises that <group></group> now passes to the code as a one-element list containing undef, which compared differently to what was stored - the code assumed lists would contain things. A new changelog entry was created each time. Hopefully resolve this once and for all by treating groups more formally and making sure we always have lists to compare.
* [IsleOfWight] do not send comment recording triage actionStruan Donald2019-09-27-4/+6
| | | | | This is only used for audit purposes on FixMyStreet and not required in Confirm.
* [Open311] Spot <groups> parameter rather than CSV.Matthew Somerville2019-09-20-12/+4
|
* [Open311] Add 'protected' category extra flag.Struan Donald2019-08-23-3/+21
| | | | | If an extra field on a category has a protected flag then do not overwrite or remove it when populating categories.
* [open311] unset the external_status_code if blankStruan Donald2019-07-31-0/+2
| | | | | | If an update with a blank external_status_code is fetched then unset it otherwise we will always a detect a change in the external_status_code which might mean phantom updates.
* [Open311] Refactor GetServiceRequestUpdates a bit.Matthew Somerville2019-07-15-129/+151
|
* [Open311] Remove update problem matching warning.Matthew Somerville2019-06-26-6/+0
| | | | Lots of false positives from other bodies too.
* [Open311] Allow description in email template.Matthew Somerville2019-06-20-4/+13
| | | | | By specifying a placeholder in an email template, it can be replaced by the description returned from the Open311 server.
* allow multiple groups in open311 services group tagStruan Donald2019-06-17-1/+28
| | | | | | | Only parses as multiple groups if cobrand is configured to handle them to stop issues with existing groups with commas in them. Groups are parsed as CSV so as to allow commas in group names.
* configure category_groups via COBRAND_FEATURESStruan Donald2019-06-17-1/+1
| | | | | Rather than have a method in the Cobrand module use the COBRAND_FEATURES section of the config file.
* [Hounslow] Don't fetch non_public reports at all from Open311Dave Arter2019-06-04-1/+4
|
* [Open311] Always mark fetched reports non_public for non_public contactsDave Arter2019-06-04-0/+1
| | | | | | 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.
* Mark Open311 contacts non_public according to service keywordsDave Arter2019-06-04-0/+17
| | | | | | | | | This allows the Open311 endpoint to include ‘private’ in the ‘keywords’ field of a service definition in order for it to be marked as non_public on FMS. NB existing categories may be updated to become non_public, but non_public categories will never have their non_public flag unset by PopulateServiceList. This is so any existing Open311 categories on FMS don’t suddenly become public.
* [Bexley] Close updates if Open311 marks report closed/fixed.Matthew Somerville2019-05-28-0/+5
|
* [Open311] Only strip colons at end of description.Matthew Somerville2019-05-28-1/+1
|
* Fix some incorrect timezone code.Matthew Somerville2019-05-02-8/+10
| | | | | | | | | 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.
* [Open311] handle bad FixMyStreet id in updatesStruan Donald2019-04-09-0/+5
| | | | | If an update has a fixmystreet id in it check that it looks like an integer and if not issue a warning and skip the update.
* Factor to common FixMyStreet::MapIt call.Matthew Somerville2019-04-04-6/+2
|
* Merge branch 'open311-hook-update-params'Matthew Somerville2019-03-12-0/+1
|\
| * [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-0/+1
| | | | | | | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
* | [open311] optionally use fixmystreet_id to match update to problemStruan Donald2019-03-12-2/+12
| | | | | | | | | | | | | | | | | | | | | | If an update has a fixmystreet_id field then use the contents of that in preference to the external_id field to match an update to a problem. This handles the case where a report in a third party system passes through different types (eg inspection and defect), resulting in the external id changing. In this case it is sometimes possible to include the fixmystreet id in each type and hence use that to match things up at the fixmystreet side.
* | [Open311] Proper bodies check for sending updates.Matthew Somerville2019-03-12-3/+1
|/ | | | | Otherwise running on a site where one body ID is a substring of another, comments can get processed for the wrong body.
* [Open311] Refactor cobrand specific code.Matthew Somerville2019-01-23-54/+4
|
* [Bromley] Lights code is now SLRS.Matthew Somerville2019-01-11-1/+1
|
* [Open311] run cobrand description filtering if availableStruan Donald2019-01-04-0/+4
| | | | | When fetching reports run them through the cobrands filter_report_description method if it exists.
* [Open311] handle non_public field when fetching requestsStruan Donald2019-01-04-0/+3
| | | | | | | | | If there is <non_public>1</non_public> tag in an incoming service request then set the created report to non_public.
* [Open311] warn on staging if fail to match updatesStruan Donald2018-12-20-0/+4
| | | | | If we fail to match an update to a problem on the staging server then print a warning so we can diagnose issues.