Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5843385483001856: Stats processing: don`t create file names that are too long (Closed)

Created:
Dec. 27, 2013, 7:43 a.m. by Wladimir Palant
Modified:
Jan. 30, 2014, 1:16 p.m.
Reviewers:
Sebastian Noack
Visibility:
Public.

Description

Page generation currently produces an error because of a very long addon name received from some client (corresponding file name is longer than 255 characters). We need to account for that scenario properly.

Patch Set 1 #

Patch Set 2 : Decreased length limit #

Total comments: 8

Patch Set 3 : Addressed nit #

Patch Set 4 : Addressed remaining nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M sitescripts/stats/common.py View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 10
Wladimir Palant
Dec. 27, 2013, 7:43 a.m. (2013-12-27 07:43:24 UTC) #1
Sebastian Noack
http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py File sitescripts/stats/common.py (right): http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py#newcode18 sitescripts/stats/common.py:18: import re, hashlib According to PEP-8, the import should ...
Dec. 27, 2013, 1:49 p.m. (2013-12-27 13:49:58 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py File sitescripts/stats/common.py (right): http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py#newcode32 sitescripts/stats/common.py:32: hash.update(result[150:]) On 2013/12/27 13:49:58, Sebastian Noack wrote: > Also ...
Dec. 28, 2013, 9:56 a.m. (2013-12-28 09:56:22 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py File sitescripts/stats/common.py (right): http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py#newcode32 sitescripts/stats/common.py:32: hash.update(result[150:]) On 2013/12/28 09:56:22, Wladimir Palant wrote: > On ...
Dec. 28, 2013, 12:41 p.m. (2013-12-28 12:41:18 UTC) #4
Wladimir Palant
http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py File sitescripts/stats/common.py (right): http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py#newcode32 sitescripts/stats/common.py:32: hash.update(result[150:]) On 2013/12/28 12:41:18, Sebastian Noack wrote: > However ...
Dec. 28, 2013, 4:58 p.m. (2013-12-28 16:58:14 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py File sitescripts/stats/common.py (right): http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py#newcode32 sitescripts/stats/common.py:32: hash.update(result[150:]) On 2013/12/28 16:58:14, Wladimir Palant wrote: > On ...
Dec. 29, 2013, 4:58 p.m. (2013-12-29 16:58:23 UTC) #6
Wladimir Palant
I've addressed the nit. Concerning the other comment see below. http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py File sitescripts/stats/common.py (right): http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py#newcode32 ...
Jan. 30, 2014, 12:18 p.m. (2014-01-30 12:18:33 UTC) #7
Sebastian Noack
LGTM, but you still might want address the remaining nit. http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py File sitescripts/stats/common.py (right): http://codereview.adblockplus.org/5843385483001856/diff/5741031244955648/sitescripts/stats/common.py#newcode32 ...
Jan. 30, 2014, 12:56 p.m. (2014-01-30 12:56:47 UTC) #8
Wladimir Palant
Jan. 30, 2014, 1:15 p.m. (2014-01-30 13:15:40 UTC) #9
Sebastian Noack
Jan. 30, 2014, 1:16 p.m. (2014-01-30 13:16:15 UTC) #10
Even more LGTM

Powered by Google App Engine
This is Rietveld