aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
AgeCommit message (Collapse)Author
2018-06-01Refs #7260; Fix wrong day offset computation7260-fix-time-interpolationZog
2018-05-31Merge pull request #594 from af83/7059-failed-clonescedricnjanga
7059 failed clones
2018-05-30Merge pull request #599 from af83/custom-clean-on-routesAlban Peignier
Custom clean on routes. Fixes #7227
2018-05-30Refs #7161; Clean views and routesZog
2018-05-30Refs #6433; Fix specsZog
2018-05-30Refs #7227; Fix deletion of routes hving oppositescustom-clean-on-routesZog
2018-05-29Fix StopPoint#stop_area_lightZog
2018-05-28Merge pull request #569 from af83/6622-fix-loops-in-mergeLuc Donnet
6622 Ensure that the merge operation deals with loops well
2018-05-28Refs #7059; Mark Referentil s filed if the cloning failed7059-failed-clonesZog
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-14Refs #6622; Ensure that the merge operation deals with loops well6622-fix-loops-in-mergeZog
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