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

Issue 1493041: created new class for Pattern and shape desc

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 11 months ago by calidion
Modified:
7 years, 4 months ago
Reviewers:
xan, weiliu, baiming, leio.chen, lychen
CC:
xinxing_google.com, lishuangfeng_gmail.com
Base URL:
http://scheduleeditor.googlecode.com/svn/trunk/v2/
Visibility:
Public.

Description

Creat new classes for Pattern and relationship between pattern and trip, which is the preparation for the direct query from database instead of memory objects later.

Patch Set 1 #

Patch Set 2 : updated #

Total comments: 6

Patch Set 3 : updated #

Patch Set 4 : updated #

Total comments: 2

Patch Set 5 : updated #

Patch Set 6 : updated #

Patch Set 7 : updated #

Total comments: 4

Patch Set 8 : updated #

Total comments: 2

Patch Set 9 : updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M transitfeed_editor.py View 1 2 3 4 5 6 7 8 3 chunks +30 lines, -1 line 0 comments Download

Messages

Total messages: 25
calidion
1.added Pattern and ShapeDesc database objects 2.store relationships into database now
13 years, 11 months ago (2010-06-03 01:55:03 UTC) #1
calidion
will someone please review this cl? 2010/6/3 <calidion@gmail.com> > Reviewers: lychen, xan_google.com, weiliu, leio.chen, baiming, ...
13 years, 11 months ago (2010-06-03 09:33:11 UTC) #2
weiliu
Sorry, looking into it now. On Thu, Jun 3, 2010 at 5:32 PM, <李白> wrote: ...
13 years, 11 months ago (2010-06-03 09:37:33 UTC) #3
weiliu
What is your change designed for? http://codereview.appspot.com/1493041/diff/3001/2002 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/3001/2002#newcode1168 transitfeed_editor.py:1168: shape_desc_rows.append([trip.pattern_id, trip.shape_id, trip.shape_desc]) ...
13 years, 11 months ago (2010-06-03 09:42:49 UTC) #4
calidion
updated http://codereview.appspot.com/1493041/diff/3001/2002 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/3001/2002#newcode1168 transitfeed_editor.py:1168: shape_desc_rows.append([trip.pattern_id, trip.shape_id, trip.shape_desc]) On 2010/06/03 09:42:50, weiliu wrote: ...
13 years, 11 months ago (2010-06-03 09:52:49 UTC) #5
weiliu
I still don't understand what's the purpose of this change. Is it to prepare sth? ...
13 years, 11 months ago (2010-06-03 09:57:58 UTC) #6
calidion
yes. it is the database preparation for request changes later. 2010/6/3 Wei Liu <weiliu@google.com> > ...
13 years, 11 months ago (2010-06-03 10:05:00 UTC) #7
weiliu
On Thu, Jun 3, 2010 at 6:04 PM, <李白> wrote: > yes. it is the ...
13 years, 11 months ago (2010-06-03 10:09:35 UTC) #8
calidion
updated. 1.change Pattern to PatternTrip, which describe for the relationship between trip and pattern 2.change ...
13 years, 11 months ago (2010-06-04 01:49:11 UTC) #9
calidion
2010/6/3 Wei Liu <weiliu@google.com> > > > On Thu, Jun 3, 2010 at 6:04 PM, ...
13 years, 11 months ago (2010-06-04 01:51:36 UTC) #10
weiliu
Please update cl description as I mentioned before. http://codereview.appspot.com/1493041/diff/14001/15001 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/14001/15001#newcode1172 transitfeed_editor.py:1172: patterns[trip.pattern_id] ...
13 years, 11 months ago (2010-06-04 01:57:41 UTC) #11
weiliu
On 2010/06/04 01:57:41, weiliu wrote: > Please update cl description as I mentioned before. Sorry ...
13 years, 11 months ago (2010-06-04 01:59:20 UTC) #12
calidion
"direct query" means we will get data from database instead of memory objects. 2010/6/4 <weiliu@google.com> ...
13 years, 11 months ago (2010-06-04 02:14:40 UTC) #13
weiliu
On Fri, Jun 4, 2010 at 10:14 AM, <李白> wrote: > "direct query" means we ...
13 years, 11 months ago (2010-06-04 02:21:43 UTC) #14
calidion
http://codereview.appspot.com/1493041/diff/14001/15001 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/14001/15001#newcode1172 transitfeed_editor.py:1172: patterns[trip.pattern_id] = True On 2010/06/04 01:57:42, weiliu wrote: > ...
13 years, 11 months ago (2010-06-04 02:24:45 UTC) #15
calidion
updated
13 years, 11 months ago (2010-06-04 02:44:15 UTC) #16
calidion
updated: http://codereview.appspot.com/1493041/diff2/27001:30001/31001
13 years, 11 months ago (2010-06-04 03:04:18 UTC) #17
weiliu
http://codereview.appspot.com/1493041/diff/30001/31001 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/30001/31001#newcode1171 transitfeed_editor.py:1171: trip.shape_desc]) How about the following? pattern_rows = {} route_id ...
13 years, 11 months ago (2010-06-04 03:16:17 UTC) #18
calidion
an item like (route_id, trip.pattern_id, trip.shape_id, trip.shape_desc) will be inserted to the database. so we ...
13 years, 11 months ago (2010-06-04 03:22:18 UTC) #19
weiliu
It doesn't matter, with the dict, you can still insert the key and value to ...
13 years, 11 months ago (2010-06-04 03:24:57 UTC) #20
calidion
this may add additional loop to restructure the data to meet the database interface. 2010/6/4 ...
13 years, 11 months ago (2010-06-04 03:29:20 UTC) #21
weiliu
http://codereview.appspot.com/1493041/diff/30001/31001 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/30001/31001#newcode1169 transitfeed_editor.py:1169: for row in pattern_rows]: Please use route_id instead of ...
13 years, 11 months ago (2010-06-04 03:32:34 UTC) #22
calidion
updated http://codereview.appspot.com/1493041/diff/30001/31001 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/30001/31001#newcode1169 transitfeed_editor.py:1169: for row in pattern_rows]: On 2010/06/04 03:32:34, weiliu ...
13 years, 11 months ago (2010-06-04 03:36:10 UTC) #23
weiliu
LGTM http://codereview.appspot.com/1493041/diff/15002/39001 File transitfeed_editor.py (right): http://codereview.appspot.com/1493041/diff/15002/39001#newcode1165 transitfeed_editor.py:1165: Remove the empty line. http://codereview.appspot.com/1493041/diff/15002/39001#newcode1167 transitfeed_editor.py:1167: Remove the ...
13 years, 11 months ago (2010-06-04 03:45:41 UTC) #24
calidion
13 years, 11 months ago (2010-06-04 04:41:31 UTC) #25
initial version 84 in folder v2.
updated to rev 85 in folder v2.

2010/6/4 <weiliu@google.com>

> LGTM
>
>
> http://codereview.appspot.com/1493041/diff/15002/39001
>
> File transitfeed_editor.py (right):
>
> http://codereview.appspot.com/1493041/diff/15002/39001#newcode1165
> transitfeed_editor.py:1165:
> Remove the empty line.
>
> http://codereview.appspot.com/1493041/diff/15002/39001#newcode1167
> transitfeed_editor.py:1167:
> Remove the empty line.
>
>
> http://codereview.appspot.com/1493041/show
>
Sign in to reply to this message.

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