<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/models, branch 5486-fix-react-warnings</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Merge branch 'master' into 5683-add_workgroup_id_to_calendars</title>
<updated>2018-02-07T15:51:50+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-02-07T15:51:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=73f84052cb2f23159bff4e5abbad170a69031185'/>
<id>73f84052cb2f23159bff4e5abbad170a69031185</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update branch according to master</title>
<updated>2018-02-07T15:46:38+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-02-07T15:46:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=3334b12153f0d24a95b1198742fd0da2444223fe'/>
<id>3334b12153f0d24a95b1198742fd0da2444223fe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5750 @1h; Add a "kind" attribute to StopAreas</title>
<updated>2018-02-07T15:24:32+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-26T15:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=cd0b21446d2b56505917fa310c2e9b23e5819e49'/>
<id>cd0b21446d2b56505917fa310c2e9b23e5819e49</id>
<content type='text'>
This determines if the StopArea is commercial or not
The useless fields are hidden in the form for the non-commercials ones
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This determines if the StopArea is commercial or not
The useless fields are hidden in the form for the non-commercials ones
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5682 @3h; Use same UI as for timetables</title>
<updated>2018-02-07T15:24:32+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-24T15:56:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=37f77f03c15269a82bdd487fd36458f341536baa'/>
<id>37f77f03c15269a82bdd487fd36458f341536baa</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5682; Add application_days field to calendars</title>
<updated>2018-02-07T15:24:32+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-24T06:28:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=53009774ec18387a30689a25ae286ba76e0e15d8'/>
<id>53009774ec18387a30689a25ae286ba76e0e15d8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5750 @1h; Add a "kind" attribute to StopAreas</title>
<updated>2018-02-07T15:24:32+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-26T15:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=cb1c6c42cf0f053d52a08cb8ccdbb70a142ec5ad'/>
<id>cb1c6c42cf0f053d52a08cb8ccdbb70a142ec5ad</id>
<content type='text'>
This determines if the StopArea is commercial or not
The useless fields are hidden in the form for the non-commercials ones
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This determines if the StopArea is commercial or not
The useless fields are hidden in the form for the non-commercials ones
</pre>
</div>
</content>
</entry>
<entry>
<title>StopArea: Don't auto-initialise a value for the `kind` attribute</title>
<updated>2018-02-07T15:14:04+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-02-02T16:44:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=60176816df7bf7291c1df23c52809816d6a8057f'/>
<id>60176816df7bf7291c1df23c52809816d6a8057f</id>
<content type='text'>
We were getting this error on `ReferentialVehicleJourneys#index`:

    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Started GET "/referentials/9/vehicle_journeys" for 172.28.10.14 at 2018-02-01 17:48:32 +0100
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Processing by ReferentialVehicleJourneysController#index as HTML
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Parameters: {"referential_id"=&gt;"9"}
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: locale set to :fr
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Rendered referential_vehicle_journeys/_filters.html.slim (37.0ms)
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Rendered referential_vehicle_journeys/index.html.slim within layouts/application (54.3ms)
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Completed 500 Internal Server Error in 73ms (ActiveRecord: 10.4ms)
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: ActionView::Template::Error (missing attribute: kind):#012    23:         = f.input :published_journey_name_lteq, label: false, wrapper_html: { class: 'w45'}#012    24:     .form-group.togglable#012    25:       = f.label Chouette::StopArea.model_name.human.pluralize, required: false, class: 'control-label'#012    26:       = f.input :stop_area_ids, collection: @all_stop_areas.select(:id, :name).order(name: :asc), checked: params[:q] &amp;&amp; params[:q][:stop_area_ids], as: :check_boxes, label: false, label_method: lambda{|l| ("&lt;span&gt;" + l.name + "&lt;/span&gt;").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'}, multiple: true#012    27:     .form-group.togglable#012    28:       = f.label Chouette::VehicleJourney.human_attribute_name(:purchase_window), class: 'control-label'#012    29:       .filter_menu#012  app/models/chouette/stop_area.rb:51:in `block in &lt;class:StopArea&gt;'#012  app/views/referential_vehicle_journeys/_filters.html.slim:26:in `block in _app_views_referential_vehicle_journeys__filters_html_slim__692539656386688985_47285414929500'#012  app/views/referential_vehicle_journeys/_filters.html.slim:1:in `_app_views_referential_vehicle_journeys__filters_html_slim__692539656386688985_47285414929500'#012  app/views/referential_vehicle_journeys/index.html.slim:9:in `_app_views_referential_vehicle_journeys_index_html_slim___336434325333090796_47285419865660'
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Processing by ErrorsController#server_error as HTML
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Parameters: {"referential_id"=&gt;"9"}
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: locale set to :fr

or, this one locally which is easier to read:

    ActiveModel::MissingAttributeError in ReferentialVehicleJourneys#index

    Showing .../stif-boiv/app/views/referential_vehicle_journeys/_filters.html.slim where line #44 raised:

    missing attribute: kind

    Extracted source (around line #51):

        after_initialize do
    &gt;     self.kind ||= :commercial
        end

        def self.nullable_attributes

    Trace of template inclusion: app/views/referential_vehicle_journeys/index.html.slim

    Rails.root: .../stif-boiv
    Application Trace | Framework Trace | Full Trace

    app/models/chouette/stop_area.rb:51:in `block in &lt;class:StopArea&gt;'
    app/views/referential_vehicle_journeys/_filters.html.slim:44:in `block in _app_views_referential_vehicle_journeys__filters_html_slim___131528464712770693_70134715599760'
    app/views/referential_vehicle_journeys/_filters.html.slim:1:in `_app_views_referential_vehicle_journeys__filters_html_slim___131528464712770693_70134715599760'
    app/views/referential_vehicle_journeys/index.html.slim:9:in `_app_views_referential_vehicle_journeys_index_html_slim__3124451149445015007_70134715309040'

This is because on `ReferentialVehicleJourneys#index`, the StopArea
filter makes this query:

    @all_stop_areas.select(:id, :name).order(name: :asc)

Alban added a temporary fix for the release in
c2bc391ee91cac70e726d188be97dd2323df0df2.

After a discussion with Luc, he said we only want the initial value on
the `#new` form, and we decided to take this out of the model and put it
in the form template instead.

Here, when a new `StopArea` is created, `:commercial` will be pre-filled
in the `kind` field by default. On the `#edit` page, it should show the
existing value of `kind` but not permit editing.

Refs #5817
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We were getting this error on `ReferentialVehicleJourneys#index`:

    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Started GET "/referentials/9/vehicle_journeys" for 172.28.10.14 at 2018-02-01 17:48:32 +0100
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Processing by ReferentialVehicleJourneysController#index as HTML
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Parameters: {"referential_id"=&gt;"9"}
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: locale set to :fr
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Rendered referential_vehicle_journeys/_filters.html.slim (37.0ms)
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Rendered referential_vehicle_journeys/index.html.slim within layouts/application (54.3ms)
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Completed 500 Internal Server Error in 73ms (ActiveRecord: 10.4ms)
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: ActionView::Template::Error (missing attribute: kind):#012    23:         = f.input :published_journey_name_lteq, label: false, wrapper_html: { class: 'w45'}#012    24:     .form-group.togglable#012    25:       = f.label Chouette::StopArea.model_name.human.pluralize, required: false, class: 'control-label'#012    26:       = f.input :stop_area_ids, collection: @all_stop_areas.select(:id, :name).order(name: :asc), checked: params[:q] &amp;&amp; params[:q][:stop_area_ids], as: :check_boxes, label: false, label_method: lambda{|l| ("&lt;span&gt;" + l.name + "&lt;/span&gt;").html_safe}, required: false, wrapper_html: { class: 'checkbox_list'}, multiple: true#012    27:     .form-group.togglable#012    28:       = f.label Chouette::VehicleJourney.human_attribute_name(:purchase_window), class: 'control-label'#012    29:       .filter_menu#012  app/models/chouette/stop_area.rb:51:in `block in &lt;class:StopArea&gt;'#012  app/views/referential_vehicle_journeys/_filters.html.slim:26:in `block in _app_views_referential_vehicle_journeys__filters_html_slim__692539656386688985_47285414929500'#012  app/views/referential_vehicle_journeys/_filters.html.slim:1:in `_app_views_referential_vehicle_journeys__filters_html_slim__692539656386688985_47285414929500'#012  app/views/referential_vehicle_journeys/index.html.slim:9:in `_app_views_referential_vehicle_journeys_index_html_slim___336434325333090796_47285419865660'
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Processing by ErrorsController#server_error as HTML
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: Parameters: {"referential_id"=&gt;"9"}
    Feb  1 17:48:32 chouette-dev rails/chouette[18900]: locale set to :fr

or, this one locally which is easier to read:

    ActiveModel::MissingAttributeError in ReferentialVehicleJourneys#index

    Showing .../stif-boiv/app/views/referential_vehicle_journeys/_filters.html.slim where line #44 raised:

    missing attribute: kind

    Extracted source (around line #51):

        after_initialize do
    &gt;     self.kind ||= :commercial
        end

        def self.nullable_attributes

    Trace of template inclusion: app/views/referential_vehicle_journeys/index.html.slim

    Rails.root: .../stif-boiv
    Application Trace | Framework Trace | Full Trace

    app/models/chouette/stop_area.rb:51:in `block in &lt;class:StopArea&gt;'
    app/views/referential_vehicle_journeys/_filters.html.slim:44:in `block in _app_views_referential_vehicle_journeys__filters_html_slim___131528464712770693_70134715599760'
    app/views/referential_vehicle_journeys/_filters.html.slim:1:in `_app_views_referential_vehicle_journeys__filters_html_slim___131528464712770693_70134715599760'
    app/views/referential_vehicle_journeys/index.html.slim:9:in `_app_views_referential_vehicle_journeys_index_html_slim__3124451149445015007_70134715309040'

This is because on `ReferentialVehicleJourneys#index`, the StopArea
filter makes this query:

    @all_stop_areas.select(:id, :name).order(name: :asc)

Alban added a temporary fix for the release in
c2bc391ee91cac70e726d188be97dd2323df0df2.

After a discussion with Luc, he said we only want the initial value on
the `#new` form, and we decided to take this out of the model and put it
in the form template instead.

Here, when a new `StopArea` is created, `:commercial` will be pre-filled
in the `kind` field by default. On the `#edit` page, it should show the
existing value of `kind` but not permit editing.

Refs #5817
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5682 @3h; Use same UI as for timetables</title>
<updated>2018-02-07T15:07:31+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-24T15:56:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=f4bc83da367bd5823b75d4b2fac6807258349972'/>
<id>f4bc83da367bd5823b75d4b2fac6807258349972</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update calendar form_simple according to workgroup</title>
<updated>2018-02-06T19:21:58+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-02-06T18:43:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=ad7dfea7f280cdf0727dd3471a1f26db4197c394'/>
<id>ad7dfea7f280cdf0727dd3471a1f26db4197c394</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5750 @1h; Add a "kind" attribute to StopAreas</title>
<updated>2018-02-06T19:21:37+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-26T15:17:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=3fa91b720184edfe319081230decc13f695072b2'/>
<id>3fa91b720184edfe319081230decc13f695072b2</id>
<content type='text'>
This determines if the StopArea is commercial or not
The useless fields are hidden in the form for the non-commercials ones
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This determines if the StopArea is commercial or not
The useless fields are hidden in the form for the non-commercials ones
</pre>
</div>
</content>
</entry>
</feed>
