aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/DB/Factories.pm
Commit message (Collapse)AuthorAgeLines
* Make sure fixture clears out cached photo files.Matthew Somerville2018-04-04-0/+2
|
* [Zurich] Add fixture script.Matthew Somerville2018-03-06-0/+133
| | | | Remove old unused setup-contacts code, superceded by fixtures.
* Add some example fixture images.Matthew Somerville2018-01-11-1/+2
|
* [fixmystreet.com] Improve fixture descriptions.Matthew Somerville2017-12-07-1/+1
|
* Add inactive state to categories.Matthew Somerville2017-07-14-2/+1
| | | | | A new 'state' column replaces confirmed and deleted, allowing categories to be unconfirmed, confirmed, deleted or inactive.
* [fixmystreet.com] Template/priorities in fixture.Matthew Somerville2017-06-20-0/+25
| | | | Also include areas in auto-generated problems.
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-6/+0
| | | | | | | | | | | | 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.
* [fixmystreet.com] Improve fixture loading script.Matthew Somerville2017-06-20-0/+155
Given a MapIt area ID, the script will create a body and categories, users with different levels of permissions, and some random problems and updates. It can optionally empty out the database first.