aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-12-23Merge pull request #175 from ↵Luc Donnet
af83/5366-add-feature-specs-for-the-CRUD-actions-on-PurchaseWindo 5366 add feature specs for the crud actions on purchase windo
2017-12-22Speed VehicleJourneys#index view upZog
2017-12-22Fix README outdated documentationLuc Donnet
2017-12-22Optimize VehicleJourneysControllerZog
2017-12-22Fix FormHelperZog
<!> There is no spec (yet)
2017-12-22And fix the codeZog
2017-12-22Update Specs to what should be the correct behaviourZog
2017-12-22Update node and yarn chapter in INSTALL.mdLuc Donnet
2017-12-22Update install guidelinesLuc Donnet
2017-12-22Refactor stopPointsReducer spec;Zog
For now no bug has been fixed :-)
2017-12-21Remove absolute path for rake in capistrano. Refs #5368Alban Peignier
2017-12-21Skip link class in gear_menu_link when emptyAlban Peignier
2017-12-21Switch to ruby 2.3 in capistrano. Refs #5368Alban Peignier
2017-12-21Merge pull request #174 from af83/5361-make-company-optional-on-linesAlban Peignier
Make company optional in Lines form. Refs #5361
2017-12-21Add line#company attribute in i18n. Refs #53615361-make-company-optional-on-linesAlban Peignier
2017-12-21Refs #5361 @1H; Make company optional in Lines formZog
And handle the case when it is nil in the views
2017-12-21Merge pull request #169 from af83/5349-deactivate-stop-areasAlban Peignier
Deactivate StopAreas. Refs #5349
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-21Merge pull request #165 from af83/5340-deactivate-linesAlban Peignier
Deactivate lines instead of destroying them. Refs #5340
2017-12-21Refs #5340 @O.1h; Remove deletion link for lines ...5340-deactivate-linesZog
... In Referential#show
2017-12-21Fix deprecated syntax in StopAreaReferentialsController specZog
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-21Merge pull request #171 from af83/5253-truncate-breadcrumbAlban Peignier
Truncate long breadcrumbs. Refs #5354
2017-12-21Merge pull request #172 from ↵Alban Peignier
af83/5355-add-button-to-opposite-itinerary-timetable Add opposite route button on timetables. Refs #5355
2017-12-21Change button type for opposite route link. Refs #53555355-add-button-to-opposite-itinerary-timetableAlban Peignier
2017-12-21Remove purchase windows from default dashboard (??). Add direct links to ↵Alban Peignier
lines/companies/networks. Refs #5301
2017-12-21Refs #5301 Add ransackable scope to PurchaseWindow for date_rangescedricnjanga
2017-12-21purchase_windows_spec: Add feature spec for destroyTeddy Wing
Check that `PurchaseWindow`s can be destroyed, starting from the `#index` page. Update the i18n key used in the decorator to get the text that appears in the alert when destroying a `PurchaseWindow` so that it correctly corresponds to the one used in the locale file. Refs #5366
2017-12-21purchase_windows_spec: Add feature test for PurchaseWindow updateTeddy Wing
Test that `PurchaseWindow`s can be updated starting from the `#index` page. Refs #5366
2017-12-21purchase_windows_spec: Add #index new/create testTeddy Wing
Add a feature spec that creates a new `PurchaseWindow` from the #index page. Fix i18n keys for `simple_form` to correctly show labels inside the form and be able to identify the correct elements inside the test. Refs #5366
2017-12-21Fixes purchase windows i18n .Refs #5301Alban Peignier
2017-12-21Use a default color by waiting color selector. Refs #5301Alban Peignier
2017-12-21Add purchase_windows link when optional feature is present. Refs #5301Alban Peignier
2017-12-21Disable color and date filters for purchase windows. Refs #5301Alban Peignier
2017-12-21Fixes i18n fr for purchase_windows (begin/end ranges). Refs #5301Alban Peignier
2017-12-21Merge branch 'master' into ↵Luc Donnet
5316-migrate-compliance-control-and-check-attributes-from-hs
2017-12-21Merge pull request #173 from af83/5358-fix-undefined-in-headerLuc Donnet
5358 Fix `undefined` appearing in header
2017-12-21Merge branch '5316-migrate-compliance-control-and-check-attributes-from-hs' ↵Luc Donnet
of github.com:AF83/stif-boiv into 5316-migrate-compliance-control-and-check-attributes-from-hs
2017-12-21ComplianceControl.dynamic_attributes: Use `stored_attributes`Teddy Wing
This method must return the keys of all `control_attributes` in subclasses of `ComplianceControl`. Now that we're not using `hstore_accessor`, this breaks. Use `stored_attributes` to get the keys since we create virtual attributes using Rails' `store_accessor`. Refs #5316
2017-12-21Add `down` to 20171218174509 Hstore to JSON migrationTeddy Wing
Copy Cédric's JSON to Hstore migration for the `down` here to give us the ability to roll back. I'm guessing the solution probably comes from here: https://stackoverflow.com/questions/28315948/casting-json-to-hstore-in-postgres-9-3/28319295#28319295 Refs #5316
2017-12-21Gemfile: Remove `hstore_accessor`Teddy Wing
We're no longer using this gem. See: * b54daa7b2d7925131572e5e5d5181cf3515a6057 * 993650cd1739a3c4c2dd6a4dc01110b57ef88f36 Refs #5316
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-21Change `compliance_{controls,checks}` `control_attributes` to JSONTeddy Wing
Make these columns JSON fields again. Do this because of bugs trying to validate types with `hstore_accessor` (https://github.com/devmynd/hstore_accessor/issues/78). With a JSON field, types are preserved and we don't have to deal with casting back and forth. Previously we had converted to Hstore because the Java IEV application used an older ORM version (maybe Hibernate) that didn't support the Postgres JSON type. Because of the validation problems with Hstore, the Java application has been updated to support JSON fields. Thanks to this Stack Overflow post from 'a_horse_with_no_name' that describes how to convert from Hstore to JSON types in Postgres: https://stackoverflow.com/questions/33732529/postgres-how-to-convert-hstore-to-json-datatypes#comment55234342_33732529 Converting in this direction seems to me to be much safer because we're not losing type information. All the values should be hashes of strings, which should convert without issue into JSON. Refs #5316
2017-12-21Merge pull request #150 from af83/5301-add_business_calendarsLuc Donnet
Refs #5301 First draft for Business Calendars
2017-12-21Refs #4787 Add waiting time unitycedricnjanga
2017-12-21Merge branch '5301-add_business_calendars' of github.com:AF83/stif-boiv into ↵Luc Donnet
5301-add_business_calendars
2017-12-21Commit schemacedricnjanga
2017-12-21Refs # 5308 Fix translation errors on Referential#index filterscedricnjanga
2017-12-21Refs #4838 Add number of controls in ComplianceControlSet#indexcedricnjanga
2017-12-21Add unaccent extension to schema.rbLuc Donnet