incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6596] Set denormalized votes total field from stars
Date Fri, 06 Sep 2013 14:56:20 GMT
Updated Branches:
  refs/heads/master f17ad230c -> 56043b14b


[#6596] Set denormalized votes total field from stars

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/56043b14
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/56043b14
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/56043b14

Branch: refs/heads/master
Commit: 56043b14b76824237ad0583e2d357fd0db7f5344
Parents: f17ad23
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Thu Sep 5 20:30:50 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri Sep 6 14:56:04 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/google/tracker.py                     | 1 +
 .../forgeimporters/tests/google/functional/test_tracker.py          | 1 +
 2 files changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/56043b14/ForgeImporters/forgeimporters/google/tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/google/tracker.py b/ForgeImporters/forgeimporters/google/tracker.py
index 1535531..40dd939 100644
--- a/ForgeImporters/forgeimporters/google/tracker.py
+++ b/ForgeImporters/forgeimporters/google/tracker.py
@@ -160,6 +160,7 @@ class GoogleCodeTrackerImporter(ToolImporter):
         ticket.created_date = datetime.strptime(issue.get_issue_created_date(), '%c')
         ticket.mod_date = datetime.strptime(issue.get_issue_mod_date(), '%c')
         ticket.votes_up = issue.get_issue_stars()
+        ticket.votes = issue.get_issue_stars()
         owner = issue.get_issue_owner()
         if owner:
             owner_line = '*Originally owned by:* {owner}\n'.format(owner=owner)

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/56043b14/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py b/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
index 2e5f542..24081d9 100644
--- a/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
+++ b/ForgeImporters/forgeimporters/tests/google/functional/test_tracker.py
@@ -138,6 +138,7 @@ class TestGCTrackerImporter(TestCase):
             })
         self.assertEqual(ticket.labels, ['Performance', 'Security'])
         self.assertEqual(ticket.votes_up, 1)
+        self.assertEqual(ticket.votes, 1)
 
     @skipif(module_not_available('html2text'))
     def test_html2text_escaping(self):


Mime
View raw message