aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
AgeCommit message (Collapse)Author
2018-05-17Test opposite routes in merge referential. Refs #6842Alban Peignier
2018-05-17Associate opposite_routes during merge (when available). Refs #6842Alban Peignier
2018-05-17Refs #6624; Update parent's checksum on deletionZog
2018-05-15CleanUp: Add `#destroy_empty`6854-clean-up--destroy-routes-outside-referentialTeddy Wing
Gives us a single call site to trigger the destruction of vehicle journeys, journey patterns, and routes without content. This was previously done directly in the `#clean` method, but since it's not needed during referential duplication (only during merges), we don't want to enable it by default. Thus now to activate the same old functionality, you would create a `CleanUp` like this: CleanUp.new(methods: [:destroy_empty]) Refs #6854
2018-05-14CleanUp: Add `#run_methods`Teddy Wing
This method is coupled with a new virtual attribute that can be used in the initializer like: CleanUp.new(methods: [:destroy_routes]) The method will run all methods specified in the `:methods` list. The plan is to replace the calls to `destroy_routes` etc. with a call to this method. The result will be a more configurable clean-up process, allowing users to selectively choose what to clean up by declaring what methods in the `CleanUp` model to call. Refs #6854
2018-05-14CleanUp spec: Pass ids to `#exists?` callTeddy Wing
Looks like I temporarily forgot that this method takes an ID. Refs #6854
2018-05-14CleanUp#destroy_routes_outside_referential: Test cascadeTeddy Wing
Ensure that `JourneyPattern`s and `VehicleJourney`s associated with orphaned routes get deleted in cascade. Refs #6854
2018-05-14CleanUp: Add `#destroy_routes_outside_referential`Teddy Wing
This builds on `#destroy_vehicle_journeys_outside_referential` (which will soon be removed in favour of this new method). It destroys orphaned routes in a referential. Refs #6854
2018-05-11Avoid time shift in User specsAlban Peignier
2018-05-10Fix specs. Refs #6960Alban Peignier
2018-05-04Refs #6920; Fix specs6920-activate-newly-created-referentialsZog
2018-05-03Refs #6920; Fix typoZog
2018-05-02Refs #6572; Fix specs6572-make-new-referentials-pendingZog
2018-05-02Refs #6572; Crete Referentials in a pending stateZog
And fix a bug preventing the deletion of referentials without a schema
2018-04-30Fix VehicleJourney#fill_passing_times!Zog
2018-04-29Fix more specsZog
2018-04-27Refs #6572; Fix specsZog
2018-04-27Refs #6572; Fix specsZog
2018-04-27Refs #6572; New Referential#Show for noredy referentialsZog
2018-04-27Refs #6572; Use new statesZog
2018-04-27Refs #6572; Define 4 different states on ReferentialsZog
With according methods and scopes
2018-04-27Fix Vehicle journeys specsZog
2018-04-27Disable 'compute passing time' specAlban Peignier
2018-04-26Replace AF83::SchemaCloner by a dump/sed/restore command. Refs #6833Alban Peignier
2018-04-26Refs #6826; Fix times interpolation with day offsets6826-fix-times-interpolationZog
2018-04-26Refs #6811; Fix specsZog
2018-04-26Truncate Referential#slug. Refs #6811Alban Peignier
2018-04-26Fix CustomField specsZog
2018-04-26Avoid problem in merge specs with route checksum (problem not reproduced in ↵Alban Peignier
real condition)
2018-04-26Fixes problems in ReferentialCloning specs. Refs #5372Alban Peignier
2018-04-26Fixes problems in CleanUp specs. Refs #5372Alban Peignier
2018-04-25Merge pull request #520 from af83/6711-update-parents-checksumAlban Peignier
Update checksums on parents. Fixes #6711
2018-04-25Merge pull request #524 from af83/6762-merge-ignored_routing_contraint_zonesAlban Peignier
Merge VehicleJourney ignored_routing_contraint_zone_ids. Refs #6762
2018-04-25Update VehicleJourney checksum when StopPoint change isn't necessary in fact ↵6711-update-parents-checksumAlban Peignier
(#mybad). Refs #6711
2018-04-25Refs #6762; Fix bug on RoutingConstraintsZone mergeZog
And add some specs
2018-04-25Refs #6669; delay the custom fields initialization until the workgroup is loadedZog
2018-04-25Make mandatory workgroup for class method custom_fields (not available for ↵Alban Peignier
Company or StopArea for exemple). Refs #6669
2018-04-25Refs #6669; Fix CustomField initializationZog
Use the current referential to infer the workgroup
2018-04-25Merge pull request #474 from ↵teddywing
af83/6445-referential-period-error-display-and-validation Refs #6445 Change ReferentialMetada validationto allowed one day peri…
2018-04-25Refs #6711; Update checksums on parentsZog
When a StopPoint is updated
2018-04-24Refs #6445 Update specs according to new validationscedricnjanga
2018-04-22Fixes JourneyPattern specs (by adding position in JourneyPattern state). ↵Alban Peignier
Refs #6193
2018-04-22Fixes JourneyPattern specs with distance is not defined/zero. Refs #6413Alban Peignier
2018-04-22Fixes Calendar::Period specs. Refs #5519Alban Peignier
2018-04-19Refs #5519; Authorize 1-day calendarsZog
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-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 #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