aboutsummaryrefslogtreecommitdiffstats
path: root/spec
AgeCommit message (Collapse)Author
2018-03-14Revert "TomTom: Add method for `calculateRoute` endpoint"Teddy Wing
This reverts commit f28a4b2c5b348bc12b455aa0cd76a9513103aea7. As stated in that commit, I'm going to use the `/batch` endpoint instead of `/calculateRoute` because I know that's already working.
2018-03-14TomTom: Add method for `calculateRoute` endpointTeddy Wing
A new method to provide access to the `/calculateRoute` endpoint, which calculates costs for a single route through a bunch of waypoints. This doesn't work currently because the API requires that I send `supportingPoints` in the body of the request. Since I'm not too clear on what those are, I'm going to cut off development of this method here and just use `#batch` instead for my purposes. My idea was to use this endpoint instead of `/batch` to allow us to calculate a single route instead of having the API do `/calculateRoute` for each of our point pairs. This seemed like it would be more efficient, and give us our distance and time costs between each waypoint all in one go, but since I'm not clear on how to use this API and whether it will give us the correct data, I'm going to stick with `/batch`. I'll probably be reverting this code. Just committing it now in case it becomes useful in the future. Refs #6095
2018-03-14Add `TomTom` class to communicate with their APITeddy Wing
Provides an interface to communicate with the TomTom API. Currently includes a method `#batch` to make a batch routing request (https://developer.tomtom.com/online-routing/online-routing-documentation/batch-routing). Left a bunch of development-related code in just to preserve my in-progress stages. Originally I was told to use the matrix routing API, but that turned out to not match what we wanted. Namely, matrix routing would produce a table with every point routed with every other point. We instead want routes of each segment in a line, in order (or, just the diagonal of the matrix). Using the batch API allows us to get the routes we need without doing unnecessary work. Update the `WayCost` class to provide `departure` and `arrival` methods as readers, and make `id` an optional parameter for now. (We still need to figure out how we're dealing with ID.) Refs #6095
2018-03-14Merge pull request #348 from af83/6036-fix-journeys-editorAlban Peignier
Fix the journeys time editor. Refs #6036
2018-03-14Refs #6021: Make DAY_OFFSET_MAX configurableZog
2018-03-14Refs #6021 @1h; Allow journeys to span over 3 daysZog
And fix the way offsets are computed to use the timezones
2018-03-14Refs #5972 @1h; Automatic registration_number generationZog
2018-03-14Refs #61066107-bind-stop_area_referential-and-workgroupsZog
Refs #6107 Binds LineReferentials and StopAreaReferentials to Workgroups, and enforce uniqueness
2018-03-14Refs #6146; Fix display in tablesZog
2018-03-14Refs #6146; Add specsZog
2018-03-13Try and fix specsZog
2018-03-13Refs #6006; Fix VehicleJourney#with_ordered_stop_area_ids scope6006-fix-stops-filterZog
2018-03-13Refs #6040; Enforce stop points positions in merged Referential6040-fix-stop-points-poitions-in-merged-routesZog
2018-03-12Fix specsZog
2018-03-12Merge pull request #361 from af83/6068-simple-exporterLuc Donnet
6068 simple exporter
2018-03-12Refs #5146 Line state updatecedricnjanga
2018-03-12Regs #6133; Define file's extensions whitelist on a per-class basis6133-new-exportsZog
2018-03-12Refs #6133; Fix specsZog
2018-03-12Refs #6135; ExportsController#upload endpointZog
With token-based authentication
2018-03-12Refs #6133; Full UX for exportsZog
Also added a *dumb* `WorkgroupExport` for testing purposes.
2018-03-12Refs #6133; Add options on the Exports, and forward them tu the UXZog
2018-03-12refs #6133; Add some basic specsZog
2018-03-12Refs #6133; Fix specsZog
2018-03-12Refs #6133; Remove former implementationZog
2018-03-09Refs #5934 clean spec filecedricnjanga
2018-03-09Refs #5934 Remove destructive action links for route stop points in Routes#showcedricnjanga
2018-03-09Refs #5934 Add specs to routes spec featurecedricnjanga
2018-03-09Merge pull request #366 from af83/5989-fix_compliance_check_resource_statusLuc Donnet
Fix compliance_check_resource and compliance_check_set status Refs #5…
2018-03-08Refs #6028 small changes in model attribute for CC6028-compliance-controls-model-attributescedricnjanga
2018-03-08Fix compliance_check_resource and compliance_check_set status Refs #5989 @15989-fix_compliance_check_resource_statusLuc Donnet
2018-03-07Refs #5889; Add missing specsZog
2018-03-07AutocompleteLinesController: Add basic specs for filtersTeddy Wing
Simple checks that the filters by `number`, line `name`, and company `name` work. Refs #5889
2018-03-06Refs #6068; Fix specs6068-simple-exporterZog
2018-03-06Refs #6068; Add aggregated output for multiple interfacesZog
2018-03-05Refs #5855 Fix spec failurescedricnjanga
2018-03-05Refs #5855 Avoid creation of CCBlocks duplicates in the same CCSetcedricnjanga
2018-03-05Merge pull request #359 from af83/6068-simple-exporterAlban Peignier
Simple exporter. Refs #6068
2018-03-05Refs #6068; :fire: useless methodZog
and fix specs
2018-03-05Refs #6068; First steps toward JSON exporterZog
2018-03-05Delete use of current_offer_workbench and replace by current_workbench Refs ↵Luc Donnet
#4658
2018-03-05Refs #6068; Add some helpers in the modelsZog
2018-03-05Refs #6068; Export VehicleJourneysZog
Add a mechanism to allow for several rows in the csv per single object in the collection.
2018-03-03Merge pull request #351 from ↵Luc Donnet
af83/6008-no-transition-time-for-journeys-start-and-end 6008 Use same time for arrival & departure in 1st and last stops
2018-03-03Merge pull request #356 from af83/6044_add_ccset_spec_affectationLuc Donnet
Refs #6044 Add spec to check that CCSet#index only dislays objets fro…
2018-03-02Refs #6068; Create a SimpleExporter modelZog
This is an STI model, inheriting from SimpleInterface SimpleImporter has been updated to work likewise
2018-03-02Merge pull request #295 from af83/5865-validate-referential-cloningLuc Donnet
5865 Ensure user is allowed to duplicate a referential
2018-03-01Merge pull request #237 from af83/proposed-custom-fields-refactorteddywing
Proposed custom fields refactor
2018-03-01Merge pull request #302 from af83/5877-handle-nil-objects-in-tablebuilderhelperLuc Donnet
5877 Add a condition on TableBuilderHelper::Column
2018-02-28Refs #6044 Add spec to check that CCSet#index only dislays objets from user orga6044_add_ccset_spec_affectationcedricnjanga
- Small change in ComplianceControlSetsHelper#organisations_filters_values to avoid errors - Add spec
2018-02-27Refs #6008; Use same time for arrival & departure in 1st and last stops6008-no-transition-time-for-journeys-start-and-endZog