incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#6596] Set denormalized votes total field from stars
Date Thu, 05 Sep 2013 20:30:56 GMT
Updated Branches:
  refs/heads/cj/6596 [created] 69535c4be


[#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/69535c4b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/69535c4b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/69535c4b

Branch: refs/heads/cj/6596
Commit: 69535c4beae1750a03ef01f5d44e7e2fbbc338ba
Parents: b4eddf9
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Thu Sep 5 20:30:50 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Thu Sep 5 20:30:50 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/69535c4b/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/69535c4b/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