bloodhound-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Martin <>
Subject Re: [Apache Bloodhound] #298: Exception from missing['labels'] in filter_stream
Date Wed, 12 Dec 2012 10:10:01 GMT

There are a couple of issues I have come across recently with the 
accessibility of changes made to that developers should be 
aware of. I certainly learnt a bit from analysing these problems. 
Grammar issues aside, the description in #298 attempts to summarise 
these potential gotchas. Perhaps we will want a page that lists these 
kinds of discoveries on the wiki.


On 12/12/12 09:52, Apache Bloodhound wrote:
> #298: Exception from missing['labels'] in filter_stream
> -----------------------+-----------------------
>   Reporter:  gjm        |      Owner:  nobody
>       Type:  defect     |     Status:  new
>   Priority:  major      |  Milestone:  Release 4
> Component:  dashboard  |    Version:
>   Keywords:             |
> -----------------------+-----------------------
>   This is related to #294 in a sense as it is another case when the
>   {{{['labels']}}} dictionary is potentially unavailable. In the
>   former case it was because it was causing premature lazy evaluation,
>   before a function was curried to specify the ultimate handler.
>   This new case is may be because an exception can stop the
>   {{{post_process_request}}} from executing so that it is not available in
>   the {{{filter_stream}}} method, where it is now required so that errors
>   are correctly whitelabelled.
>   I suggest that we move the whitelabelling config evaluation into a
>   separate helper method (in case there are situations where the dictionary
>   is required elsewhere) and add {{{['labels']}}} in the
>   {{{filter_stream}}} method.
> -- Ticket URL: <> 
> Apache Bloodhound <> The Apache 
> Bloodhound (incubating) issue tracker

View raw message