def set_deployable(): d = request.json target_ref = FQRef.from_json(d['target_ref']) action = d['action'] assert action in ('unwatch', 'watch', 'deploy') prs.update_watch_state(target_ref, action) return '', 200
def set_deployable(): d = request.json target_ref = FQRef.from_json(d['target_ref']) action = d['action'] assert action in ('unwatch', 'watch', 'deploy') prs.update_watch_state(target_ref, action) return '', 200
def force_redeploy(): d = request.json target = FQRef.from_json(d) if target in prs.watched_target_refs(): prs.try_deploy(target) return '', 200 else: return f'{target.short_str()} not in {[ref.short_str() for ref in prs.watched_target_refs()]}', 400
def force_redeploy(): d = request.json target = FQRef.from_json(d) if target in prs.watched_target_refs(): prs.try_deploy(target) return '', 200 else: return f'{target.short_str()} not in {[ref.short_str() for ref in prs.watched_target_refs()]}', 400
def force_retest(): d = request.json source = FQRef.from_json(d['source']) target = FQRef.from_json(d['target']) prs.build(source, target) return '', 200
def force_retest(): d = request.json source = FQRef.from_json(d['source']) target = FQRef.from_json(d['target']) prs.build(source, target) return '', 200