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

Issue 904045: Some change of improving the loading speed in web page

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by quguangfan
Modified:
7 years, 4 months ago
Reviewers:
wliu.sjtu, baiming, leio.chen, calidion
CC:
heian911_gmail.com
Base URL:
http://scheduleeditor.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add test case #

Total comments: 2

Patch Set 3 : change comments in test case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -0 lines) Patch
M python/test/testtransitfeed_editor.py View 2 1 chunk +89 lines, -0 lines 0 comments Download
M python/transitfeed_editor.py View 1 3 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 12
quguangfan
Hi, I found that when we select the route or begin times of one trip ...
14 years ago (2010-04-19 06:47:50 UTC) #1
wLiu.sjtu
http://codereview.appspot.com/904045/diff/1/2 File python/transitfeed_editor.py (right): http://codereview.appspot.com/904045/diff/1/2#newcode1108 python/transitfeed_editor.py:1108: trip.pattern_id = shape_hash Seems it has no relationship with ...
14 years ago (2010-04-19 07:02:32 UTC) #2
quguangfan
Please help review. http://codereview.appspot.com/904045/diff/1/2 File python/transitfeed_editor.py (right): http://codereview.appspot.com/904045/diff/1/2#newcode1108 python/transitfeed_editor.py:1108: trip.pattern_id = shape_hash On 2010/04/19 07:02:32, ...
14 years ago (2010-04-19 07:25:16 UTC) #3
wLiu.sjtu
http://codereview.appspot.com/904045/diff/1/2 File python/transitfeed_editor.py (right): http://codereview.appspot.com/904045/diff/1/2#newcode1108 python/transitfeed_editor.py:1108: trip.pattern_id = shape_hash Great, please add a summary to ...
14 years ago (2010-04-19 07:36:48 UTC) #4
calidion
http://codereview.appspot.com/904045/diff/1/2 File python/transitfeed_editor.py (right): http://codereview.appspot.com/904045/diff/1/2#newcode1108 python/transitfeed_editor.py:1108: trip.pattern_id = shape_hash the shape hash is different from ...
14 years ago (2010-04-19 07:39:06 UTC) #5
quguangfan
http://codereview.appspot.com/904045/diff/1/2 File python/transitfeed_editor.py (right): http://codereview.appspot.com/904045/diff/1/2#newcode1108 python/transitfeed_editor.py:1108: trip.pattern_id = shape_hash On 2010/04/19 07:39:06, calidion wrote: > ...
14 years ago (2010-04-19 13:50:22 UTC) #6
calidion
they are not. if the shape ids do not exist and the trips are of ...
14 years ago (2010-04-20 05:51:13 UTC) #7
quguangfan
Changed with calidion said and add the test case. Please help review. Thanks.
14 years ago (2010-04-21 01:37:40 UTC) #8
wLiu.sjtu
http://codereview.appspot.com/904045/diff/10001/11001 File python/test/testtransitfeed_editor.py (right): http://codereview.appspot.com/904045/diff/10001/11001#newcode250 python/test/testtransitfeed_editor.py:250: self.assertNotEqual(pattern_id1, pattern_id2) Please add comments on why pattern_id1 != ...
14 years ago (2010-04-21 02:33:05 UTC) #9
calidion
LGTM for transitfeed_editor.py and it seems pattern ids would also be better generated with route ...
14 years ago (2010-04-21 03:15:04 UTC) #10
quguangfan
Changed the testcase. Thanks. http://codereview.appspot.com/904045/diff/10001/11001 File python/test/testtransitfeed_editor.py (right): http://codereview.appspot.com/904045/diff/10001/11001#newcode250 python/test/testtransitfeed_editor.py:250: self.assertNotEqual(pattern_id1, pattern_id2) On 2010/04/21 02:33:05, ...
14 years ago (2010-04-21 03:16:56 UTC) #11
wliu.sjtu_gmail.com
14 years ago (2010-04-21 03:37:51 UTC) #12
LGTM

On Wed, Apr 21, 2010 at 11:16 AM, <quguangfan@gmail.com> wrote:

> Changed the testcase.
>
> Thanks.
>
>
> http://codereview.appspot.com/904045/diff/10001/11001
> File python/test/testtransitfeed_editor.py (right):
>
> http://codereview.appspot.com/904045/diff/10001/11001#newcode250
> python/test/testtransitfeed_editor.py:250:
> self.assertNotEqual(pattern_id1, pattern_id2)
> On 2010/04/21 02:33:05, wLiu.sjtu wrote:
>
>> Please add comments on why pattern_id1 != pattern_id2, and the same
>>
> for the next
>
>> assertEqual(). Besides, is it necessary to add agency, weekperiod etc.
>>
> for this
>
>> test? If not, you can remove them and simplify the test.
>>
>
> Agency and service_period are necessary because schedule.AddRouteObject
> will check if the agency_id is in schedule's agency_list. And the same
> to service_period.
>
>
> http://codereview.appspot.com/904045/show
>
Sign in to reply to this message.

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