aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
Commit message (Collapse)AuthorAgeLines
* Rename DB::ReportExtraFields to ReportExtraField.Matthew Somerville2019-05-02-4/+6
| | | | It was not being caught by rerun_dbic_loader.pl otherwise.
* Refactor datetime inflation.Matthew Somerville2019-05-02-220/+32
|
* Fix some incorrect timezone code.Matthew Somerville2019-05-02-1/+1
| | | | | | | | | 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.
* Stop warning in contact test.Matthew Somerville2019-05-02-0/+2
|
* [Open311] Ensures non_public/hidden reports aren’t visible at /open311Dave Arter2019-04-23-1/+40
|
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-1/+27
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* Merge branch '2435-admin-anonymous-report'Matthew Somerville2019-04-05-6/+11
|\
| * Fix superusers creating anonymous reports.Matthew Somerville2019-04-05-6/+11
| |
* | [UK] Deal with 2019 local government changes.Matthew Somerville2019-04-04-1/+22
|/
* [UK] Council reference in .com confirm sent email.Matthew Somerville2019-03-27-3/+3
|
* Merge branch 'open311-hook-update-params'Matthew Somerville2019-03-12-1/+0
|\
| * [Open311] Use cobrand hook for extra update paramsMatthew Somerville2019-03-08-1/+0
| | | | | | | | | | The test has to now create a new comment object each time as `get_cobrand_logged` is cached on the object.
* | Check better if extra question has values.Matthew Somerville2019-03-12-1/+2
|/ | | | | If an Open311 server returned an empty set of values, it was possible for this template to then display a set of empty dropdown options.
* Merge branch 'report-links-same-domain'Matthew Somerville2019-03-05-2/+2
|\
| * Use relative report links where possible.Matthew Somerville2019-03-05-2/+2
| | | | | | | | | | | | | | | | | | | | On some UK council cobrands, some reports listed might not have been sent to that council, so links to those must go to the national site. However, using absolute URLs for all these reports means that sometimes you change domain when you don't need to (eg. if you’re on osm.fixmystreet.com or an aliased version of the site), which can cause confusion. State when we’re happy to use a relative link (ie. web-facing report links, not emails, or share links) and do that when we can.
* | Default to unchecked for default_show_name.Matthew Somerville2019-03-04-4/+4
|/
* Merge branch '2406-fix-admin-body-dropdown'Matthew Somerville2019-02-28-14/+29
|\
| * Fix admin index body dropdown redirect.Matthew Somerville2019-02-26-14/+29
| |
* | [Oxfordshire] Limit appears to be lower than 30.Matthew Somerville2019-02-28-1/+1
|/
* Merge remote-tracking branch 'origin/issues/commercial/1229-duplicate-reporting'Matthew Somerville2019-02-25-0/+6
|\
| * Internal JSON endpoint to get reports near a pointMatthew Somerville2019-02-25-0/+6
| | | | | | | | Unused right now, but will be soon, for the duplicate suggestion UI.
* | Factor out test CSV content function.Matthew Somerville2019-02-25-12/+2
|/
* Refactor admin body/user functions to own files.Matthew Somerville2019-02-22-24/+24
|
* Don't ask for email on alert signup if logged in.Matthew Somerville2019-02-21-174/+21
| | | | | | | The “Get updates” flow on a report page, if logged in, was showing an input label but no input field (because one is not needed), but then on submission asking for your email address. Add missing name on submit button to fix this.
* Allow user to be associated with multiple areas.Matthew Somerville2019-02-14-10/+16
| | | | | | Update database to store an array of IDs rather than only one; consequential changes to the admin and the dashboard to allow selection.
* [fixmystreet.com] Improve two-tier unresponsive.Matthew Somerville2019-02-11-3/+3
| | | | | | | Similarly to 1f69e28c, we were previously only checking the first matching entry, which led to confusing behaviour in places. Include consequential amendments for e.g. one body being unresponsive, the other not.
* [Oxfordshire] Limit appears to be lower than 70.Matthew Somerville2019-02-08-1/+1
|
* Improve use of OL ArgParser/missing zoom in URL.Matthew Somerville2019-02-04-33/+3
| | | | | | Remove the server-side zoom-in-url fix, instead use an ArgParser subclass to default to the provided data if nothing in URL. Then we can switch to using short lat/lon in geocoder URLs.
* Add CSRF and time to contact form.Matthew Somerville2019-02-01-0/+3
|
* Spot moderation conflicts.Matthew Somerville2019-01-25-0/+14
| | | | | If someone tries to moderate after someone else has, re-show the form and an error.
* Merge branch 'allow-state-moderation'Matthew Somerville2019-01-16-0/+24
|\
| * Allow state editing via moderation.Matthew Somerville2019-01-16-0/+25
| | | | | | | | | | If a state is passed in (on a cobrand), update problem state and add a comment to record this (as state changes are updates not moderations).
* | Merge branch 'moderation-in-front-end-updates'Matthew Somerville2019-01-16-2/+7
|\ \
| * | Include moderation history in report updates.Matthew Somerville2019-01-16-2/+7
| |/ | | | | | | | | | | If the user has moderating permission, or a cobrand allows the viewing of moderation history, show moderation history within the updates on a report page.
* / [Oxfordshire] length checking for names, emails and phone NosStruan Donald2019-01-16-0/+20
|/ | | | | | | Add in validation to check names, email and phone numbers don't exceed maximum lengths permitted by HIAMS. Fixes mysociety/fixmystreet-commercial#1244
* Allow override search to /report/new => /around.Matthew Somerville2019-01-10-3/+8
| | | | | | This is so you can have a search box on an around page (wrapped in a form going to /report/new) to start a new search, ignoring the lat/lon that will also be submitted.
* add private only report filterStruan Donald2019-01-04-4/+76
|
* Show all questionnaire responses lacking updates.Matthew Somerville2018-12-20-1/+17
| | | | | | Since questionnaire responses were recorded on email link click, we should have been showing those that reopened or fixed reports, not just steady-state "Still open" ones.
* [Buckinghamshire] Get topic when reporting abuse.Matthew Somerville2018-12-19-74/+62
|
* Make who question more prominent.Matthew Somerville2018-12-19-3/+5
|
* Modernise report "status" bannerZarino Zappia2018-12-13-1/+6
| | | | | | | | | | | | | * Simplify markup required for the status banner. * Simplify styles - the banner is now identical on all screen sizes. * Move the banner from `report/display.html` into `report/_main.html` so that it can appear after `.problem-back` in the source order. * Use real pin icon instead of `pin-flat-white-small.png`. * Set a default `$col_fixed_label` colour in `_base.scss`, so cobrands don’t have to define it themselves if they’re happy with green. * Introduce `$col_fixed_label_light`, with a sensible default for all cobrands, even ones that have a custom `$col_fixed_label`. * Remove `$col_fixed_label_dark` – no longer needed.
* Merge branch '642-new-report-flow-changes'Matthew Somerville2018-12-05-56/+4
|\
| * Update sign in flow for new reports/updates.Matthew Somerville2018-12-05-1/+1
| | | | | | | | Co-authored-by: Zarino Zappia <zarino@mysociety.org>
| * Do not show second email form if SMS_AUTHENTICATION off.Matthew Somerville2018-12-04-23/+1
| |
| * Remove “Keep me signed in” box.Matthew Somerville2018-12-04-32/+2
| |
* | Fix moderation without JavaScript.Matthew Somerville2018-12-04-0/+12
|/
* Show moderation history in report/update admin.Matthew Somerville2018-11-26-0/+3
|
* Store all moderation change history in database.Matthew Somerville2018-11-26-0/+5
| | | | | Currently keeping the same front end functionality of only reverting to the original.
* Improve update display on admin report edit page.Matthew Somerville2018-11-26-1/+1
|
* [UK] server side cobrand specific validationStruan Donald2018-11-26-1/+136
| | | | | | `report_check_for_errors` now fetches the cobrand for the current report and, if present, runs `report_validation` method from cobrand over the report.