aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand.pm
Commit message (Collapse)AuthorAgeLines
* [UK] Remove requirement for fixed body IDs.Matthew Somerville2017-06-20-2/+2
| | | | | | | | | | | | 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.
* Refactor SendReport::Open311 to use cobrand hooks.Matthew Somerville2017-03-09-0/+10
| | | | | | | | | | | | | | Avoid doing cobrand-specific logic within SendReport::Open311. The hooks defined are: open311_config: set extra fields open311_pre_send: set endpoints and munge data These are tested in the new t/app/sendreport/open311.t, which does not send any actual reports, but just checks that all the data is munged into the expected format. (tests under t/open311* should already test the actual sending) Remove unused Open311 special cases.
* Move from Moose to Moo in non-App code.Matthew Somerville2015-12-02-6/+7
| | | | And create default cobrand class without all of Moose.
* If only one cobrand given, always use it.Matthew Somerville2013-11-07-2/+13
| | | | | | | | | If the ALLOWED_COBRANDS configuration variable only contains one entry (and also work if it's a string rather than a list), always use that cobrand, no matter what the hostname is. The example Vagrantfile no longer needs the configuration changes at all.
* Allow cobrands to be given in ALLOWED_COBRANDS that don't have a Cobrand .pm ↵Matthew Somerville2012-08-17-6/+20
| | | | file. Just assume there would be a blank file with the right name that inherits from Default.pm.
* Factor out the SQL restriction from site_restriction, as it's only used in ↵Matthew Somerville2012-07-06-1/+1
| | | | one place.
* Fix tests with new ALLOWED_COBRANDS structure, fix admin test to skip Barnet ↵Matthew Somerville2012-05-01-0/+18
| | | | tests if not present.
* Improve cobrand mapping with ALLOWED_COBRANDS for #215.Matthew Somerville2012-02-06-10/+28
|
* Make FixMyStreet a cobrand, like the others.Matthew Somerville2012-01-30-0/+3
|
* Added overrides to staging servers to make testing/dev easierEdmund von der Burg2011-04-06-0/+20
|
* More work on the Cobrand and setting for requestEdmund von der Burg2011-02-23-18/+35
| | | | test to see welsh about us page
* Move the cobrand accross changing them to be OO and inheritEdmund von der Burg2011-02-23-0/+54