aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
AgeCommit message (Collapse)Author
2018-04-25Refs #6711; Update checksums on parentsZog
When a StopPoint is updated
2018-04-25Merge pull request #519 from af83/6472-itls-exclusionsAlban Peignier
Add Constraint Zone exclusions to journeys. Refs #6472
2018-04-25Refs #6472; Add Constraint Zone exclusions to journeys6472-itls-exclusionsZog
along with the React interface
2018-04-24Refs #6431 small changes on line & stop area statuscedricnjanga
2018-04-24Restore 'data' clean (vehicle_journey/journey_pattern/route). Use ↵5372-clean-with-metadata-2Alban Peignier
referential metadata to clean routes. Make date_type/begin_date/end_date optionnal for internal usage. Refs #5372
2018-04-23Refs #6642; Fix metadata JSON serialization6642-fix-metadata-serializationZog
2018-04-23Merge pull request #510 from af83/6634-update-checksum-on-duplicated-routesAlban Peignier
Fix checksum issues with duplicated routes. Refs #6634
2018-04-23Refs #6634; Fix checksum issues with duplicated routes6634-update-checksum-on-duplicated-routesZog
2018-04-23Add delegation on :registration_number in StopPointAlban Peignier
2018-04-22Associate TimeTable & VehicleJourneys by using VehicleJourney ids and not ↵Alban Peignier
checksum. Refs #6648
2018-04-22Use both JourneyPattern and Route checksum to manage VehicleJourney merges. ↵Alban Peignier
Refs #6646
2018-04-22Fix api v1 netex import spec Refs #6645 @1Luc Donnet
2018-04-22Fix api v1 netex import spec Refs #6645 @16306-translation-in-csv-exportsLuc Donnet
2018-04-22Fix netex import launch because referential is created after the netex ↵Luc Donnet
import and java call Refs #6645 @1
2018-04-22Refs #6306 Add I18n to CSV export columnscedricnjanga
2018-04-22Merge RoutingConstraintZones with Routes. Refs #6644Alban Peignier
2018-04-22Merge PurchaseWindows when associated to a VehicleJourney. Refs #5956Alban Peignier
2018-04-22Use min/max in PurchaseWindow checksum_attributes. Refs #6643Alban Peignier
2018-04-22Include purchase windows in VehicleJourney checksum. Refs #5956Alban Peignier
2018-04-20Merge pull request #468 from af83/6493-fix-stop_areas-sortteddywing
6493 Sort StopAreas on the type label, instead of the internal key
2018-04-19Refs #6193; Show journey length in VJs editorZog
If `journey_length_in_vehicle_journeys` feature is enabled
2018-04-19Refs #6413; Only require durations in journey patternsZog
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-19Refs #6573; Fix task6573-fix-checksums-update-taskZog
Force-load all models beforehand
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-18Create local_temp_directory if needed. Refs #6368Alban Peignier
2018-04-16Refs #6477; Use custom fields values in checksum calculation6477-use-custom-fields-in-checksumsZog
2018-04-16Refs #6539; Add helper to retrieve a timezone's full nameZog
`Paris` -> `Europe/Paris`
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-16Refs #6450; Don't consider the empty string as a valid color for TimetablesZog
Same for PurchazeWindows
2018-04-16Refs #6458; Fix Timetables autocompletionZog
2018-04-16Merge pull request #485 from ↵Alban Peignier
af83/6551-add_custom_field_values_to_journey_patterns Add CustomFields to JourneyPatterns. Refs #6551
2018-04-16Refs #6551; Add CustomFields to JourneyPatterns6551-add_custom_field_values_to_journey_patternsZog
2018-04-16Improve Route stop_points position check. Use CHOUETTE_ROUTE_POSITION_CHECK ↵Alban Peignier
env variable. Refs #6179
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-15Merge#save_current makes ready the new current referential. Refs #6554Alban Peignier
2018-04-15Change Referential.new_from invocation in Merge#prepare_new. Refs #6535Alban Peignier
2018-04-15Remove CustomField :for_workgroup scope (use Workgroup#custom_fields)Alban Peignier
2018-04-12Refs #6445 Change ReferentialMetada validationto allowed one day period and ↵cedricnjanga
change error message
2018-04-12Refs #6527; Fix VJs editor6527-fix-vjs-editorZog
2018-04-11Merge pull request #467 from af83/fix-duplicate-positions-in-routesteddywing
Add a sentinel in dev mode to help capture the "double positions" bug
2018-04-11Refs #6493; Sort StopAreas on the type label, instead of the internal keyZog
2018-04-11Fix specs (hopefully)Zog
2018-04-11Fix specs (WIP)Zog
2018-04-11Add a sentinel in dev mode to help capture the "double positions" bugZog
2018-04-11Refs #6483; Only use VJ-bound Custom fieldsZog
2018-04-10Refs #6426; Disable "Create opposite route" action instead of hiding itZog
2018-04-10Refs #6461; Don't initilialize CustomFields when they are not loaded by the ↵Zog
model