<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/models/chouette, branch fix_http_errors</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<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>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>
<entry>
<title>Merge pull request #294 from af83/5863-use-shallow-urls-for-referentials</title>
<updated>2018-02-20T09:38:45+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-02-20T09:38:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d5ff5c82041a9807dbb8bb9a598b74e99ad538f9'/>
<id>d5ff5c82041a9807dbb8bb9a598b74e99ad538f9</id>
<content type='text'>
5863 Remove workbench id from the querystring</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
5863 Remove workbench id from the querystring</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5863 @6h; Remove workbench id from the querystring</title>
<updated>2018-02-20T09:20:18+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-08T09:33:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=3dcea81c627c1c740630ce7306bac55256ce8037'/>
<id>3dcea81c627c1c740630ce7306bac55256ce8037</id>
<content type='text'>
Infer it when possible, and use a nested otherwise
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Infer it when possible, and use a nested otherwise
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5924; Remove `local_id` methods</title>
<updated>2018-02-20T08:50:28+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-20T08:28:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=18d5cec602cd247fe763d810becdbe9626fa3232'/>
<id>18d5cec602cd247fe763d810becdbe9626fa3232</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5924; Fix some bugs revealed during imports</title>
<updated>2018-02-20T08:50:28+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-20T07:31:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=eb428adf7d5fedf947c00f30bf1f04462f2291e3'/>
<id>eb428adf7d5fedf947c00f30bf1f04462f2291e3</id>
<content type='text'>
- The checksum computing for VehicleJourneyAtStops
- Offsets calculation in VehicleJourneys
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- The checksum computing for VehicleJourneyAtStops
- Offsets calculation in VehicleJourneys
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5924 @14h; Extend importers</title>
<updated>2018-02-20T08:50:28+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-19T08:58:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=5fe1e8762051ef567191210ab65e6916cf12b932'/>
<id>5fe1e8762051ef567191210ab65e6916cf12b932</id>
<content type='text'>
Mostly add a way to override the default behaviour and process each row
its own way
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mostly add a way to override the default behaviour and process each row
its own way
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5924 @2h; Update specs</title>
<updated>2018-02-20T08:50:28+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-14T14:13:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=736bd34d8c496b81d456d4e4897197eac344247d'/>
<id>736bd34d8c496b81d456d4e4897197eac344247d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
