aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
AgeCommit message (Collapse)Author
2018-05-31Fix SimpleInterface output to CSVZog
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-30Refs #7227; Performance-oriented cleanup implementationZog
2018-05-29Order custom fields in CustomFieldsSupport#custom_fields_checksum. Refs #7210Alban Peignier
2018-05-29Fix StopPoint#stop_area_lightZog
2018-05-29Fix StopPoint#registration_numberZog
2018-05-29Fix imports vlidations on fileZog
2018-05-29Refs #6916 Fix typocedricnjanga
2018-05-29Refs #6916 Fix import file format validationcedricnjanga
2018-05-28Merge pull request #580 from af83/7031-fox-consolidated-viewLuc Donnet
7031 Css fixes on Consolidated view
2018-05-28Refs #6433; Fix status filterZog
2018-05-28Refs #6433 Use ransackable scope for stop area status filtercedricnjanga
2018-05-28Fix SimpleInterfaces specsZog
2018-05-28Refs #6216; Uniformize output foldersZog
And fix logs
2018-05-28Refs #7031; Fix consolidated view7031-fox-consolidated-viewZog
And remove n+1 queries
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 #7031; Page loading optimizationsZog
2018-05-17Refs #6624; Update parent's checksum on deletionZog
2018-05-17Merge pull request #582 from af83/7073-Fix_imports_detailsLuc Donnet
Fix import details Refs #7073
2018-05-17Fix import details Refs #70737073-Fix_imports_detailsLuc Donnet
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-15CleanUp#clean: Replace `#destroy_*` calls with `#run_methods`Teddy Wing
It turns out that we don't care about destroying orphaned data. From Alban: > Quand on duplique un JDD, on lance un CleanUp, sauf que la partie > "suppression des données orphelines" n'intéresse personne au final. Replace the calls to `#destory_{vehicle_journeys,journey_patterns,routes}` with one to `#run_methods`. This change allows callers to run any cleanup methods defined in `CleanUp`. For example: CleanUp.new(methods: [:destory_routes]) But now by default, none of these destroy methods are run, saving us from doing extra work that it turns out we don't need to bother doing. 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: Remove `#destroy_vehicle_journeys_outside_referential`Teddy Wing
This method is superseded by `#destroy_routes_outside_referential`, which will cascade deletion to include vehicle journeys. 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-11Remove CustomField.none when workgroup isn't defined in ↵Alban Peignier
CustomFieldsSupport.custom_fields
2018-05-10Merge pull request #555 from af83/6923-consolidated-offerAlban Peignier
Display consolidated offer. Fixes #6923
2018-05-10Fix specs. Refs #6960Alban Peignier
2018-05-09Don't change IEV operation status before pinging java API. Refs #6960Alban Peignier
2018-05-09Use Workbench#compliance_control_set_ids virtual attribute to merge with ↵Alban Peignier
existing owner_compliance_control_set_ids. Refs #6960
2018-05-09Associate ComplianceControlSet with parent operation when created. Refs #6960Alban Peignier
2018-05-09Rewrite compliance_control_sets associated to workbench or workgroup edits ↵Alban Peignier
and imports. Refs #6960
2018-05-09Refs #6960; Update imports to use nesw implementationZog
2018-05-07Refs #6960; Add a view to set the controls associated to each workbenchZog
2018-05-07Refs #6960; Add owners to workgroupsZog
And define policies
2018-05-07Add import_compliance_control_sets to WorkgroupsZog
And rename resource methods for better consistency
2018-05-07Better viewsZog
2018-05-07Ignore failed Referentials when looking for duplicatesZog
2018-05-07Trigger compliance checks after importsZog
2018-05-07Fix NETEX importsZog
2018-05-07Rework imports to use Resources and make the a little more verboseZog
2018-05-04Refs #6923; Implement a consolidated viewZog
2018-05-03Refs #6920; Fix typoZog
2018-05-03Refs #6920; Activate Referentils created from scratchZog
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