From f496853912ee01a44431546aedfe0893118d3046 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 20 2015 09:42:01 +0000 Subject: Adjust calls to update_dependency_issue and update_blocked_issue --- diff --git a/progit/lib/__init__.py b/progit/lib/__init__.py index ef0883a..2a2fbdb 100644 --- a/progit/lib/__init__.py +++ b/progit/lib/__init__.py @@ -1049,7 +1049,8 @@ def update_tags_issue(session, issue, tags, username, ticketfolder): return messages -def update_dependency_issue(session, issue, depends, username, ticketfolder): +def update_dependency_issue( + session, repo, issue, depends, username, ticketfolder): """ Update the dependency of a specified issue (adding or removing them) """ @@ -1100,7 +1101,8 @@ def update_dependency_issue(session, issue, depends, username, ticketfolder): return messages -def update_blocked_issue(session, issue, blocks, username, ticketfolder): +def update_blocked_issue( + session, repo, issue, blocks, username, ticketfolder): """ Update the upstream dependency of a specified issue (adding or removing them) diff --git a/progit/ui/issues.py b/progit/ui/issues.py index d0f5d52..9cf4ed1 100644 --- a/progit/ui/issues.py +++ b/progit/ui/issues.py @@ -142,7 +142,7 @@ def update_issue(repo, issueid, username=None): # Update ticket this one depends on messages = progit.lib.update_dependency_issue( - SESSION, issue, depends, + SESSION, repo, issue, depends, username=flask.g.fas_user.username, ticketfolder=APP.config['TICKETS_FOLDER']) for message in messages: @@ -150,7 +150,7 @@ def update_issue(repo, issueid, username=None): # Update ticket(s) depending on this one messages = progit.lib.update_blocked_issue( - SESSION, issue, depends, + SESSION, repo, issue, blocks, username=flask.g.fas_user.username, ticketfolder=APP.config['TICKETS_FOLDER']) for message in messages: