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

Issue 428001: Avoid losing CL description during Rietveld outage.... (Closed)

Created:
11 years, 1 month ago by chase
Modified:
9 years, 7 months ago
Reviewers:
jam, M-A Ruel
CC:
chromium-reviews, M-A Ruel
Visibility:
Public.

Description

Avoid losing CL description during Rietveld outage. Save the CL locally prior to attempting to submit to Rietveld. The CL is saved locally with a dirty-bit before the upload is attempted. If successful, the CL is saved locally again with a clean-bit. On loading a dirty CL for editing, we only load the CL description from Rietveld if the local CL is clean (there are no pending changes to upload). Clean CLs continue to retrieve updated descriptions directly from Rietveld. BUG=none TEST=gcl change <name> saves CL description local prior to uploading. gcl change <name> after a failed Rietveld upload uses local CL description instead of using the associated issue's description from Rietveld. Changes in this state are reset to the 'clean' state after the Rietveld update completes.

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -15 lines) Patch
M gcl.py View 1 9 chunks +30 lines, -10 lines 1 comment Download
M tests/gcl_unittest.py View 3 chunks +16 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
chase
11 years, 1 month ago (2009-11-20 22:35:14 UTC) #1
jam
http://codereview.chromium.org/428001/diff/1/2 File gcl.py (right): http://codereview.chromium.org/428001/diff/1/2#newcode1053 Line 1053: print description Why print it then? I feel ...
11 years, 1 month ago (2009-11-20 23:31:09 UTC) #2
chase
Thanks for the feedback, updated patch, PTAL.
11 years, 1 month ago (2009-11-21 06:25:20 UTC) #3
M-A Ruel
lgtm http://codereview.chromium.org/428001/diff/4002/2002 File gcl.py (right): http://codereview.chromium.org/428001/diff/4002/2002#newcode320 Line 320: data = ChangeInfo._SEPARATOR.join([ We should have used ...
11 years, 1 month ago (2009-11-22 18:06:10 UTC) #4
jam
lgtm
11 years, 1 month ago (2009-11-23 05:36:33 UTC) #5
jam
hey Chase, so I just discovered a bug with this. If someone makes a change ...
10 years, 8 months ago (2010-04-28 17:21:59 UTC) #6
chase
10 years, 7 months ago (2010-05-10 01:32:32 UTC) #7
John, were you able to reproduce this?

Powered by Google App Engine
This is Rietveld 408576698