<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/controllers, branch 6833-clone-by-command</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>AutocompleteLinesController: Don't error if no `q` param is passed</title>
<updated>2018-04-26T07:16:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-24T13:45:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=0becfb7afdc1e439059c1f82ef6860c1c52d7fd6'/>
<id>0becfb7afdc1e439059c1f82ef6860c1c52d7fd6</id>
<content type='text'>
Previously the action would respond with a 500 error if no `q` parameter
was given in the request. Instead, respond with a 200 and fix the error
that occurs as a result of assuming that `params[:q]` exists in
`AutocompleteLinesController#collection`.

Refs #5889
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the action would respond with a 500 error if no `q` parameter
was given in the request. Instead, respond with a 200 and fix the error
that occurs as a result of assuming that `params[:q]` exists in
`AutocompleteLinesController#collection`.

Refs #5889
</pre>
</div>
</content>
</entry>
<entry>
<title>ReferentialVehicleJourneys: Use display name in line filter drop-down</title>
<updated>2018-04-26T07:16:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T15:34:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9c0013324b3dddb00c70b663a031b4ecf10e92c7'/>
<id>9c0013324b3dddb00c70b663a031b4ecf10e92c7</id>
<content type='text'>
Previously we had been showing the `name` field for the initial value of
an already selected line. However, that doesn't show all the information
that's normally given in the drop-down options. We instead have to use
the `#display_name` method to get the full display that people are used
to seeing in the drop-down.

This also means we can no longer `pluck`, as more fields are required to
assemble the display name. Instead, just do a simple `find` for the
record.

Refs #5889
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously we had been showing the `name` field for the initial value of
an already selected line. However, that doesn't show all the information
that's normally given in the drop-down options. We instead have to use
the `#display_name` method to get the full display that people are used
to seeing in the drop-down.

This also means we can no longer `pluck`, as more fields are required to
assemble the display name. Instead, just do a simple `find` for the
record.

Refs #5889
</pre>
</div>
</content>
</entry>
<entry>
<title>ReferentialVehicleJourneys: Show selected line in drop-down</title>
<updated>2018-04-26T07:16:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T11:59:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e5215f229e3dfa5d84a43bcf75e2edf8c99667a3'/>
<id>e5215f229e3dfa5d84a43bcf75e2edf8c99667a3</id>
<content type='text'>
Previously we weren't showing the currently-selected line filter in the
drop-down label.

If a line is selected, get its ID and name and use those to pre-fill the
select.

Using Select2's `initSelection` option to configure this instead of
putting `selected: ` in the Rails field definition. That would have
looked like this:

    collection: [[@filtered_line.name, @filtered_line.id]],
    selected: params[:q] &amp;&amp; params[:q][:route_line_id_eq],

But doing it that way wasn't possible because this is an AJAX-populated
Select2.

Since we already have a way to use `initSelection`, this was the
quickest and easiest way to go, but apparently Select2 v4.0 deprecated
this option, instead doing it with a data adapter. Couldn't really be
bothered right now to figure out how to set that up as it seemed like a
lot of work for not much payoff right now. Also, I was a little
disappointed in Select2's docs regarding this. From what I understood,
it looks like you basically need to create your own custom data adapter
to do this, which sounds like a pain, and I'm not sure if I would have
to mess with the rest of our existing Select2 configuration setup in
order to integrate that.

Refs #5889
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously we weren't showing the currently-selected line filter in the
drop-down label.

If a line is selected, get its ID and name and use those to pre-fill the
select.

Using Select2's `initSelection` option to configure this instead of
putting `selected: ` in the Rails field definition. That would have
looked like this:

    collection: [[@filtered_line.name, @filtered_line.id]],
    selected: params[:q] &amp;&amp; params[:q][:route_line_id_eq],

But doing it that way wasn't possible because this is an AJAX-populated
Select2.

Since we already have a way to use `initSelection`, this was the
quickest and easiest way to go, but apparently Select2 v4.0 deprecated
this option, instead doing it with a data adapter. Couldn't really be
bothered right now to figure out how to set that up as it seemed like a
lot of work for not much payoff right now. Also, I was a little
disappointed in Select2's docs regarding this. From what I understood,
it looks like you basically need to create your own custom data adapter
to do this, which sounds like a pain, and I'm not sure if I would have
to mess with the rest of our existing Select2 configuration setup in
order to integrate that.

Refs #5889
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6620; Show 'chrono' icon in computed journeys</title>
<updated>2018-04-26T05:05:10+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-04-23T11:27:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=fd537c998c2c25f2beeb8d9e17f7d91ca6973255'/>
<id>fd537c998c2c25f2beeb8d9e17f7d91ca6973255</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6669; Revert Workaround</title>
<updated>2018-04-25T13:46:33+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-04-25T09:23:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=913dd3b3c6cfa0b519ac3043e8b0a4efc4d983b9'/>
<id>913dd3b3c6cfa0b519ac3043e8b0a4efc4d983b9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Workaround to CustomField initialization. #custom_fields_values requires to know the associated referential. Refs #6669</title>
<updated>2018-04-25T13:46:33+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-04-25T08:38:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=a0567f40c0ad57abcf630d97816e38f73750138e'/>
<id>a0567f40c0ad57abcf630d97816e38f73750138e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Specify workgroup to Chouette::StopArea.custom_fields. Refs #6669</title>
<updated>2018-04-25T13:46:33+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-04-25T07:44:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=2272a75da51315c5ec702a293438796c0f88ccbb'/>
<id>2272a75da51315c5ec702a293438796c0f88ccbb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6472; Add Constraint Zone exclusions to journeys</title>
<updated>2018-04-25T07:12:26+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-04-25T07:12:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d0c9be18498c1179a9341f51c5705a736d21ea71'/>
<id>d0c9be18498c1179a9341f51c5705a736d21ea71</id>
<content type='text'>
along with the React interface
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
along with the React interface
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix netex import launch because referential is created after the netex import and java call Refs #6645 @1</title>
<updated>2018-04-22T19:18:41+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-04-22T14:12:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=c93e050debe52243a927b491aa1ce7c93c8dd03b'/>
<id>c93e050debe52243a927b491aa1ce7c93c8dd03b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #508 from af83/6630-clean-up-fix-attempt</title>
<updated>2018-04-21T13:53:38+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-04-21T13:53:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=0e842bc3123dc40e2b93b3d6710cfb242b19fa93'/>
<id>0e842bc3123dc40e2b93b3d6710cfb242b19fa93</id>
<content type='text'>
Refs #6630 Fix server error on clean up</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs #6630 Fix server error on clean up</pre>
</div>
</content>
</entry>
</feed>
