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

Issue 75063: Adding validation for uniqueness of service_id X date in calendar_dates (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 12 months ago by jirka
Modified:
16 years, 1 month ago
Reviewers:
Tom, googletransitdatafeed
Base URL:
http://googletransitdatafeed.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Adding two values with identical service_id and date into calendar_dates.txt does not make sense and the result is undefined. However, it is not prohibited by GTFS. This adds a warning if the duplicity on those two keys is found.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Changing single column name into tuple, adding test data. #

Patch Set 3 : Moving error handling into SetDateHasService. #

Patch Set 4 : Adding unit test #

Patch Set 5 : Adding unit test (from the right directory) #

Total comments: 5

Patch Set 6 : Review turnaround #

Total comments: 8

Patch Set 7 : Setting context of warning #

Patch Set 8 : Formatting #

Total comments: 4

Patch Set 9 : Adding ClearContext() #

Total comments: 2

Patch Set 10 : Removing unnecessary linebreak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -9 lines) Patch
M python/test/testtransitfeed.py View 3 5 7 1 chunk +15 lines, -0 lines 0 comments Download
M python/transitfeed.py View 1 2 3 5 7 8 9 5 chunks +20 lines, -9 lines 0 comments Download

Messages

Total messages: 13
jirka
16 years, 12 months ago (2009-06-16 13:23:10 UTC) #1
Tom
I'm fine waiting until we have settled on an implemention before you add a test, ...
16 years, 11 months ago (2009-06-18 22:17:33 UTC) #2
jirka
Sorry, I didn't get to it for some time. > I'm fine waiting until we ...
16 years, 11 months ago (2009-07-02 22:10:06 UTC) #3
Tom
Sorry for letting this slip through the cracks. I think it is still relevant. > ...
16 years, 7 months ago (2009-10-20 23:06:24 UTC) #4
jirka
> I'm not so keen on the huge directory tree for test data because it ...
16 years, 7 months ago (2009-10-22 22:25:48 UTC) #5
jirka
http://codereview.appspot.com/75063/diff/1/2 File python/transitfeed.py (right): http://codereview.appspot.com/75063/diff/1/2#newcode3822 Line 3822: service_id+' X '+row[1], On 2009/06/18 22:17:33, Tom wrote: ...
16 years, 7 months ago (2009-10-22 22:25:58 UTC) #6
Tom
On 2009/10/22 22:25:58, jirka wrote: > http://codereview.appspot.com/75063/diff/7019/6021#newcode366 > Line 366: > The only issue is ...
16 years, 7 months ago (2009-10-23 01:01:22 UTC) #7
jirka
On 2009/10/23 01:01:22, Tom wrote: > On 2009/10/22 22:25:58, jirka wrote: > > http://codereview.appspot.com/75063/diff/7019/6021#newcode366 > ...
16 years, 7 months ago (2009-10-26 17:59:07 UTC) #8
Tom
http://codereview.appspot.com/75063/diff/11001/12001 File test/testtransitfeed.py (right): http://codereview.appspot.com/75063/diff/11001/12001#newcode3217 Line 3217: # Two lines with the same value of ...
16 years, 7 months ago (2009-10-26 19:34:20 UTC) #9
jirka
Sorry, last time I replied without publishing the comments. http://codereview.appspot.com/75063/diff/11001/12001 File test/testtransitfeed.py (right): http://codereview.appspot.com/75063/diff/11001/12001#newcode3217 Line ...
16 years, 7 months ago (2009-10-26 22:06:18 UTC) #10
jirka
http://codereview.appspot.com/75063/diff/14006/13007 File python/transitfeed.py (right): http://codereview.appspot.com/75063/diff/14006/13007#newcode3993 Line 3993: continue On 2009/10/26 19:34:20, Tom wrote: > else: ...
16 years, 7 months ago (2009-10-26 22:18:13 UTC) #11
Tom
One minor comment and this is good to submit. Please make sure CL refers to ...
16 years, 7 months ago (2009-10-26 23:30:32 UTC) #12
jirka
16 years, 7 months ago (2009-10-27 11:31:52 UTC) #13
http://codereview.appspot.com/75063/diff/13011/14010
File python/transitfeed.py (right):

http://codereview.appspot.com/75063/diff/13011/14010#newcode2456
Line 2456: problems=None):
On 2009/10/26 23:30:33, Tom wrote:
> looks like it fits on previous line

Done.
Sign in to reply to this message.

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