the bug is that we will fetch the wrong shape_id. because trips having the same ...
13 years, 10 months ago
(2010-06-09 09:45:50 UTC)
#3
the bug is that we will fetch the wrong shape_id.
because trips having the same pattern in the same route can also have different
shape_ids, so the recorded shape_id in the pattern table can be wrong for the
trip.
if we edit the shape of a trip, the right shape may not be changed, and the
wrong shape will be changed.
http://codereview.appspot.com/1633041/diff/1/2
File transitfeed_editor.py (right):
http://codereview.appspot.com/1633041/diff/1/2#newcode546
transitfeed_editor.py:546: return [1]
On 2010/06/09 09:37:15, weiliu wrote:
> return 1 or [1]? Difference?
no difference between the return value, because the client won't process it.
more like a placeholder.
On Wed, Jun 9, 2010 at 5:45 PM, <calidion@gmail.com> wrote: > the bug is that ...
13 years, 10 months ago
(2010-06-09 09:52:02 UTC)
#4
On Wed, Jun 9, 2010 at 5:45 PM, <calidion@gmail.com> wrote:
> the bug is that we will fetch the wrong shape_id.
> because trips having the same pattern in the same route can also have
> different shape_ids, so the recorded shape_id in the pattern table can
> be wrong for the trip.
> if we edit the shape of a trip, the right shape may not be changed, and
> the wrong shape will be changed.
>
>
>
> http://codereview.appspot.com/1633041/diff/1/2
> File transitfeed_editor.py (right):
>
> http://codereview.appspot.com/1633041/diff/1/2#newcode546
> transitfeed_editor.py:546: return [1]
> On 2010/06/09 09:37:15, weiliu wrote:
>
>> return 1 or [1]? Difference?
>>
>
> no difference between the return value, because the client won't process
> it.
>
> more like a placeholder.
>
>
Can you change it to "return 1" to be consistent with others? Since you
won't use it anyway.
>
> http://codereview.appspot.com/1633041/show
>
--
Best Regards,
Wei Liu
86-10-62503256(o)
Issue 1633041: Write shape points directly to database
Created 13 years, 10 months ago by calidion
Modified 7 years, 4 months ago
Reviewers: lychen, xan_google.com, weiliu, leio.chen, baiming
Base URL: http://scheduleeditor.googlecode.com/svn/trunk/v2/
Comments: 3