aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin.t
Commit message (Collapse)AuthorAgeLines
* Fix admin index body dropdown redirect.Matthew Somerville2019-02-26-14/+29
|
* Add get_cobrand_logged to Comment.Matthew Somerville2018-10-09-1/+1
|
* Split up admin test file into many separate files.Matthew Somerville2018-01-31-1694/+2
|
* Admin ability to hide a user's reports/updates.Matthew Somerville2018-01-31-1/+14
|
* Admin ability to make user anonymous.Matthew Somerville2018-01-31-0/+12
|
* Fix spelling of administrator.Matthew Somerville2017-12-15-1/+1
|
* Only allow one auto-response template per category/state.Dave Arter2017-12-04-5/+107
|
* Refactor stats pages to their own controller.Matthew Somerville2017-11-29-0/+6
|
* allow admin to unban a userStruan Donald2017-11-07-5/+37
| | | | | | | Add an unban button to the user edit page when a user is in the abuse table. Fixes #1881
* do not override template when displaying body contacts as textStruan Donald2017-11-07-0/+1
| | | | | | | move setting the body template to before `fetch_contacts` so it doesn't override setting the text only email address template. Fixes #1895
* Fix issue editing user previously lacking a name.Matthew Somerville2017-11-07-1/+5
| | | | | The check that a name was entered was testing the user's current name, not the name entered in the form.
* log all state changes in admin as commentsStruan Donald2017-10-16-1/+83
| | | | | | | | | | | | Create a comment on a problem when the admin is used to change the state of the problem. If only the state is changed then create a comment with blank text. If the category and state are changing then include details of the category change in the comment. Not all the state changes are displayed at the template level by default. Fixes #1846
* Update admin interface for 'phone' users.Matthew Somerville2017-09-30-49/+129
| | | | | | | This includes search/flagging users, editing user on the report and update edit pages, and user adding/editing itself. Add some more tests for user adding/editing.
* edit and display default response priority in adminStruan Donald2017-09-13-0/+20
|
* enable body users to report problems anonymouslyStruan Donald2017-08-16-0/+1
| | | | | | uses the body user but flags the report as anonymous Fixes #fixmystreetforcouncils/207
* Body/category translation admin interface.Struan Donald2017-08-10-1/+1
|
* Add inactive state to categories.Matthew Somerville2017-07-14-10/+8
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* Run each test file in a transaction.Matthew Somerville2017-06-20-27/+2
| | | | This means that the tests can be run in parallel.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-3/+3
| | | | | | | | | | | | Historically in UK cobrands, bodies have had IDs the same as the MapIt area ID they cover. This can be confusing (if you are setting up a dev environment, say) and should not be necessary. This commit removes the requirement entirely, by switching any ID checks to either the name of the body, or the actual area it covers. One note: the body name in the test has to match so that we do not get two bodies both covering 2237 created. This will not be necessary when the tests are compartmentalized in the next commit.
* Auto-add strict/warnings/Test::More with TestMech.Matthew Somerville2017-05-31-4/+0
|
* Allow comma-separated contact emails in the adminDave Arter2017-04-10-2/+13
| | | | | | | The report-sending code has allowed multiple emails for a long time, but the admin wouldn't allow you to enter multiple emails for each contact. Fixes mysociety/FixMyStreet-Commercial#835
* Make sure all MapIt tests can run offline.Matthew Somerville2017-03-23-2/+1
|
* Always include MapIt mock handler in all tests.Matthew Somerville2017-03-23-3/+0
|
* Add permision to view contributor detailspezholio2017-01-17-0/+1
|
* Error if logged-in user visits admin without permission.Matthew Somerville2016-10-26-12/+6
| | | | | This is less confusing than redirecting to /auth and then to /my (as they're logged in). Fixes #1566.
* Resend report if changing category changes body.Dave Arter2016-10-26-10/+44
|
* Add ‘description’ field to ResponsePriority modelDave Arter2016-10-19-0/+2
| | | | Used internally to provide more details about when a priority is applicable.
* Add ‘trusted’ flag allowing users to make reports directlyDave Arter2016-09-20-0/+1
| | | | | When a trusted user makes a report in a category that requires inspection, it'll be sent immediately (i.e. without being inspected first).
* Add new category_edit restriction for viewing body admin.Matthew Somerville2016-09-09-120/+27
|
* Refactor problem response priority into its own modelDave Arter2016-09-09-0/+73
| | | | | | | 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
* Extend response templates to work across all cobrandsDave Arter2016-09-08-4/+40
| | | | | | | | | | | 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
* Allow user to have an area assigned in adminDave Arter2016-08-22-239/+253
|
* Allow user permissions to be granted/revoked in adminDave Arter2016-08-17-45/+122
|
* Restrict user editing in adminDave Arter2016-08-17-0/+24
| | | | | | | | The 'user_edit' permission is required to edit users. The admin pages on UK council cobrands only allow editing of users whose from_body is the same as the logged-in user, or who have sent reports or updates to the council.
* Require 'report_edit' permission for editing reports in adminDave Arter2016-08-17-0/+47
|
* Use improved TestMech::create_user_ok instead of User::find_or_createDave Arter2016-07-19-26/+10
| | | | | This improves create_user_ok to work more like create_body_ok where extra params can be passed in and set on the model.
* [UK Councils] Council users can only see their own council's adminDave Arter2016-07-19-9/+43
|
* Use normal user authentication to control access to /adminMatthew Somerville2016-07-19-0/+80
| | | | | | | | | - 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
* Allow editing of category on admin report edit.Matthew Somerville2016-07-15-1/+2
| | | | This also updates the body column to match the category.
* Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-1/+1
| | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* Add external field editing to admin report edit.Matthew Somerville2016-06-29-20/+12
| | | | Show bodies for which details are missing, and any send method used.
* Allow admin to edit user's phone number.Matthew Somerville2016-06-22-0/+5
|
* Update tests for cobrand/template changes.Matthew Somerville2016-04-20-5/+5
|
* Default new category creation to confirmed.Matthew Somerville2016-03-29-0/+1
| | | | Fixes #1266.
* Exclude update alerts from summary alert counts.Matthew Somerville2016-02-09-2/+2
| | | | | | 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.
* Handle multiple photo rotation/removal in admin.Matthew Somerville2016-01-08-1/+2
|
* Secret always created as part of test run setup.Matthew Somerville2015-12-15-8/+0
|
* Move main bin scripts to separate packages.Matthew Somerville2015-12-02-3/+1
| | | | Maintain old location wrappers.
* Remove ms_current_timestamp() override function.Matthew Somerville2015-08-13-1/+1
| | | | | This override is not used anywhere, it dates from a very old long-gone test script, and causes issues with database query planning.
* Mark users who have moderate permission.Matthew Somerville2015-07-30-1/+1
|