aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
AgeCommit message (Collapse)Author
2018-01-05Use a custom slug for Workbench output new referential. Refs #5299Alban Peignier
2018-01-05Fixes ReferentialCloning specs. Refs #52995299-merge-operationAlban Peignier
2018-01-05Add comment in Merge. Refs #5299Alban Peignier
2018-01-05Clean existing timetables. Cut and merge new timetables. Associate ↵Alban Peignier
VehicleJourneys and TimeTables. Refs #5299
2018-01-05Add TimeTable#remove_periods! and #empty. Refs #5299Alban Peignier
2018-01-05Add Line#time_tables. Refs #5299Alban Peignier
2018-01-05Merge TimeTables. Refs #5299Alban Peignier
2018-01-05Add TimeTable##intersect_periods! to remove given periods. Refs #5299Alban Peignier
2018-01-05Add TimeTablePeriod#range method. Refs #5299Alban Peignier
2018-01-05Merge VehicleJourneys and VehicleJourneyAtStops. Refs #5299Alban Peignier
2018-01-05Sort VehicleJourney#vehicle_journey_at_stops by position to compute ↵Alban Peignier
checksum. Refs #5299
2018-01-05Update VehicleJourney checksum in factory when stops are created. Refs #5417Alban Peignier
2018-01-05Support undefined current/new in ↵Alban Peignier
ReferentialSuite#validate_consistent_current/new. Order ReferentialSuite#referentials by created_at. Refs #5299
2018-01-05Create ReferentialCloning#clone_with_status! and #clone! for inline clone ↵Alban Peignier
usage. Refs #5283
2018-01-05Ignore Referential with referential_suite_id in Workbench#all_referentials. ↵Alban Peignier
Refs #5330
2018-01-05Create first merge interface. Refs #5299Alban Peignier
2018-01-05Merge Route and their StopPoints in the same operation to create Route with ↵Alban Peignier
same checksums. Refs #5299
2018-01-05Order stop_points by position to compute JourneyPattern checksum. Refs #5318Alban Peignier
2018-01-05First try for route/stop_point and journey_pattern merge. Refs #5299Alban Peignier
2018-01-05Move (clean) period split logic into Range#remove. Refs #5299Alban Peignier
2018-01-05Rewrite metadata merge (still partial). Refs #5299Alban Peignier
2018-01-05Ignore detect_overlapped_referentials when Referential is into a ↵Alban Peignier
ReferentialSuite. Refs #5299
2018-01-05Create Merge operation. Refs #5299Alban Peignier
2018-01-04Display checksum for journey patterns -m RefsXinhui
2018-01-04Refs ##5461 Add validation on some Compliance Controls to avoid negative ↵cedricnjanga
values on dynamic attributes
2018-01-04#5451 Add validation only accept positive values for the dynamic attributescedricnjanga
2018-01-03Merge branch 'master' into ↵Luc Donnet
5024-prevent-duplicate-referentials-from-being-created-during-parallel-db-transactions--rb201711271659
2017-12-29Validates import file extension with CarrierWave extension_whitelist. Refs #4762Alban Peignier
2017-12-29Refs #4786 Update VehicleJourneyControl::WaintingTime validation for maximum ↵cedricnjanga
(minimum => 0)
2017-12-29Refs #5415 fix ComplianceControl#show for controls which dont have dynamic ↵cedricnjanga
attributes
2017-12-28Merge pull request #184 from af83/5313_stop_areas_parentAlban Peignier
Manage stop area parent in form and show. Refs #5313
2017-12-28Add specs on StopArea parent area_type validation. Refuse parent of the same ↵5313_stop_areas_parentAlban Peignier
type. Refs #5313
2017-12-28Add log messages when Referential can't be created. Remove useless ↵Alban Peignier
build_referenial invocation in ReferentialsController#create. Refs #5297
2017-12-27Merge pull request #183 from af83/5407-add-purchase-windows-to-vehicle-journeysAlban Peignier
Add purchase windows to vehicle journeys. Refs #5407
2017-12-27Add purchase_windows into ↵Alban Peignier
VehicleJourney#update_has_and_belongs_to_many_from_state. Refs #5407
2017-12-27Merge pull request #176 from af83/fix-routes-editorAlban Peignier
Fix l'editeur de route
2017-12-27Refs #5407;Zog
:fire: useless code Rename some vars
2017-12-27Add validation on stop_area parent_id area_typeXinhui
Refs #5313
2017-12-27Refs #5407 @2h; Model implementationZog
- Link PurchaseWindows to VehicleJourneys in the model - Add an autocompletion endpoint
2017-12-27Refs #5407 @4h; First UI implementationZog
- Add most of the react code - And the specs where possible Still remains: - Link PurchaseWindows to VehicleJourneys in the model - Add an autocompletion endpoint
2017-12-27Merge pull request #180 from af83/5367-add-color-inputAlban Peignier
Add a ColorSelectInput. Refs #5367
2017-12-26Refs #5367 @2H; Add a ColorSelectInputZog
- Added to PurchaseWindow form - Reuse already exisiting JS + CSS - We may want to change the colors names
2017-12-26Select2 stop_area form parent_id fieldXinhui
2017-12-26Enable GDL in StopArea enumeration. Refs #5311Alban Peignier
2017-12-23Merge pull request #161 from ↵Luc Donnet
af83/5316-migrate-compliance-control-and-check-attributes-from-hs 5316 migrate compliance control and check attributes from hstore to json column type
2017-12-22Optimize VehicleJourneysControllerZog
2017-12-21Refs #5349 @1h; Deactivate StopAreas instead of destroying them5349-deactivate-stop-areasZog
- Update decorators (had to split `action_links` because of `StopPointDecorator` inheriting from `StopAreaDecorator`) - Add methods on model - Add routes - Add actions on controller (`Activatable` concern, shared with `LinesController`) - Add I18n keys
2017-12-21Refs #5430 @2h; Deactivate lines instead of destroying themZog
- Add `activate` and `deactivate` actions in `LinesController`, as well as corresponding routes - Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well as `activated?` - Add `activate?` and `deactivate?` permissions in `LinePolicy` - Add corresponding `action_links`in the Decorator - Create helper for these actions - Add an optional `'extra_class` to the Links - Update styles for ".delete-action" to handle the case where there are several - Add I18n keys accordingly
2017-12-21Refs #5301 Add ransackable scope to PurchaseWindow for date_rangescedricnjanga
2017-12-21Merge branch 'master' into ↵Luc Donnet
5316-migrate-compliance-control-and-check-attributes-from-hs