aboutsummaryrefslogtreecommitdiffstats
path: root/spec
AgeCommit message (Collapse)Author
2018-04-19Merge pull request #488 from af83/6477-use-custom-fields-in-checksumsAlban Peignier
Use custom fields values in checksum calculation. Refs #6477
2018-04-19Merge pull request #500 from af83/6545-add_generic_navbarLuc Donnet
6545 add generic navbar
2018-04-19Fix spec and i18n Refs #6545 @16545-add_generic_navbarLuc Donnet
2018-04-18Merge pull request #487 from ↵Alban Peignier
af83/6410-route--don,t-run-calculate_costs-during-referential-mer Route: Don't run `#calculate_costs!` during a referential merge. Fixes #6410
2018-04-18Manage download uri in Import::Gtfs (with or without schema or port). Refs #6368Alban Peignier
2018-04-16Refs #6476 Add merge permissions6476-merge-permissionscedricnjanga
2018-04-16Refs #6477; Use custom fields values in checksum calculation6477-use-custom-fields-in-checksumsZog
2018-04-16Route: Don't run `#calculate_costs!` during a referential merge6410-route--don,t-run-calculate_costs-during-referential-merTeddy Wing
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
2018-04-16Merge pull request #486 from af83/6179-update-acts_as_listAlban Peignier
Update acts_as_list. Refs #6179
2018-04-16Refs #6458; Fix Timetables autocompletionZog
2018-04-16Refs #6179; Update acts_as_list6179-update-acts_as_listZog
And (hopefully) fix bugs on routes having duplicated positions
2018-04-16Route: Change `#calculate_costs!` to `after_commit` callbackTeddy Wing
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
2018-04-13Refs #6536; Cleanup value passed for secondary_company_ids by the lines form6536-fix-lines-formZog
2018-04-11Specs cleanupZog
2018-04-11Fix specs (WIP)Zog
2018-04-10Refs #6461; Don't initilialize CustomFields when they are not loaded by the ↵Zog
model
2018-04-10Refs #6481; Add a spec to ensure we d'ont alter the original route when ↵Zog
duplicating it
2018-04-10Merge pull request #460 from af83/6360-workbenchimport-displayLuc Donnet
6360 Add checks on calendars during WorkbenchImport
2018-04-10Merge pull request #438 from af83/6368-gtfs-importLuc Donnet
GTFS import (first step)
2018-04-10Merge pull request #450 from ↵Luc Donnet
af83/6404-way-costs--snap-distance-and-time-to-1-when-between-0-a 6404: RouteWayCostUnitConverter: Snap values between 0–1 to 1
2018-04-09Refs #6367; Add a merge mechanismZog
And use it in the Referential merge operation
2018-04-09Refs #6367; Add metadata to other versioned modelsZog
2018-04-09Refs #6367; Add metadata to routesZog
2018-04-09Refs #6360; Add checks on calendars during WorkbenchImportZog
2018-04-05RouteWayCostUnitConverter: Snap values between 0–1 to 16404-way-costs--snap-distance-and-time-to-1-when-between-0-aTeddy Wing
We use integer values for distance (kilometres) and time (minutes). If the values aren't very big, like bus stops inside a city for example, the integer conversion will put distance and time at `0`, which isn't correct. To continue to use our chosen measurement units while still displaying something that makes sense to users, snap any values >0 and <=1 to `1`. Refs #6404
2018-04-05Merge pull request #412 from af83/6217-extrapolate-border-passing-timesLuc Donnet
6217 Add a method to fill blanks in journeys passing times
2018-04-04Delete unused spec because we add a parameter to the function duplicate Refs ↵Luc Donnet
#6226
2018-04-04Merge pull request #390 from af83/6226-create-opposite-routeLuc Donnet
6226 Add a button to automatically create opposite routes
2018-04-04Refs #6226; Add spec6226-create-opposite-routeZog
2018-04-04Refs 6226; Add a button to create opposite routesZog
2018-04-04Fix ExportsController specsZog
We no longer return a redirect, but a JSON message instead
2018-04-04Fix more specsZog
2018-04-04Fix specsZog
2018-04-04:fire: logsZog
2018-04-04Fix specsZog
2018-04-04Fix specsZog
2018-04-04Refs #6089; Adds `attachment` Custom FieldsZog
As well as an helper to render them in a partial
2018-04-04Merge pull request #413 from ↵Alban Peignier
af83/6222-route-way-costs--use-TomTom-matrix-API-instead-of-batch Route way costs use tom tom matrix api instead of batch. Refs #6222
2018-04-03Use match_array to test expected_attributes. Refs #63686368-gtfs-importAlban Peignier
2018-04-03Add GTFS::Time and use it to compute day offset for VehicleJourneys. Refs #6368Alban Peignier
2018-04-02Import TimeTableDates from calendar dates. Refs #6368Alban Peignier
2018-04-01Create Referential in Import::Gtfs. Test file with ↵Alban Peignier
Import::Gtfs.accept_file?. Refs #6368
2018-03-31Import calendars before testing trips import. Refs #6368Alban Peignier
2018-03-31Download imported file on a local file. Refs #6368Alban Peignier
2018-03-31Add calendar imports to Import::Gtfs. Refs #6368Alban Peignier
2018-03-30Merge pull request #360 from af83/new-uniqueness-validation-for-ccblocksLuc Donnet
New uniqueness validation for ccblocks
2018-03-30Merge pull request #428 from af83/4658-remove-current_functional_scopeAlban Peignier
Remove `current_functional_scope`. Refs #4658
2018-03-30Fix spec/features/calendars_permissions_spec.rb to use correct Workgroup ↵Luc Donnet
Refs #6258 @1
2018-03-30Initial import for agencies, stops, routes, trips and stop_times. Refs #6368Alban Peignier
2018-03-30Merge pull request #397 from af83/6258-calendar-workgroupLuc Donnet
Refs #6258 associate calendars with current organisation