Commit message (Collapse) | Author | Age | Lines | ||
---|---|---|---|---|---|
... | |||||
* | Prevent race condition in root.t test. | Matthew Somerville | 2017-09-06 | -1/+1 | |
| | | | | | | This test assumed /reports would load, which it wouldn't if run in parallel and the data hadn't been generated by reports.t. Test a different page instead. | ||||
* | include easting/northing in dashboard CSV export | Struan Donald | 2017-09-04 | -1/+6 | |
| | | | | Fixes mysociety/fixmystreetforcouncils#221 | ||||
* | include ward in dashboard csv export | Struan Donald | 2017-09-04 | -0/+26 | |
| | | | | | | | Adds a Ward column to the council dashboard CSV export with the name of the ward. Fixes mysociety/fixmystreetforcouncils#220 | ||||
* | Superusers only have permissions available on the current cobrand | Dave Arter | 2017-09-01 | -0/+3 | |
| | |||||
* | Merge branch 'move-report-states-to-database' | Matthew Somerville | 2017-08-31 | -91/+155 | |
|\ | |||||
| * | Update form asks for reopen of all closed states. | Matthew Somerville | 2017-08-31 | -24/+24 | |
| | | |||||
| * | Admin interface for editing report states. | Matthew Somerville | 2017-08-31 | -0/+24 | |
| | | |||||
| * | Remove hardcoded states from templates. | Matthew Somerville | 2017-08-31 | -65/+43 | |
| | | | | | | | | | | | | | | | | | | | | | | State display names are now got from the database wherever they are displayed, including admin dropdowns, list filters, and update meta statements. This also covers the open/closed/fixed 'groups'. This also fixes a bug whereby if e.g. an update has problem_state investigating, the next update has no problem_state, and the last update has investigating again, it was previously showing a state change to investigating on that third update. | ||||
| * | Remove hardcoded states from Problem model. | Matthew Somerville | 2017-08-31 | -2/+64 | |
| | | | | | | | | | | We keep the internal states hardcoded, plus the core open (confirmed) and closed ones, but the remainder are moved to the database. | ||||
* | | Add Extra->get_extra_field_value | Dave Arter | 2017-08-31 | -0/+42 | |
| | | | | | | | | Allows easy display of Open311 field values for problems in templates | ||||
* | | Add SIGNUPS_DISABLED config flag | Dave Arter | 2017-08-31 | -2/+91 | |
| | | |||||
* | | Add LOGIN_REQUIRED config key | Dave Arter | 2017-08-31 | -0/+76 | |
| | | | | | | | | If set to 1, this restricts all pages on the site to logged-in users. | ||||
* | | Merge branch 'move-report-states-to-database-part-1' | Matthew Somerville | 2017-08-29 | -20/+4 | |
|\| | |||||
| * | Make sure gettext domain specified in all tests. | Matthew Somerville | 2017-08-25 | -20/+0 | |
| | | |||||
| * | Stop admin_reportextrafields.t info messages. | Matthew Somerville | 2017-08-25 | -0/+4 | |
| | | |||||
* | | Redirect to original URL after inspecting | Dave Arter | 2017-08-24 | -0/+36 | |
|/ | | | | For mysociety/fixmystreetforcouncils#204 | ||||
* | Fix missing URLs in alert emails | Dave Arter | 2017-08-22 | -1/+80 | |
| | | | | | | | | | If a staff user changed a problem’s state and an empty update was generated, it was possible for alert emails to be sent with missing URLs because the empty string in the update text was falsy and Alert.pm took the wrong path. This fixes the problem by changing the test to defined() and includes a regression test. | ||||
* | [Bristol] Fix 500 error on /report/new | Dave Arter | 2017-08-21 | -0/+45 | |
| | |||||
* | Merge branch 'speed-up-reports' | Matthew Somerville | 2017-08-18 | -0/+5 | |
|\ | |||||
| * | Faster /reports for inspectors, reduce db queries. | Dave Arter | 2017-08-18 | -0/+5 | |
| | | |||||
* | | [Zurich] Bring all reports in line with upstream. | Matthew Somerville | 2017-08-18 | -6/+10 | |
|/ | | | | | Update the map/list if the map is zoomed/panned, and make sure the updated HTML list is returned. | ||||
* | Merge branch 'issues/forcouncils/201-show-all-report-updates' | Matthew Somerville | 2017-08-17 | -1/+57 | |
|\ | |||||
| * | show all report updates, even if no public text | Struan Donald | 2017-08-17 | -1/+57 | |
| | | | | | | | | | | | | | | | | Create a comment entry for all updates to reports regardless of whether there is any text part. Also adds an entry to extra if a defect was raised and includes that in the update status line. Fixes mysociety/fixmystreetforcouncils#201 | ||||
* | | Merge branch 'issues/forcouncils/187-all-reports-filter-by-substates' | Matthew Somerville | 2017-08-17 | -0/+79 | |
|\ \ | |||||
| * | | allow body users to filter on all problem categories | Struan Donald | 2017-08-17 | -0/+79 | |
| |/ | | | | | | | | | | | Not just New/Fixed/Closed but the Investigating etc Fixes #1790 | ||||
* / | tests for the defect types admin interface | Struan Donald | 2017-08-17 | -0/+193 | |
|/ | |||||
* | Add site-wide extra fields for reports, and admin UI to manage | Dave Arter | 2017-08-17 | -0/+312 | |
| | | | | | | | - Also provides an editor for the extra Open311 fields on contacts. - Adds .btn--small class for small buttons Fixes #1743. | ||||
* | Merge branch 'duplicate-reverse' | Matthew Somerville | 2017-08-17 | -0/+9 | |
|\ | |||||
| * | Store duplicate reverse lookups upon dupe setting. | Matthew Somerville | 2017-08-17 | -0/+9 | |
| | | | | | | | | | | | | This avoids the need to search the whole table to find a report's duplicates. And is easier than constructing an index or upgrading PostgreSQL. | ||||
* | | enable body users to add problem updates anonymously | Struan Donald | 2017-08-16 | -0/+12 | |
| | | |||||
* | | enable body users to report problems anonymously | Struan Donald | 2017-08-16 | -0/+17 | |
|/ | | | | | | uses the body user but flags the report as anonymous Fixes #fixmystreetforcouncils/207 | ||||
* | Ignore translation if fewer than two languages. | Matthew Somerville | 2017-08-15 | -15/+21 | |
| | |||||
* | Body/category translation admin interface. | Struan Donald | 2017-08-10 | -1/+192 | |
| | |||||
* | fetch and create translation methods for translatable | Struan Donald | 2017-08-10 | -0/+10 | |
| | | | | | | | | | | | | Add a `translation_for` method and an `add_transation` method to Translatable to help hide the details when editing and listing translations. `translation_for` returns all translations if only passed a column or a single translation if passed with a column and a language. `add_translation` will add, or update, a translation if passed in the column, language and string. | ||||
* | Set up translatable category columns. | Matthew Somerville | 2017-08-10 | -9/+39 | |
| | | | | | | As category is used both for display and as a link between Problem and Contact tables, add `category_display` for use whenever a category is displayed. | ||||
* | Set up translatable body name. | Matthew Somerville | 2017-08-09 | -0/+41 | |
| | |||||
* | Move FixMyStreet::DB to FixMyStreet::DB::Schema. | Matthew Somerville | 2017-08-09 | -3/+3 | |
| | | | | Store a schema object on FixMyStreet::DB instead. | ||||
* | Don't put filter_category in URL if no categories. | Matthew Somerville | 2017-08-05 | -1/+6 | |
| | |||||
* | Merge remote-tracking branch 'origin/issues/forcouncils/213-rdi-tweek' | Matthew Somerville | 2017-08-02 | -4/+19 | |
|\ | |||||
| * | [Oxfordshire] Put I when single char activity code | Matthew Somerville | 2017-08-02 | -4/+19 | |
| | | | | | | | | | | The "M" line needs an "I" after the activity code if the activity code is only one character. | ||||
* | | [Oxfordshire] Open311 update, no open state switch | Matthew Somerville | 2017-08-02 | -67/+105 | |
|/ | |||||
* | Option to redirect to custom URL from Contact form | Zarino Zappia | 2017-07-28 | -0/+35 | |
| | | | | | | | | If a `success_url` parameter is provided along with the contact form fields, the user will be redirected to that URL upon successful form submission. We use it for the first time on the (UK) FixMyStreet Pro marketing page. | ||||
* | do not replace deleted text with [...] when moderating | Struan Donald | 2017-07-27 | -6/+6 | |
| | | | | | | | | Replacing deleted text with [...] when moderating reports and comments leads to very odd looking reports when correcting minor typos so just leave the text as deleted. Fixes #1774 | ||||
* | Resend report if changing to category with different send_method | Dave Arter | 2017-07-26 | -2/+27 | |
| | | | | | | | If a report’s category is changed to one with a different send_method to the original category, the report needs to be resent. Fixes mysociety/fixmystreetforcouncils#209 | ||||
* | [Oxfordshire] RDI file should show all inspections as happening on the same date | Dave Arter | 2017-07-24 | -2/+2 | |
| | | | | Fixes mysociety/fixmystreetforcouncils#203 | ||||
* | Fix update-all-reports when database empty. | Matthew Somerville | 2017-07-18 | -1/+4 | |
| | |||||
* | Log error if bad SMTP_TYPE config given. | Matthew Somerville | 2017-07-18 | -0/+36 | |
| | | | | Ignore case of config variable. | ||||
* | Merge branch 'issues/forcouncils/192-unused-categories' | Matthew Somerville | 2017-07-14 | -48/+55 | |
|\ | |||||
| * | Only use active categories for making new reports. | Matthew Somerville | 2017-07-14 | -0/+26 | |
| | | | | | | | | | | Inactive ones can still be used for e.g. list filtering, but not when making a new report. | ||||
| * | Add inactive state to categories. | Matthew Somerville | 2017-07-14 | -48/+29 | |
| | | | | | | | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive. |