diff options
author | Hakim Cassimally <hakim@mysociety.org> | 2014-05-15 15:53:34 +0000 |
---|---|---|
committer | Hakim Cassimally <hakim@mysociety.org> | 2014-10-16 16:56:26 +0000 |
commit | 06a69fa7a7e9fae205df36ddc68d131d91533792 (patch) | |
tree | 202a8451cc6539ff8f15652d0e15f53dedfa614c /perllib/Open311/Endpoint/Schema.pm | |
parent | d1fee928f02dbc30d3a38b746155ce5b12be4a1b (diff) |
Open311 Endpoint mySociety extensions role
* Get Service Request Updates
This requires a new object ::Service::Request::Update, which of course
is not part of standard spec. So, in order to make the core not too
contaminated by :
* the endpoint should instantiate ::Service::Request::mySociety objects
which know about updates
* have added a learn_additional_types callback from Schema to Endpoint,
so that core doesn't need to know about /open311/service_request_update
* (but ::Spark knows about the exception for updates... meh, but is 1-line)
Diffstat (limited to 'perllib/Open311/Endpoint/Schema.pm')
-rw-r--r-- | perllib/Open311/Endpoint/Schema.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/Open311/Endpoint/Schema.pm b/perllib/Open311/Endpoint/Schema.pm index e30f9ad90..9a2ad81e5 100644 --- a/perllib/Open311/Endpoint/Schema.pm +++ b/perllib/Open311/Endpoint/Schema.pm @@ -12,6 +12,7 @@ has endpoint => ( get_jurisdiction_id_required_clause get_jurisdiction_id_optional_clause get_identifier_type + learn_additional_types /], ); @@ -167,6 +168,8 @@ has schema => ( } ); + $self->learn_additional_types($schema); + return $schema; }, ); |