<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/models, branch 5940-add-missing-flash</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Add a spec to verify to Referential migration count after creation. Refs #6010</title>
<updated>2018-02-22T18:18:26+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-02-22T18:18:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=02cd9a9e5d05ab9858e6de27e38cd6b56b919d69'/>
<id>02cd9a9e5d05ab9858e6de27e38cd6b56b919d69</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>VehicleJourney#in_purchase_window: Use table namespace in query</title>
<updated>2018-02-22T16:11:48+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-02-22T16:05:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=ea84163e3cfcb721c184772721373ccbbd6b337a'/>
<id>ea84163e3cfcb721c184772721373ccbbd6b337a</id>
<content type='text'>
We were getting this errorwhen filtering by purchase window on the
`ReferentialVehicleJourneys#index` page.

An example of a filter query that triggered the error:
http://stif-boiv.dev:3000/referentials/4/vehicle_journeys?utf8=✓&amp;q[published_journey_name_or_objectid_cont]=&amp;q[company_id_eq_any][]=&amp;q[route_line_id_eq]=&amp;q[published_journey_name_gteq]=&amp;q[published_journey_name_lteq]=&amp;q[stop_area_ids][]=&amp;q[purchase_window][start_date(3i)]=12&amp;q[purchase_window][start_date(2i)]=1&amp;q[purchase_window][start_date(1i)]=2018&amp;q[purchase_window][end_date(3i)]=15&amp;q[purchase_window][end_date(2i)]=1&amp;q[purchase_window][end_date(1i)]=2019&amp;q[time_table][start_date(3i)]=&amp;q[time_table][start_date(2i)]=&amp;q[time_table][start_date(1i)]=&amp;q[time_table][end_date(3i)]=&amp;q[time_table][end_date(2i)]=&amp;q[time_table][end_date(1i)]=&amp;commit=Filtrer

    ActiveRecord::StatementInvalid in ReferentialVehicleJourneys#index

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

    PG::AmbiguousColumn: ERROR:  column reference "id" is ambiguous
    LINE 1: ...RE "vehicle_journeys"."journey_category" = 0 AND (id IN (SEL...
                                                                 ^
    : SELECT "public"."lines".* FROM "public"."lines" WHERE (id IN (SELECT  routes.line_id FROM "vehicle_journeys" INNER JOIN "routes" ON "routes"."id" = "vehicle_journeys"."route_id" WHERE "vehicle_journeys"."journey_category" = 0 AND (id IN (SELECT DISTINCT vehicle_journeys.id FROM "purchase_windows" INNER JOIN "purchase_windows_vehicle_journeys" ON "purchase_windows_vehicle_journeys"."purchase_window_id" = "purchase_windows"."id" INNER JOIN "vehicle_journeys" ON "vehicle_journeys"."id" = "purchase_windows_vehicle_journeys"."vehicle_journey_id" AND "vehicle_journeys"."journey_category" = 0 WHERE (daterange('2018-01-12', '2019-01-16') &amp;&amp; any (date_ranges))))  ORDER BY "vehicle_journeys"."published_journey_name" ASC LIMIT 10 OFFSET 0))

    Extracted source (around line #24):

              class: 'control-label'
          .form-inline.filter_menu
            = f.input :route_line_id_eq,
                as: :select,
                include_blank: t(".all"),
                collection: @vehicle_journeys.lines,

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

We're trying to match `VehicleJourney`s here, so qualify the `id` column
with the table name to fix the error.

Refs #5943
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We were getting this errorwhen filtering by purchase window on the
`ReferentialVehicleJourneys#index` page.

An example of a filter query that triggered the error:
http://stif-boiv.dev:3000/referentials/4/vehicle_journeys?utf8=✓&amp;q[published_journey_name_or_objectid_cont]=&amp;q[company_id_eq_any][]=&amp;q[route_line_id_eq]=&amp;q[published_journey_name_gteq]=&amp;q[published_journey_name_lteq]=&amp;q[stop_area_ids][]=&amp;q[purchase_window][start_date(3i)]=12&amp;q[purchase_window][start_date(2i)]=1&amp;q[purchase_window][start_date(1i)]=2018&amp;q[purchase_window][end_date(3i)]=15&amp;q[purchase_window][end_date(2i)]=1&amp;q[purchase_window][end_date(1i)]=2019&amp;q[time_table][start_date(3i)]=&amp;q[time_table][start_date(2i)]=&amp;q[time_table][start_date(1i)]=&amp;q[time_table][end_date(3i)]=&amp;q[time_table][end_date(2i)]=&amp;q[time_table][end_date(1i)]=&amp;commit=Filtrer

    ActiveRecord::StatementInvalid in ReferentialVehicleJourneys#index

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

    PG::AmbiguousColumn: ERROR:  column reference "id" is ambiguous
    LINE 1: ...RE "vehicle_journeys"."journey_category" = 0 AND (id IN (SEL...
                                                                 ^
    : SELECT "public"."lines".* FROM "public"."lines" WHERE (id IN (SELECT  routes.line_id FROM "vehicle_journeys" INNER JOIN "routes" ON "routes"."id" = "vehicle_journeys"."route_id" WHERE "vehicle_journeys"."journey_category" = 0 AND (id IN (SELECT DISTINCT vehicle_journeys.id FROM "purchase_windows" INNER JOIN "purchase_windows_vehicle_journeys" ON "purchase_windows_vehicle_journeys"."purchase_window_id" = "purchase_windows"."id" INNER JOIN "vehicle_journeys" ON "vehicle_journeys"."id" = "purchase_windows_vehicle_journeys"."vehicle_journey_id" AND "vehicle_journeys"."journey_category" = 0 WHERE (daterange('2018-01-12', '2019-01-16') &amp;&amp; any (date_ranges))))  ORDER BY "vehicle_journeys"."published_journey_name" ASC LIMIT 10 OFFSET 0))

    Extracted source (around line #24):

              class: 'control-label'
          .form-inline.filter_menu
            = f.input :route_line_id_eq,
                as: :select,
                include_blank: t(".all"),
                collection: @vehicle_journeys.lines,

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

We're trying to match `VehicleJourney`s here, so qualify the `id` column
with the table name to fix the error.

Refs #5943
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #319 from af83/5609_slug_format</title>
<updated>2018-02-22T09:58:12+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-02-22T09:58:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=1e137b3347660e8cea9d5c154111ef368fc60609'/>
<id>1e137b3347660e8cea9d5c154111ef368fc60609</id>
<content type='text'>
Avoid problem with numeric in slug. Refs #5609 </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoid problem with numeric in slug. Refs #5609 </pre>
</div>
</content>
</entry>
<entry>
<title>Keep original slug format (with _). Avoid full numeric slug. Refs #5609</title>
<updated>2018-02-22T09:56:39+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-02-22T09:56:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=8aab474b8ad555b4d5f8e28c0af2f6c72741e317'/>
<id>8aab474b8ad555b4d5f8e28c0af2f6c72741e317</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move importers outputs in logs</title>
<updated>2018-02-21T15:18:34+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-21T07:08:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=70396ae000bfc5c2b792c17198efc2a8d87d9ebf'/>
<id>70396ae000bfc5c2b792c17198efc2a8d87d9ebf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve output of importers</title>
<updated>2018-02-21T15:18:34+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-21T06:29:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=a357c68cc96c642f15991a85e3982f4553c32a22'/>
<id>a357c68cc96c642f15991a85e3982f4553c32a22</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5609 Change slug format</title>
<updated>2018-02-20T23:09:20+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-02-20T23:09:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=04f26371e23a116cc7be22bd694010820d469e0c'/>
<id>04f26371e23a116cc7be22bd694010820d469e0c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5901; Update specs and fix unaccented search</title>
<updated>2018-02-20T13:32:41+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-20T10:38:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=05a60eb3e91915ae7192d67599cb3d47a2790507'/>
<id>05a60eb3e91915ae7192d67599cb3d47a2790507</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5901; Makes TimeTable search accent insensitive</title>
<updated>2018-02-20T13:32:41+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-12T15:10:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=eed186f44ee13c73dd6ba3df78f72a89cde3d30d'/>
<id>eed186f44ee13c73dd6ba3df78f72a89cde3d30d</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 #308 from af83/5911-stops-filter-on-referential-journeys-index</title>
<updated>2018-02-20T13:27:22+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-02-20T13:27:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=338a4df2491bebe0acd30c384665dd420899910c'/>
<id>338a4df2491bebe0acd30c384665dd420899910c</id>
<content type='text'>
Better stops filters on ReferentialVJs#index. Refs #5911 </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Better stops filters on ReferentialVJs#index. Refs #5911 </pre>
</div>
</content>
</entry>
</feed>
