aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2018-01-24Add links to docdeveloper-toolbarZog
2018-01-24- Add a default value for the configZog
- Add a cancel button to dismiss the modal
2018-01-24Add a config file templateZog
2018-01-24Add a toolbar for devs to easily manage permissions and featuresZog
2018-01-22Comment user and operator A creation in stif seedLuc Donnet
2018-01-22Fix bug on VJs indexZog
2018-01-19Merge pull request #238 from af83/5563-show-parent-stop-typeLuc Donnet
5563 Show StopArea type in select box
2018-01-19Add missing spec on VehicleJourneyAtStopZog
2018-01-19Merge pull request #239 from af83/5568-fix-vjs-editorLuc Donnet
5568 Fix VJs editor when a stop has an invalid TZ
2018-01-19Merge pull request #249 from af83/5593-task-to-update-checksumLuc Donnet
Add task to update checksums
2018-01-19Refs #5593; Fix typo5593-task-to-update-checksumZog
2018-01-19Fix bug on VJ index when no JP is selectedZog
2018-01-19Merge pull request #243 from af83/5585_stop_area_waiting_timeLuc Donnet
5585 stop area waiting time
2018-01-19Merge pull request #201 from af83/5466-fix-title-overflow-in-stick-headerLuc Donnet
5466 Fix truncation in the sticky header
2018-01-19Merge pull request #247 from ↵Luc Donnet
af83/5592-workbenches-show--filter-by-workgroup-on-initial-load 5592 workbenches show filter by workgroup on initial load
2018-01-19Merge pull request #248 from af83/5623-fix-schedule-when-jp-is-prefilledLuc Donnet
5623 fix schedule when jp is prefilled
2018-01-19Fix compliance check sets breadcrumb, locales and datas displayLuc Donnet
2018-01-17Refs #5593; Add same task for all referentials in given organisationZog
2018-01-17Refs #5593 @1h;Zog
- Register all models that implement checksums - Add a simple rake task that updates all checksums within a given referential
2018-01-17Merge pull request #246 from af83/5610_vehicle_journey_published_journey_nameLuc Donnet
Fix display of published_journey_name on referential_vehical_journeys…
2018-01-17Refs #5623; Show journey departure time inputs when JP is prefilled5623-fix-schedule-when-jp-is-prefilledZog
2018-01-17Fix display of published_journey_name on referential_vehical_journeys#index5610_vehicle_journey_published_journey_nameXinhui
Refs #5610
2018-01-17Refs #5614 @0.5h; Fix schedule computation when departure minutes are not set5614-fix-schedule-computationZog
2018-01-17offer_workbenches/show.html.erb_spec: Give workbenches same workgroup5592-workbenches-show--filter-by-workgroup-on-initial-loadTeddy Wing
I was getting the following test failures after having modified `Workbench#all_referentials` in 93b60066cc49d699171d6a50798c5939a4644eea: Failures: 1) workbenches/show should include #<Referential id: 5, name: "Test 4", slug: "test_4", created_at: "2018-01-17 10:18:47", updated_at: "...from_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil> Failure/Error: expect(workbench.all_referentials).to include different_organisation_referential expected #<ActiveRecord::AssociationRelation [#<Referential id: 3, name: "Test 2", slug: "test_2", created_at:...om_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil>]> to include #<Referential id: 5, name: "Test 4", slug: "test_4", created_at: "2018-01-17 10:18:47", updated_at: "...from_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil> Diff: @@ -1,2 +1,25 @@ -[#<Referential id: 5, name: "Test 4", slug: "test_4", created_at: "2018-01-17 10:18:47", updated_at: "2018-01-17 10:18:49", prefix: "organisation_5", projection_type: nil, time_zone: "Europe/Paris", bounds: nil, organisation_id: 6, geographical_bounds: nil, user_id: nil, user_name: nil, data_format: "netex", line_referential_id: 14, stop_area_referential_id: 10, workbench_id: 3, archived_at: nil, created_from_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil>] +[#<Referential:0x007fd30e897428 + id: 3, + name: "Test 2", + slug: "test_2", + created_at: Wed, 17 Jan 2018 11:18:42 CET +01:00, + updated_at: Wed, 17 Jan 2018 11:18:44 CET +01:00, + prefix: "organisation_3", + projection_type: nil, + time_zone: "Europe/Paris", + bounds: nil, + organisation_id: 4, + geographical_bounds: nil, + user_id: nil, + user_name: nil, + data_format: "netex", + line_referential_id: 4, + stop_area_referential_id: 4, + workbench_id: 2, + archived_at: nil, + created_from_id: nil, + ready: true, + referential_suite_id: nil, + objectid_format: "stif_netex", + merged_at: nil>] # ./spec/views/offer_workbenches/show.html.erb_spec.rb:37:in `block (2 levels) in <top (required)>' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load' # .../.gem/ruby/2.3.3/gems/spring-commands-rspec-1.0.4/lib/spring/commands/rspec.rb:18:in `call' # -e:1:in `<main>' 2) workbenches/show without permission should disable all the checkboxes Failure/Error: expect(workbench.all_referentials).to include different_organisation_referential expected #<ActiveRecord::AssociationRelation [#<Referential id: 7, name: "Test 6", slug: "test_6", created_at:...om_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil>]> to include #<Referential id: 9, name: "Test 8", slug: "test_8", created_at: "2018-01-17 10:18:55", updated_at: "...from_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil> Diff: @@ -1,2 +1,25 @@ -[#<Referential id: 9, name: "Test 8", slug: "test_8", created_at: "2018-01-17 10:18:55", updated_at: "2018-01-17 10:18:57", prefix: "organisation_11", projection_type: nil, time_zone: "Europe/Paris", bounds: nil, organisation_id: 12, geographical_bounds: nil, user_id: nil, user_name: nil, data_format: "netex", line_referential_id: 26, stop_area_referential_id: 18, workbench_id: 5, archived_at: nil, created_from_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil>] +[#<Referential:0x007fd30eadc210 + id: 7, + name: "Test 6", + slug: "test_6", + created_at: Wed, 17 Jan 2018 11:18:52 CET +01:00, + updated_at: Wed, 17 Jan 2018 11:18:53 CET +01:00, + prefix: "organisation_9", + projection_type: nil, + time_zone: "Europe/Paris", + bounds: nil, + organisation_id: 10, + geographical_bounds: nil, + user_id: nil, + user_name: nil, + data_format: "netex", + line_referential_id: 16, + stop_area_referential_id: 12, + workbench_id: 4, + archived_at: nil, + created_from_id: nil, + ready: true, + referential_suite_id: nil, + objectid_format: "stif_netex", + merged_at: nil>] # ./spec/views/offer_workbenches/show.html.erb_spec.rb:37:in `block (2 levels) in <top (required)>' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load' # .../.gem/ruby/2.3.3/gems/spring-commands-rspec-1.0.4/lib/spring/commands/rspec.rb:18:in `call' # -e:1:in `<main>' 3) workbenches/show with permission referentials.destroy should enable the checkbox for the referential which belongs to the same organisation and disable the other one Failure/Error: expect(workbench.all_referentials).to include different_organisation_referential expected #<ActiveRecord::AssociationRelation [#<Referential id: 11, name: "Test 10", slug: "test_10", created_...om_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil>]> to include #<Referential id: 13, name: "Test 12", slug: "test_12", created_at: "2018-01-17 10:19:03", updated_at...from_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil> Diff: @@ -1,2 +1,25 @@ -[#<Referential id: 13, name: "Test 12", slug: "test_12", created_at: "2018-01-17 10:19:03", updated_at: "2018-01-17 10:19:05", prefix: "organisation_17", projection_type: nil, time_zone: "Europe/Paris", bounds: nil, organisation_id: 18, geographical_bounds: nil, user_id: nil, user_name: nil, data_format: "netex", line_referential_id: 38, stop_area_referential_id: 26, workbench_id: 7, archived_at: nil, created_from_id: nil, ready: true, referential_suite_id: nil, objectid_format: "stif_netex", merged_at: nil>] +[#<Referential:0x007fd309268e30 + id: 11, + name: "Test 10", + slug: "test_10", + created_at: Wed, 17 Jan 2018 11:19:00 CET +01:00, + updated_at: Wed, 17 Jan 2018 11:19:02 CET +01:00, + prefix: "organisation_15", + projection_type: nil, + time_zone: "Europe/Paris", + bounds: nil, + organisation_id: 16, + geographical_bounds: nil, + user_id: nil, + user_name: nil, + data_format: "netex", + line_referential_id: 28, + stop_area_referential_id: 20, + workbench_id: 6, + archived_at: nil, + created_from_id: nil, + ready: true, + referential_suite_id: nil, + objectid_format: "stif_netex", + merged_at: nil>] # ./spec/views/offer_workbenches/show.html.erb_spec.rb:37:in `block (2 levels) in <top (required)>' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `block in load' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency' # .../.gem/ruby/2.3.3/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:268:in `load' # .../.gem/ruby/2.3.3/gems/spring-commands-rspec-1.0.4/lib/spring/commands/rspec.rb:18:in `call' # -e:1:in `<main>' Finished in 29.81 seconds (files took 1.7 seconds to load) 3 examples, 3 failures The new behaviour requires referentials to have the same workgroup in order to be displayed on this page. Modify the test to give both `same_organisation_referential` and `different_organisation_referential` the same workgroup to get the tests to pass. Refs #5592
2018-01-16workbenches/show: Filter referentials by workgroupTeddy Wing
Previously, all `Referential`s would be listed on this page if they had matching line metadata. Now, we exclude those referentials that are in other workgroups to ensure users don't see referentials they're not supposed to see. Refs #5592
2018-01-16Finalize CSV export for ComplianceCheckMessage and Import<essagecedricnjanga
2018-01-16Fix access to public.versions table for Line, StopArea, Network and company ↵Luc Donnet
models Refs #5605 @2
2018-01-16Merge pull request #242 from ↵Luc Donnet
af83/5140-workbenches-show--organisation-filter-should-show-orgs- 5140-workbenches-show--organisation-filter-should-show-orgs-in-workgroup--v2
2018-01-15workbenches_show_spec: Test organisations in filtration listTeddy Wing
Check that only `Organisation`s associated with the current `Workgroup` appear in the list of filters on `Workbenches#show`. Also rewrite the `other_referential` object to put it in a different workbench from the first referential, enabling us to have multiple organisations in the same `Workgroup`. Refs #5140
2018-01-15workbenches/_filters: Only show organisations in workgroupTeddy Wing
We had been listing all `Organisation`s in the check-box list that enables filtering `Referential`s by organisation. There can be many organisations in the database, and users of one org shouldn't necessarily see other organisations. Only allow users to filter by those organisations that belong to their `Workgroup`. To do that, We get the workgroup of the current workbench, and build a list containing the organisations the workgroup. Refs #5140
2018-01-15Add mising whiteline in INSTALL.mdJohan Van Ryseghem
2018-01-15Add infos about grunt in INSTALL.mdJohan Van Ryseghem
2018-01-14Fixes VehicleJourneyAtStop#local_time to prevent errorAlban Peignier
2018-01-14Define Referential#workbench in Merge. Refs #5587Alban Peignier
2018-01-12Change pageheader title for stop areas and linescedricnjanga
2018-01-12Merge pull request #236 from af83/5560-add-validation-on-customfieldsLuc Donnet
5560 Add validation on CustomField
2018-01-12Merge pull request #224 from af83/5529-prevent-double-submitting-of-react-formsLuc Donnet
5529 Prevent double submitting of react forms
2018-01-12Merge pull request #235 from af83/fix-timetables-specsLuc Donnet
Fix Jest specs on timetables
2018-01-12Refs #5529 @0.5h; Refactor buttons5529-prevent-double-submitting-of-react-formsZog
2018-01-12Refs #5529 @0.5h; Prevent double submitting of react formsZog
2018-01-12Refs #5163cedricnjanga
Add compliance check resource status helper Add small changes for CSV export
2018-01-12First draft for ComplianceCheckMessage & ImportMessage CSV exportscedricnjanga
2018-01-12Edit label waiting time5585_stop_area_waiting_timeXinhui
Refs #5585
2018-01-12Add min value to waiting timeXinhui
Refs #5585
2018-01-12Refs #5568 @0.25h; Fix VJs editor when a stop has an invalid TZ5568-fix-vjs-editorZog
2018-01-12Refs #5563 @0.25h; Show StopArea type in select box5563-show-parent-stop-typeZog
2018-01-12Refs #5560; Add validation on CustomField5560-add-validation-on-customfieldsZog
2018-01-12Fix Jest specs on timetablesfix-timetables-specsZog
2018-01-11Refs #5535; Fix specsZog
2018-01-11Merge branch '5535-compute-vehicle-journeys-times'Alban Peignier