def _gen_component_status(self, default='OK'):
        status = default
        for result in self.result['componentResults'].itervalues():
            if result['status'] == 'OK' and status not in ['WARN', 'ERROR']:
                status = 'OK'
            elif result['status'] == 'WARN' and status != 'ERROR':
                status = 'WARN'
            elif result['status'] == 'ERROR':
                status = 'ERROR'
        return status
Generate status from component results
dataset/ETHPy150Open gooddata/smoker/smoker/server/plugins/__init__.py/Result._gen_component_status