aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB
Commit message (Collapse)AuthorAgeLines
...
* Merge remote-tracking branch ↵Matthew Somerville2016-09-20-1/+1
|\ | | | | | | 'origin/issues/forcouncils/89-tidy-report-admin-actions'
| * Organize report admin actions into single control.Zarino Zappia2016-09-20-1/+1
| | | | | | | | | | | | | | | | As part of this, rename "planned reports" to "shortlist". The `.segmented-control` component now supports basic usage (as in the admin report actions menu bar) and usage with hidden radio inputs and labels (as on the report questionnaire page).
* | Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-0/+16
| | | | | | | | | | When a trusted user makes a report in a category that requires inspection, it'll be sent immediately (i.e. without being inspected first).
* | Remove from_body requirement from User::has_permission_toDave Arter2016-09-20-7/+5
|/
* Merge branch 'issues/forcouncils/72-show-extra-data'Matthew Somerville2016-09-09-1/+9
|\
| * Improve display of category extra data in admin.Matthew Somerville2016-09-09-1/+9
| | | | | | | | Allow get_extra_metadata to return all the data with no argument.
* | Add manage screen for editing priority/category.Matthew Somerville2016-09-09-2/+18
|/ | | | | | | This is a cut-down version of the full inspect screen. We truncate the co-ordinates just in case (they should be anyway but e.g. the test report isn't).
* Refactor problem response priority into its own modelDave Arter2016-09-09-56/+206
| | | | | | | This moves the response priority values from a cobrand-specific method to a full DB model, and includes management screens in the admin for administering them. For mysociety/fixmystreetforcouncils#66
* [Oxfordshire] Display confirmed reports as received by the CouncilDave Arter2016-09-08-0/+7
| | | | | | | | This introduces a new `is_council_with_case_management` flag for Cobrands, that, when active, considers any report that's been confirmed as having been received by the Council in question. See mysociety/fixmystreetforcouncils#65
* Simplify some permissions logic with extra helper methodDave Arter2016-09-08-0/+23
|
* Extend response templates to work across all cobrandsDave Arter2016-09-08-4/+67
| | | | | | | | | | | This builds on the response templates in the Zürich cobrand: - Allow response templates to be assigned to categories - Also adds a auto_response flag, which will be used to automatically create updates when reports are made. - Include response templates select box on update form For mysociety/fixmystreetforcouncils#31
* Automatically spot Open311 co-ord/ID attributes.Matthew Somerville2016-08-24-0/+11
|
* Pass back Open311 request through send_reports for tests.Matthew Somerville2016-08-24-1/+1
|
* Allow user to have an area assigned in adminDave Arter2016-08-22-2/+4
|
* Add user planned reports.Matthew Somerville2016-08-22-11/+111
| | | | | | A user with the appropriate permission can add/remove reports from their list of planned reports using a button on a report page. The list can be viewed at /my/planned.
* Fix a crash on /admin/timelineDave Arter2016-08-15-2/+2
| | | | | The 'created' and 'state' column names are shared between the 'problem' and 'comment' tables, and this was causing ambiguous column references in the SQL.
* Fix invalid SQL being generated by moderation lookupDave Arter2016-08-15-2/+2
|
* Merge branch 'issues/forcouncils/10-report-as-dropdown'Matthew Somerville2016-08-10-0/+8
|\
| * Feature to create report as body/other user.Zarino Zappia2016-08-10-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | This allows users who have the correct permissions to add reports on behalf of the body or another user. We enable editing of the email box by default, so that if JavaScript isn't available, someone can still change the email for the 'another user' option. For mysociety/fixmystreetforcouncils#10 and mysociety/fixmystreetforcouncils#11
* | Don't error if static map tile fetch fails.Matthew Somerville2016-08-10-3/+14
|/ | | | Also don't fetch tiles if running tests.
* Add static map output view for a report.Matthew Somerville2016-08-01-2/+77
|
* Move photoset stuff to new Role.Matthew Somerville2016-08-01-42/+4
|
* Refactor map pin/feature functions.Matthew Somerville2016-07-21-0/+13
|
* Use normal user authentication to control access to /adminMatthew Somerville2016-07-19-6/+10
| | | | | | | | | - Adds is_superuser flag to User - Logged-in user must be a superuser or have from_body set in order to access anything within /admin - has_permission_to on a superuser will always return true - Only superusers can create/grant superusers - New `createsuperuser` command for creating superusers
* Include link back to originating cobrand on fms.com reportsDave Arter2016-07-08-1/+6
| | | | | | | | | When viewing a report on FMS.com whose recipient council has a FMS cobrand, turns the council name into a link to view the same report on that council's cobranded site. Includes methods cribbed from Hakim's Open311 refactor branch from commit 47daa02420a4f5a4264c31efcf2a2e8611c2f23e.
* Display link to FMS for Councils on reportsDave Arter2016-07-08-0/+20
| | | | | | | | | When viewing on FMS.com a report made via a council cobrand, this adds a link to the FMS for Councils page for more info. This works by breaking out the report meta line ('Reported in the Street lighting category by Joe Bloggs at 09:51, Tuesday 1 March 2016') into its own template which can be overridden for the fixmystreet.com cobrand.
* [Zurich] Use new LV95/CH1903+ geocoder and base map tilesDave Arter2016-07-07-1/+1
| | | | | | | | | | | - Use new `getLocation95` method for geocoding addresses - Replace Coordinates::CH1903 with Coordinates::CH1903Plus - Refactor Map::Zurich to use WMTSBase instead of duplicating code - Slightly refactor map templates to make using custom WMTS tiles easier - Use correct sizes for marker pins on maps Closes mysociety/FixMyStreet-Commercial#769. Closes mysociety/FixMyStreet-Commercial#768.
* Add change_category_text cobrand hook.Matthew Somerville2016-07-06-26/+19
|
* Tidy up some UK specific easting/northing handlingMatthew Somerville2016-06-22-5/+8
|
* Allow users to update their email address.Matthew Somerville2016-06-20-3/+24
|
* Merge branch '694-summary-string-template-tidy'Matthew Somerville2016-05-25-30/+0
|\
| * Move processed_summary_string function to templateMatthew Somerville2016-05-24-30/+0
| | | | | | | | Fixes #694.
* | Warnfix if belongs_to_body called with no string.Matthew Somerville2016-05-24-2/+3
|/
* Remove some unused cobrands.Matthew Somerville2016-04-20-51/+40
|
* Add PNG image support.Matthew Somerville2016-04-08-8/+8
| | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
* Show right body user form value for fixed reports.Matthew Somerville2016-03-31-2/+15
| | | | | The form element contains 'fixed', so we need to strip the user/council part of the actual state. Fixes #1369.
* [Angus] SOAP interface/send method for Angus CRMDave Arter2016-03-29-1/+1
|
* Remember user's last anonymous state.Matthew Somerville2016-03-04-0/+10
| | | | | If a user is logged in, use their last report/update to set the default anonymity state.
* Only load images from disk when needed.Matthew Somerville2016-02-23-2/+2
| | | | Fixes #1337.
* Helper function for fetching database secret.Matthew Somerville2016-02-19-0/+12
|
* Exclude update alerts from summary alert counts.Matthew Somerville2016-02-09-0/+8
| | | | | | There might be the odd update alert we are interested in (those not auto-signed up for as part of report or update creation), but they will be rare.
* Prerequisites (new modules, db, config).Matthew Somerville2016-01-22-2/+8
|
* Factor multiple photo details into nicer function.Matthew Somerville2016-01-12-23/+56
| | | | | Remove get_photo_params, which only looked at the first photo, make explicit when we're doing that using `.first`.
* Remove most passing of Catalyst to PhotoSet.Matthew Somerville2016-01-12-6/+4
|
* [fixmystreet.com] Don't show app step if used app.Matthew Somerville2016-01-06-1/+2
| | | | Fixes #1305.
* Remove risk of infinite loop in PhotoSet.Matthew Somerville2015-12-16-1/+1
| | | | | | Use a separate attribute for data direct from a database row when creating a PhotoSet, so that data will always contain one or more photo IDs.
* Fix cobrand restriction of My/Nearby.Matthew Somerville2015-12-15-12/+15
| | | | | | | | | | | | 5c79337 simplified a bit too far, as after then a particular cobrand could in Nearby and My only filter reports to a particular body, not any other criteria. To fix this, introduce more generic functions in the default cobrand to allow more flexibility. Make sure a few tests delete their bodies fully so that new tests pass when run as part of the suite. Fixes #1289.
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-688/+14
| | | | Maintain old location wrappers.
* Remove many uses of mySociety::Config.Matthew Somerville2015-12-02-7/+7
|
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-21/+6
| | | | And create default cobrand class without all of Moose.