| Age | Commit message (Collapse) | Author | 
|---|
|  |  | 
|  |  | 
|  | same logic | 
|  |  | 
|  |  | 
|  | Because we need to pass a Ruby hash to Rabl instead of a JSON string,
get rid of our serialiser and instead turn it into a function that just
converts the distance & time units.
Fix a bug in the test that had the `'1-2'` key as a symbol instead of a
string which was caused by a copy-paste from JSON and not being thorough
enough in search-and-replace.
Refs #6203 | 
|  | This serialiser will take `Route#costs` and convert the distance and
time fields from meters to kilometres and seconds to minutes
respectively. We need this because the frontend uses kilometre and
minute units while the TomTom API gives us the others (and we store the
data we get from TomTom without treatment).
Unfortunately, due to the way that Rabl works, this doesn't quite work
just yet. The serializer returns a string, and Rabl just puts this
string into the JSON output instead of a real JSON hash. Looks like I'm
going to have to convert my serializer into a generic converter.
Refs #6203 | 
|  | Render the `costs` field of a `Chouette::Route` as JSON. This lives at:
http://stif-boiv.dev:3000/referentials/4/lines/1857/routes/7/costs.json
I want this in order to get the distance & time costs of a route so that
I can merge them with `JourneyPattern#costs` on the frontend on
`JourneyPatternsCollection#show`.
Refs #6203 | 
|  |  | 
|  | Subtleties were that the links need to reference `StopArea`s. In
particular, the `edit` link goes to the `StopAreaReferential` path
instead of the referential-StopArea path.
Refs #5586 | 
|  | Important to add the `action: :index` argument on the table builder in
the `ReferentialLines#show` page so that the gear menu links render
correctly.
Refs #5586 | 
|  | Refs #5460 | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | We now always use modules for namespaces
=> same structure for models, decorators, policies... | 
|  |  | 
|  |  | 
|  | Refactoring tables titles for routes | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | Add trad to React itineraries | 
|  |  | 
|  |  | 
|  | Rewrite table builder calls to work with the new
`TableBuilderHelper::Column#link_to` mechanism for defining the linked
column and what it points to. This takes the link out of the
`TableBuilderHelper`, and puts it into the hands of the view.
It gives us more flexibility with regards to what can be defined as a
link in our tables and what those links point to.
This will be used in a more meaningful way in the `imports#show` page to
list `NetexImport`s and provide links to both the referential associated
with a Netex import and the imported file status page from a table row. | 
|  |  | 
|  |  | 
|  | Update the table builder helper for the table of `Chouette::StopPoints`
on this page.
Created a new `StopPointDecorator` which unfortunately has the same code
as `StopAreaDecorator`, the only difference being that instead of using
`object`, it uses `object.stop_area`. Need to work out how to eliminate
that code duplication.
Refs #3479 | 
|  |  | 
|  | Instead of defining the header links in the view, get them from our
decorator so we can reuse them. Need to wrap `@route` in the decorator
in the controller and pass it the necessary context in order for it to
be able to properly build links.
Move `Chouette::RouteDecorator` to the top level app/decorators/
directory and remove it from the `Chouette` namespace. I had put it
there to make it more similar to our model directory layout, but Draper
isn't intelligent enough to look in subdirectories of `decorators` when
using the `ActiveRecord::Base#decorate` method. Otherwise I suppose I
could do `Chouette::RouteDecorator.decorate(@route)`, but that seemed
not as clean since it doesn't take advantage of the default behaviour of
Draper. Now going to have to do this for the other decorators.
Refs #3479 | 
|  |  | 
|  | Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com> | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  | Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com> | 
|  | Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Signed-off-by: Jean Pual Lescouzères <jpl-laboulette@af83.com> | 
|  | Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com> | 
|  |  | 
|  |  | 
|  | Refs #2839 | 
|  |  | 
|  |  | 
|  |  | 
|  |  | 
|  |  |