From 25e7f33d8604c65a634fb5ff9733ef55b08ca0b9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 18 2015 11:04:27 +0000 Subject: Forward the redis connection to the backend to support notifying dependency changes --- diff --git a/pagure/ui/issues.py b/pagure/ui/issues.py index e6f7148..0748381 100644 --- a/pagure/ui/issues.py +++ b/pagure/ui/issues.py @@ -175,7 +175,9 @@ def update_issue(repo, issueid, username=None): messages = pagure.lib.update_dependency_issue( SESSION, repo, issue, depends, username=flask.g.fas_user.username, - ticketfolder=APP.config['TICKETS_FOLDER']) + ticketfolder=APP.config['TICKETS_FOLDER'], + redis=REDIS, + ) for message in messages: flask.flash(message) @@ -183,7 +185,9 @@ def update_issue(repo, issueid, username=None): messages = pagure.lib.update_blocked_issue( SESSION, repo, issue, blocks, username=flask.g.fas_user.username, - ticketfolder=APP.config['TICKETS_FOLDER']) + ticketfolder=APP.config['TICKETS_FOLDER'], + redis=REDIS, + ) for message in messages: flask.flash(message)