aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/concerns
AgeCommit message (Collapse)Author
2017-12-05Fixes: #5179@1h; Referential Creation Enforces objectid_format from ↵5179-ref_creation_enforces_objectid_formatRobert
associated Workbench - CR changes implemented
2017-12-05Refs: #5179@1.25h; Referential Creation Enforces objectid_format from ↵Robert
associated Workbench - changed ObjectIdFormatterSupport as requested - respeced all defined cases - implemented respec Missing: What to do in `define_default_attributes` if ref has no workbench and no `objectid_format`?
2017-12-05Refs: #5179@1h; Referential Creation Enforces objectid_format from ↵Robert
associated Workbench [skip-ci] - speced the `define_default_attributes` part - speced the Reference.new_from part
2017-11-30Merge branch 'master' into 4981_last_editorXinhui Xu
2017-11-28Refactoring move referentialSupport from chouetteController into childrensXinhui
2017-11-27Merge branch 'master' into 4824-create_line_referentialsGuillaume
2017-11-24Take into account code reviewcedricnjanga
2017-11-23Stay up to date with master branchcedricnjanga
2017-11-23Refs #4824, #4825 update old form views to new layout with simple_form, add ↵Guillaume
permissions for create an edit in line and network controller
2017-11-23Remove get_objectid duplicate methodcedricnjanga
2017-11-23Merge branch 'master' into 4824-create_line_referentialsGuillaume
2017-11-22Fix transport modes and submodes modulescedricnjanga
Fix Compliance Control Set flotted links to display on show page
2017-11-22Change the use of namespace and remove modulescedricnjanga
2017-11-22Add some changes to the objectid constructioncedricnjanga
2017-11-22Add Cédric new objectid concernscedricnjanga
objectid_support handles reading and writing object_ids objectid_formater_support gets the right formater class include these concerns in chouette models Remove StifNetexAttributSupport modules because these are handled by the new objectid concerns Add a objectid and formater classes for each format type Add objectid formats to the factories Modify somes specs for object_ids but there are still a number of failling tests
2017-11-22add object_id_format to migrations, create module for call Referential, Line ↵Guillaume
Referential, StopAreaReferential in models, add Enumerize in models Refs #4941
2017-11-22Merge branch 'master' into 4941-refactoring_object_idcedricnjanga
2017-11-20Change the use of namespace and remove modulescedricnjanga
2017-11-17Add some changes to the objectid constructioncedricnjanga
2017-11-17Refs: #4823@4h; Fixed Transport(Sub)mode validation bugRobert
2017-11-17Create objectid format and integrate it in models. Work in progress. Refs #4941cedricnjanga
2017-11-16Refs #4941 rename objectid formater filesGuillaume
2017-11-16 Refs #4941 rename ObjectidFormater modules to ObjectidFormatterGuillaume
2017-11-16Add Cédric new objectid concernscedricnjanga
objectid_support handles reading and writing object_ids objectid_formater_support gets the right formater class include these concerns in chouette models Remove StifNetexAttributSupport modules because these are handled by the new objectid concerns Add a objectid and formater classes for each format type Add objectid formats to the factories Modify somes specs for object_ids but there are still a number of failling tests
2017-11-16Refs #4941 remove object_id_format_to_line_referential module, include just ↵Guillaume
a object_id_format_to_referential module
2017-11-10Add validation and specs to models on objectid_format presencecedricnjanga
2017-11-09split modules objectid_format, remove alias referentialGuillaume
2017-11-09add object_id_format to migrations, create module for call Referential, Line ↵Guillaume
Referential, StopAreaReferential in models, add Enumerize in models Refs #4941
2017-11-06Refs #4813 Add funicular in transport mode enumerationcedricnjanga
2017-10-16Refs: #4720@1.3h;Robert
Validation implemented for min_max_values with correct I18n'd error messages Applied to: VehicleJourneyControl::Speed & GenericAttributeControl::MinMax
2017-10-11update list of transport_modes and sub_modes, fix translate for ↵4706-mofify_sub/transport_modesGuillaume
transport_modes helper Refs #4706
2017-10-04Refs 4517 Add some modification to the two modules to add methods to list ↵cedricnjanga
the sorted transport modes and submodes
2017-09-29Add instance methods to collect transport modes in StifTransportMode modulecedricnjanga
2017-09-29Refs #4517 Add module to deal with transport mode and submodecedricnjanga
2017-09-28Refs #4622 Change the provider_id of the objectid : Use the organisation ↵cedricnjanga
instead of its name
2017-09-22Refs #4593cedricnjanga
Object ID => Change the way provider_id in constructed to replace every space with an underscore.
2017-09-06Resolve merge conflictcedricnjanga
2017-09-05Clean up compliance checks existing code Refs #4389 @1Luc Donnet
2017-09-01Prefix local_id with IBOOXinhui
Refs #4237
2017-08-31Merge branch 'master' into stif_netex_objectidXinhui
2017-08-31Fix features spec connection_linksXinhui
2017-08-31Default local_idXinhui
2017-08-31Refactoring objectid support & specXinhui
2017-08-25ErrorFormat: Add TODO to move this fileTeddy Wing
Robert recommended that this file should not live in concerns. Move it somewhere else (maybe lib/ ?).
2017-08-25ErrorFormat: Change collection structureTeddy Wing
These tests were failing: 1) NetexImport POST netex_imports with correct credentials and incorrect request behaves like illegal attributes missing file does not succeed Failure/Error: expect( json_response_body['errors'][bad_attribute.to_s] ).not_to be_empty TypeError: no implicit conversion of String into Integer Shared Example Group: "illegal attributes" called from ./spec/requests/api/v1/netex_import_spec.rb:90 # ./spec/requests/api/v1/netex_import_spec.rb:77:in `[]' # ./spec/requests/api/v1/netex_import_spec.rb:77:in `block (6 levels) in <top (required)>' # -e:1:in `<main>' 2) NetexImport POST netex_imports with correct credentials and incorrect request name already taken behaves like illegal attributes missing name does not succeed Failure/Error: expect( json_response_body['errors'][bad_attribute.to_s] ).not_to be_empty TypeError: no implicit conversion of String into Integer Shared Example Group: "illegal attributes" called from ./spec/requests/api/v1/netex_import_spec.rb:96 # ./spec/requests/api/v1/netex_import_spec.rb:77:in `[]' # ./spec/requests/api/v1/netex_import_spec.rb:77:in `block (6 levels) in <top (required)>' # -e:1:in `<main>' The problem was caused by the fact that the error messages come back from `ErrorFormat` as an array of hashes, which contain a single key corresponding to the invalid field. Instead, the error messages should be returned as a single hash with a bunch of keys corresponding to the invalid fields. This change gets the above tests to pass.
2017-08-25ErrorFormat: Tidy up whitespaceTeddy Wing
2017-08-22Refs: #4273@3h;Robert
Debugging Java Integration (ZipService -> HTTPService -> Object Creation) - Created an ErrorFormat concern to see what went wrong in the HTTP call as so many things can go wrong due to: * Timeout Issues * Illegal database setup or cleaning before tests
2017-08-10Remove useless codeXinhui
2017-08-08Merge branch 'checksum'Xinhui
2017-07-28Fix vehicle_journey_import specXinhui