Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2106)

Issue 112320044: Don't calculate deltas when viewing issues because that's done in a task (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 9 months ago by jrobbins (chromium)
Modified:
1 year ago
CC:
riswanceggu
Visibility:
Public.

Description

When an upload completes, it kicks off a task to calculate deltas. So, there is no reason to do the same work when viewing the code review issue. Since calculating deltas is done in a task, it has a deadline of 10 minutes and automatically retries, so there is no need to implement our own retry logic or to display an error message to the user. Calculating deltas while the base files were still being uploaded (because the user views the issue while still uploading) caused a race condition that over-wrote the patch in a non-transactional way. Delta calculation in a task does not have that risk because the task is only enqueue after the upload is complete. BUG=https://code.google.com/p/rietveld/issues/detail?id=357

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -80 lines) Patch
M codereview/models.py View 2 chunks +1 line, -26 lines 0 comments Download
M codereview/views.py View 5 chunks +10 lines, -54 lines 0 comments Download

Messages

Total messages: 16
jrobbins (corp)
PTAL. This should avoid some corrupted code review issues.
9 years, 9 months ago (2014-07-15 19:58:35 UTC) #1
iannucci
lgtm. I assume that this means that the delta links will just not be visible ...
9 years, 9 months ago (2014-07-17 18:37:22 UTC) #2
jrobbins (corp)
On 2014/07/17 18:37:22, iannucci wrote: > lgtm. I assume that this means that the delta ...
9 years, 9 months ago (2014-07-17 18:56:38 UTC) #3
iannucci
On 2014/07/17 18:56:38, jrobbins (corp) wrote: > On 2014/07/17 18:37:22, iannucci wrote: > > lgtm. ...
9 years, 9 months ago (2014-07-17 19:02:26 UTC) #4
jrobbins (corp)
Committed as https://code.google.com/p/rietveld/source/detail?r=bdb32f6d8b0922d3c417659e271bad439a8ee55c
9 years, 9 months ago (2014-07-17 19:20:06 UTC) #5
ajaramillo1629
8 years, 10 months ago (2015-06-05 00:13:16 UTC) #6
mcourtney1961
On 2014/07/15 19:58:35, jrobbins (corp) wrote: > PTAL. This should avoid some corrupted code review ...
5 years, 10 months ago (2018-06-10 21:39:14 UTC) #7
mcourtney1961
On 2014/07/17 18:37:22, iannucci wrote: > lgtm. I assume that this means that the delta ...
5 years, 10 months ago (2018-06-10 21:40:29 UTC) #8
lehmanpstrik
On 2018/06/10 21:40:29, mcourtney1961 wrote: > On 2014/07/17 18:37:22, iannucci wrote: > > lgtm. I ...
2 years, 9 months ago (2021-07-07 00:41:22 UTC) #9
lehmanpstrik
Shop are u Holen Sie sich Outlook für Android<https://aka.ms/AAb9ysg> ________________________________ From: lehmanpstrik@gmail.com <lehmanpstrik@gmail.com> Sent: Wednesday, ...
2 years, 8 months ago (2021-08-06 02:29:37 UTC) #10
rheysiahwati
Minta kode
1 year, 6 months ago (2022-10-07 15:40:52 UTC) #11
riswanceggu
Kode whatsapp
1 year, 6 months ago (2022-10-07 16:30:42 UTC) #12
clcresky001
1 year, 2 months ago (2023-02-02 18:00:59 UTC) #13
sylvainstjean53
1 year, 2 months ago (2023-02-15 20:41:31 UTC) #14
sylvainstjean53
1 year, 2 months ago (2023-02-15 20:41:32 UTC) #15
yaninabeatriz30
1 year ago (2023-04-14 06:44:44 UTC) #16
Message was sent while issue was closed.
On 2015/06/05 00:13:16, ajaramillo1629 wrote:
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b