<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/views, branch 6486-fix-bumpy-front</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<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: Fix line drop-down placeholder</title>
<updated>2018-04-26T07:16:15+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-19T15:23:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=de3762e2db02f876bdd032c9e1afe716d3c25dde'/>
<id>de3762e2db02f876bdd032c9e1afe716d3c25dde</id>
<content type='text'>
After adding the `initvalue` data attribute, the placeholder was no
longer rendered. Fix this by:

1. Removing all elements from the collection to ensure that boolean
   options don't get added by default to the select
   (https://github.com/plataformatec/simple_form/blob/84e4465/lib/simple_form/inputs/collection_input.rb#L36-L41)
2. Not setting an `initSelection` on the Select2 config if the initial
   selection fields are empty.

This finally gets the placeholder to display correctly again.

Refs #5889
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After adding the `initvalue` data attribute, the placeholder was no
longer rendered. Fix this by:

1. Removing all elements from the collection to ensure that boolean
   options don't get added by default to the select
   (https://github.com/plataformatec/simple_form/blob/84e4465/lib/simple_form/inputs/collection_input.rb#L36-L41)
2. Not setting an `initSelection` on the Select2 config if the initial
   selection fields are empty.

This finally gets the placeholder to display correctly again.

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>Display StopArea timezone in stop_areas/show. Refs #6683</title>
<updated>2018-04-25T20:46:02+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-04-25T20:40:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e15d1e4c59ddeff10a4630fee280618818a67b36'/>
<id>e15d1e4c59ddeff10a4630fee280618818a67b36</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6683; Uniformize the time_zones notation</title>
<updated>2018-04-25T20:44:51+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-04-25T13:34:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=0e64912dd2c299df543ed03e2cd6609bc7d6dec6'/>
<id>0e64912dd2c299df543ed03e2cd6609bc7d6dec6</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 #466 from af83/6431-line-and-stop-area-status</title>
<updated>2018-04-25T15:59:33+00:00</updated>
<author>
<name>teddywing</name>
</author>
<published>2018-04-25T15:59:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9fec2b10fa947047e9a8a2f354d232c402b1ef40'/>
<id>9fec2b10fa947047e9a8a2f354d232c402b1ef40</id>
<content type='text'>
Refs #6431 small changes on line &amp; stop area status</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs #6431 small changes on line &amp; stop area status</pre>
</div>
</content>
</entry>
<entry>
<title>Unify custom_fields codes in StopArea/Company forms. Refs #6669</title>
<updated>2018-04-25T13:46:33+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-04-25T07:46:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=91f253454d261767b9a9c9d5a328b3c6d149cee9'/>
<id>91f253454d261767b9a9c9d5a328b3c6d149cee9</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>Refs #6431 Add small changes on stop area &amp; line status display to have the same logic</title>
<updated>2018-04-24T20:03:04+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-04-24T20:03:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9050f4dde351e27e2cf33df7d1a4bc3b694ac04c'/>
<id>9050f4dde351e27e2cf33df7d1a4bc3b694ac04c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6431 small changes on line &amp; stop area status</title>
<updated>2018-04-24T19:08:37+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-04-10T16:40:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=1f8d2759c545e60ab2989fc6331e55e95a3b0e67'/>
<id>1f8d2759c545e60ab2989fc6331e55e95a3b0e67</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
