diff options
author | Mukunda Modell <mmodell@wikimedia.org> | 2016-05-02 19:38:40 -0500 |
---|---|---|
committer | Mukunda Modell <mmodell@wikimedia.org> | 2016-05-02 19:38:40 -0500 |
commit | e5bd9268a7eb303efa6462028e9fec11e8f2683b (patch) | |
tree | 8c79eab79fb4b3f3a6f952b677c10e8d1709428c | |
parent | 872ae4faa5b71324cb17999008101c61f50cfb35 (diff) |
Update task dump to support new 'points' field and transactions
refs T127766
NOTE: The points field name changed from `storypoints` to `points`
-rwxr-xr-x | public_task_dump.py | 3 | ||||
-rwxr-xr-x | wmfphablib/phabdb.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/public_task_dump.py b/public_task_dump.py index 83e1111..fccc843 100755 --- a/public_task_dump.py +++ b/public_task_dump.py @@ -11,6 +11,7 @@ from wmfphablib import config as c # unsafe secrets we have dealt with in the UI context transactions = ['core:columns', 'priority', + 'points', 'status', 'reassign', 'core:edge'] @@ -34,7 +35,7 @@ for task in tasks: id = task[0] taskdata[id] = {} taskdata[id]['info'] = task - taskdata[id]['storypoints'] = phabdb.get_storypoints(mdb, task[1]) or '' + #taskdata[id]['storypoints'] = phabdb.get_storypoints(mdb, task[1]) or '' taskdata[id]['transactions'] = {} for t in transactions: diff --git a/wmfphablib/phabdb.py b/wmfphablib/phabdb.py index 88f38fc..deb3605 100755 --- a/wmfphablib/phabdb.py +++ b/wmfphablib/phabdb.py @@ -103,7 +103,8 @@ def get_taskbypolicy(dbcon, policy='public'): title, \ dateCreated, \ dateModified, \ - subpriority \ + subpriority, \ + points \ FROM maniphest_task WHERE viewPolicy=%s", (policy), limit=None) |