<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/spec, branch 0000-import_dir_in_docker</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 pull request #500 from af83/6545-add_generic_navbar</title>
<updated>2018-04-19T07:46:33+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-04-19T07:46:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=ca0a4907e5714d6f56ede8d47f2514cdd2752e2f'/>
<id>ca0a4907e5714d6f56ede8d47f2514cdd2752e2f</id>
<content type='text'>
6545 add generic navbar</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
6545 add generic navbar</pre>
</div>
</content>
</entry>
<entry>
<title>Fix spec and i18n Refs #6545 @1</title>
<updated>2018-04-19T07:31:18+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-04-19T07:17:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e6c6fb7e7544d840bec4d84f8249ed9d5c01661c'/>
<id>e6c6fb7e7544d840bec4d84f8249ed9d5c01661c</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 #487 from af83/6410-route--don,t-run-calculate_costs-during-referential-mer</title>
<updated>2018-04-18T20:56:28+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-04-18T20:56:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=15a389600730c5e6c393a5537f9c646d1d28a134'/>
<id>15a389600730c5e6c393a5537f9c646d1d28a134</id>
<content type='text'>
Route: Don't run `#calculate_costs!` during a referential merge. Fixes #6410</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Route: Don't run `#calculate_costs!` during a referential merge. Fixes #6410</pre>
</div>
</content>
</entry>
<entry>
<title>Manage download uri in Import::Gtfs (with or without schema or port). Refs #6368</title>
<updated>2018-04-18T19:49:18+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-04-18T19:46:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=35ef1a2abe0a664b259c99538bb95f04ef6408d4'/>
<id>35ef1a2abe0a664b259c99538bb95f04ef6408d4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6476 Add merge permissions</title>
<updated>2018-04-17T05:29:17+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-04-17T05:29:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e91e12ddeb5af8d183c618d5925146a42ab0922f'/>
<id>e91e12ddeb5af8d183c618d5925146a42ab0922f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Route: Don't run `#calculate_costs!` during a referential merge</title>
<updated>2018-04-16T15:46:36+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-16T15:41:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=220e839fddec44c9a1e73fb5e7cd7f701faf726d'/>
<id>220e839fddec44c9a1e73fb5e7cd7f701faf726d</id>
<content type='text'>
This callback got triggered during a referential merge, but it isn't
needed at that point. It should only be executed as a result of a user
updating the route (via the web interface).

Using Alban's suggestion, we can detect that we're in the process of a
merge if the associated referential is in a `ReferentialSuite`. Use this
as a condition to run the callback.

Refs #6410
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This callback got triggered during a referential merge, but it isn't
needed at that point. It should only be executed as a result of a user
updating the route (via the web interface).

Using Alban's suggestion, we can detect that we're in the process of a
merge if the associated referential is in a `ReferentialSuite`. Use this
as a condition to run the callback.

Refs #6410
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #486 from af83/6179-update-acts_as_list</title>
<updated>2018-04-16T14:37:59+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-04-16T14:37:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=85bea8da4f994496b636e2a79dae2f269acbd501'/>
<id>85bea8da4f994496b636e2a79dae2f269acbd501</id>
<content type='text'>
Update acts_as_list. Refs #6179 </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update acts_as_list. Refs #6179 </pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6458; Fix Timetables autocompletion</title>
<updated>2018-04-16T13:23:04+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-04-13T14:01:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=51125f25847db2bb2c654c1bbfd1fd39295693f6'/>
<id>51125f25847db2bb2c654c1bbfd1fd39295693f6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6179; Update acts_as_list</title>
<updated>2018-04-16T12:49:15+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-04-16T12:49:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=eb27950dcf348784dfd0519a92181e11a5c29645'/>
<id>eb27950dcf348784dfd0519a92181e11a5c29645</id>
<content type='text'>
And (hopefully) fix bugs on routes having duplicated positions
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And (hopefully) fix bugs on routes having duplicated positions
</pre>
</div>
</content>
</entry>
<entry>
<title>Route: Change `#calculate_costs!` to `after_commit` callback</title>
<updated>2018-04-16T07:09:20+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-04-06T14:37:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=b05676bdda09c10a7130e0f86527a75e6535dad8'/>
<id>b05676bdda09c10a7130e0f86527a75e6535dad8</id>
<content type='text'>
Use an `after_commit` instead of an `after_save`. The `after_save` could
cause intermittent problems due to Sidekiq starting before the
record/transaction actually gets committed to the database. In those
cases, the record wouldn't be found and cause an error.

With an `after_commit` callback, the record is sure to be committed
before Sidekiq takes over.

Additionally, limit the callback to `:create` and `:update` because
otherwise it will be active on `:destroy` by default also. This work
isn't relevant on destroy, so don't do it then.

Update the tests:

* Update labels
* Use `build` instead of `create` because we're saving the record at the
  end anyway so we don't need an object that starts out persisted
* Use `truncation: true` for these tests because otherwise the `commit`
  callback doesn't get called due to transactional teardown

Refs #6407
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use an `after_commit` instead of an `after_save`. The `after_save` could
cause intermittent problems due to Sidekiq starting before the
record/transaction actually gets committed to the database. In those
cases, the record wouldn't be found and cause an error.

With an `after_commit` callback, the record is sure to be committed
before Sidekiq takes over.

Additionally, limit the callback to `:create` and `:update` because
otherwise it will be active on `:destroy` by default also. This work
isn't relevant on destroy, so don't do it then.

Update the tests:

* Update labels
* Use `build` instead of `create` because we're saving the record at the
  end anyway so we don't need an object that starts out persisted
* Use `truncation: true` for these tests because otherwise the `commit`
  callback doesn't get called due to transactional teardown

Refs #6407
</pre>
</div>
</content>
</entry>
</feed>
