<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/lib, branch 6132-forms-breadcrumb</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Fix typo for Import class Refs #6243</title>
<updated>2018-03-19T14:33:54+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-03-19T14:33:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7889ea3f2e8051140b703a88ee9ea6194f5bf3f7'/>
<id>7889ea3f2e8051140b703a88ee9ea6194f5bf3f7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix coordinates synchronization for reflex Refs #6245</title>
<updated>2018-03-19T14:31:17+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-03-19T14:31:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=176149726e5292568bec9d0d02bf3370fa2fb7a3'/>
<id>176149726e5292568bec9d0d02bf3370fa2fb7a3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix reflex sync Refs #6141</title>
<updated>2018-03-16T14:09:51+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-03-16T14:09:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=6e27953fbf3539da0d0971f762c0a4443c9f8946'/>
<id>6e27953fbf3539da0d0971f762c0a4443c9f8946</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix stop_area state for filter and display. Update reflex sync to use confirmed_at. Refs #6141</title>
<updated>2018-03-16T12:46:54+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-03-16T12:46:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=193b85cc7882762d99f412b796c67f9c350172cd'/>
<id>193b85cc7882762d99f412b796c67f9c350172cd</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Avoid error when distance or time cost is ignored. Refs #6203</title>
<updated>2018-03-15T17:25:30+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-03-15T17:23:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=dd8b4cc13d8e052d0fac7a25569f869470198256'/>
<id>dd8b4cc13d8e052d0fac7a25569f869470198256</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>RouteWayCostUnitConverter: Round kilometres to 2 decimal places</title>
<updated>2018-03-15T16:44:22+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-15T16:40:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=1a9656e9d69d598cd1239c372f1002d21ec73d09'/>
<id>1a9656e9d69d598cd1239c372f1002d21ec73d09</id>
<content type='text'>
The JavaScript validation doesn't pass if we have more than two decimal
places (I think because it uses a number field step value of 0.01).
Round the values to allow them to pass frontend validation.

Refs #6203
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The JavaScript validation doesn't pass if we have more than two decimal
places (I think because it uses a number field step value of 0.01).
Round the values to allow them to pass frontend validation.

Refs #6203
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename `RouteWayCostJSONSerializer` to `RouteWayCostUnitConverter`</title>
<updated>2018-03-15T16:44:22+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-15T16:18:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=18bf033af20f883e92a4f05bbba5070d70fe9d90'/>
<id>18bf033af20f883e92a4f05bbba5070d70fe9d90</id>
<content type='text'>
Because we need to pass a Ruby hash to Rabl instead of a JSON string,
get rid of our serialiser and instead turn it into a function that just
converts the distance &amp; time units.

Fix a bug in the test that had the `'1-2'` key as a symbol instead of a
string which was caused by a copy-paste from JSON and not being thorough
enough in search-and-replace.

Refs #6203
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because we need to pass a Ruby hash to Rabl instead of a JSON string,
get rid of our serialiser and instead turn it into a function that just
converts the distance &amp; time units.

Fix a bug in the test that had the `'1-2'` key as a symbol instead of a
string which was caused by a copy-paste from JSON and not being thorough
enough in search-and-replace.

Refs #6203
</pre>
</div>
</content>
</entry>
<entry>
<title>Add `RouteWayCostJSONSerializer`</title>
<updated>2018-03-15T16:44:22+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-15T16:09:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7fb536325c19e837d10707e9adfc0d8bce5a3976'/>
<id>7fb536325c19e837d10707e9adfc0d8bce5a3976</id>
<content type='text'>
This serialiser will take `Route#costs` and convert the distance and
time fields from meters to kilometres and seconds to minutes
respectively. We need this because the frontend uses kilometre and
minute units while the TomTom API gives us the others (and we store the
data we get from TomTom without treatment).

Unfortunately, due to the way that Rabl works, this doesn't quite work
just yet. The serializer returns a string, and Rabl just puts this
string into the JSON output instead of a real JSON hash. Looks like I'm
going to have to convert my serializer into a generic converter.

Refs #6203
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This serialiser will take `Route#costs` and convert the distance and
time fields from meters to kilometres and seconds to minutes
respectively. We need this because the frontend uses kilometre and
minute units while the TomTom API gives us the others (and we store the
data we get from TomTom without treatment).

Unfortunately, due to the way that Rabl works, this doesn't quite work
just yet. The serializer returns a string, and Rabl just puts this
string into the JSON output instead of a real JSON hash. Looks like I'm
going to have to convert my serializer into a generic converter.

Refs #6203
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #379 from af83/6095-route--calculate-distance-and-time-cost-between-stops</title>
<updated>2018-03-15T16:09:34+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-03-15T16:09:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=f011f7e9806ffeaaba3ad73510bc818211f55dbd'/>
<id>f011f7e9806ffeaaba3ad73510bc818211f55dbd</id>
<content type='text'>
Calculate distance and time cost between Route stops. Refs #6095 </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Calculate distance and time cost between Route stops. Refs #6095 </pre>
</div>
</content>
</entry>
<entry>
<title>Route: Don't run `#calculate_costs!` on callback if TomTom disabled</title>
<updated>2018-03-15T10:53:39+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-15T10:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9291d45e825edbaf52cb556c102498366985496f'/>
<id>9291d45e825edbaf52cb556c102498366985496f</id>
<content type='text'>
We say `TomTom` is disabled when no API key is present. If this is the
case, the `after_save` callback that uses it shouldn't be executed.

I had to change my `API_KEY` constant to an instance variable to be able
to change it for testing.

Refs #6095
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We say `TomTom` is disabled when no API key is present. If this is the
case, the `after_save` callback that uses it shouldn't be executed.

I had to change my `API_KEY` constant to an instance variable to be able
to change it for testing.

Refs #6095
</pre>
</div>
</content>
</entry>
</feed>
