Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Issue 1566037: Tracker/Spreadsheet sync: tool to sync tracker issues (Closed)

Created:
10 years, 8 months ago by adlr
Modified:
9 years ago
Reviewers:
rginda, petkov
CC:
chromium-os-reviews_chromium.org, rtc, Sumit
Visibility:
Public.

Description

Tracker/Spreadsheet sync: tool to sync tracker issues This can be useful for working with issues in a spreadsheet and making bulk updates to tracker issues. See known issues in the file for important known issues.

Patch Set 1 #

Total comments: 47

Patch Set 2 : fixes for review, whitespace #

Patch Set 3 : remove .py suffix from filename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+563 lines, -0 lines) Patch
A src/scripts/tracker_spreadsheet_sync View 1 chunk +563 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
adlr
10 years, 8 months ago (2010-04-11 21:49:51 UTC) #1
rginda
http://codereview.chromium.org/1566037/diff/1/2 File src/scripts/tracker_spreadsheet_sync.py (right): http://codereview.chromium.org/1566037/diff/1/2#newcode28 src/scripts/tracker_spreadsheet_sync.py:28: # This script can be used to migrate Issue ...
10 years, 8 months ago (2010-04-12 18:01:20 UTC) #2
adlr
PTAL thanks http://codereview.chromium.org/1566037/diff/1/2 File src/scripts/tracker_spreadsheet_sync.py (right): http://codereview.chromium.org/1566037/diff/1/2#newcode28 src/scripts/tracker_spreadsheet_sync.py:28: # This script can be used to ...
10 years, 8 months ago (2010-04-13 03:15:14 UTC) #3
petkov
I suggest remove the .py suffix. I believe convention is no suffix for main executables ...
10 years, 8 months ago (2010-04-13 03:49:58 UTC) #4
adlr
PTAL, thanks
10 years, 8 months ago (2010-04-13 03:53:02 UTC) #5
rginda
10 years, 8 months ago (2010-04-13 16:20:07 UTC) #6
LGTM

http://codereview.chromium.org/1566037/diff/1/2
File src/scripts/tracker_spreadsheet_sync.py (right):

http://codereview.chromium.org/1566037/diff/1/2#newcode276
src/scripts/tracker_spreadsheet_sync.py:276: if ss_issue.has_key(key) and
(ss_issue[key] is not None):
On 2010/04/13 03:15:14, adlr wrote:
> On 2010/04/12 18:01:20, rginda wrote:
> > get()
> 
> changed to simply 'value' which should be okay, right?

yeah, sgtm

http://codereview.chromium.org/1566037/diff/1/2#newcode349
src/scripts/tracker_spreadsheet_sync.py:349: if len(commits) == 0:
On 2010/04/13 03:15:14, adlr wrote:
> On 2010/04/12 18:01:20, rginda wrote:
> > if not committs:
> > 
> > Looks like you could return early from here too, or for extra python bonus
> > points...
> > 
> > >>> for i in []:
> > ...   pass
> > ... else:
> > ...   print "none"
> > ... 
> > none
> 
> is that really considered better?

It got added to the language because They thought so.  I haven't tried it enough
to know if I agree.  I'm fine with the separate test, but you should at least
switch to 'if not commits:'

http://codereview.chromium.org/1566037/diff/1/2#newcode456
src/scripts/tracker_spreadsheet_sync.py:456: if self.debug:
On 2010/04/13 03:15:14, adlr wrote:
> On 2010/04/12 18:01:20, rginda wrote:
> > Might be cleaner to have a self.debug() method that checks if
> > self.__verbose_level, or somesuch.
> 
> broke it into a function, but left it a simple bool for now. if there are
> verbosity levels in the future it should be easier to integrate that.

Sorry, I wasn't clear.  I'm not concerned with adding verbosity levels, I was
just suggesting swapping the:

  if self.debug:
     print msg

pattern with:

  self.debug(msg)

Powered by Google App Engine
This is Rietveld 408576698