aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
AgeCommit message (Collapse)Author
2018-01-19Add missing spec on VehicleJourneyAtStopZog
2018-01-12Refs #5560; Add validation on CustomField5560-add-validation-on-customfieldsZog
2018-01-11Merge pull request #227 from af83/5551-handle-custom-fields-in-vjs-editorLuc Donnet
5551 Handle custom fields in VJs editor
2018-01-11Refs #5493 @1h; Use local time in the Journeys editorZog
We store UTC times in the database though
2018-01-11Merge pull request #226 from af83/5547-show-vj-idLuc Donnet
5547 Show newly created VJ's short_id in editor
2018-01-11Fixes Chouette::RoutingConstraintZone#route_id presence spec. Refs #5552Alban Peignier
2018-01-11Refs #5551 @1.5h; Implement Custom fields editionZog
RBD: implement the same in the creation modal
2018-01-11Refs #5551; Update CustomField api to better suit JS API needsZog
2018-01-11Refs #5547 @0.25h; Show newly created VJ's short_id in editorZog
2018-01-11Merge pull request #225 from af83/5535-compute-vehicle-journeys-timesLuc Donnet
5535 compute vehicle journeys times
2018-01-10Merge pull request #204 from af83/5413-read_only_policy_for_finalised_refsAlban Peignier
Read only policy for referentials in suite. Refs #5413
2018-01-10Refs: #5505@1h; Small things found in s/models/chouette/vj_spec during ↵Robert
investigation of failures
2018-01-10Fixes: #5505@2h; Migrations, specs and implementationsRobert
- Migration index_resource_type_on_custom_fields - Specing behavior of custom field's resource (VehicleJourney) - Migration create json col custom_field_values for resource (VehicleJourney) - Create accessor methods inside resource (VehicleJourney)
2018-01-10Refs: #5505@0.5h, added tests and validationsRobert
2018-01-10Refs: #5505@1h; Spec discussed, model scaffolded [amend me] [skip-ci]Robert
2018-01-10Fixes: #5499; Added validations and associationsRobert
2018-01-10bup [amend me] [skip-ci]Robert
2018-01-10Refs: #5499@0.5h; Scaffolded WorkgroupRobert
Next: - spec associations and name - spec initialisation - implement
2018-01-10Refs #5535 @0.25h; Adds a `full_schedule?` on `JourneyPattern`Zog
To know if all the costs between the stops of the pattern are set.
2018-01-10Use AreaType.label in StopArea parent type validation message. Refs #5515Alban Peignier
2018-01-09Refs: #5413@0.5h; Refactoring of #archived_or_finalised?Robert
2018-01-08Refs #5455 @6h; Add time and distance between stops in Journey PatternsZog
- Adds a `JSON` attribute in the model - Adds the fields in the editor
2018-01-07Change Chouette::AreaType.find to return nil if specified code is nil. Refs ↵Alban Peignier
#5488
2018-01-05Fixes ReferentialCloning specs. Refs #52995299-merge-operationAlban Peignier
2018-01-05Add TimeTable#remove_periods! and #empty. 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-05Merge VehicleJourneys and VehicleJourneyAtStops. 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-05First try for route/stop_point and journey_pattern merge. 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-03Merge branch 'master' into ↵Luc Donnet
5024-prevent-duplicate-referentials-from-being-created-during-parallel-db-transactions--rb201711271659
2018-01-02Merge pull request #191 from af83/5436-keep-stops-order-on-routes-cloningAlban Peignier
Add specs on Route#duplicate to ensure the stops order is preserved. Refs #5436
2017-12-29Validates import file extension with CarrierWave extension_whitelist. Refs #4762Alban Peignier
2017-12-29Refs #5415 fix ComplianceControl#show for controls which dont have dynamic ↵cedricnjanga
attributes
2017-12-28Fix spec AccessPoint invalid stop_area parentXinhui
Refs #5313
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-28Refs #5436; Add specs on Route#duplicate to ensure the stops order is preserved5436-keep-stops-order-on-routes-cloningZog
2017-12-28Refs #5407; Fix data not being updated in the DBZog
2017-12-28Include purchase_windows in vehicle_journey state into specs. Refs #5407Alban Peignier
2017-12-27Refs #5407 @2h; Model implementationZog
- Link PurchaseWindows to VehicleJourneys in the model - Add an autocompletion endpoint
2017-12-26Don't use i18n into Chouette::AreaType specs. Refs #5311Alban Peignier
2017-12-26Enable GDL in StopArea enumeration. Refs #5311Alban Peignier
2017-12-21Merge branch 'master' into ↵Luc Donnet
5316-migrate-compliance-control-and-check-attributes-from-hs
2017-12-21Remove `hstore_accessor` usageTeddy Wing
The places we were using `hstore_accessor` have now been converted to Postgres JSON fields. Thus we no longer need `hstore_accessor` in order to add accessors for the fields. Instead we can use Rails' built-in support for Postgres JSON fields and create accessors for our JSON hash keys with `store_accessor`. We get rid of the data types because `store_accessor` doesn't work like that and JSON already types our values with primitive data types. Finally, add some extra validation tests now that the vaildation for our JSON fields should work. Refs #5316
2017-12-21Merge pull request #150 from af83/5301-add_business_calendarsLuc Donnet
Refs #5301 First draft for Business Calendars
2017-12-21BusinessCalendar => PurchaseWindowcedricnjanga
belongs_to referential