aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
AgeCommit message (Collapse)Author
2018-01-11Refs #5500; CR 1Zog
2018-01-11Refs #5500 @3h; Add filters on ReferentialVJ#indexZog
To enable users to filter on stop areas
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-02Merge pull request #186 from af83/5102-begin_of_association_chainLuc Donnet
5102 Use current_organisation as begin_of_association_chain
2018-01-02Merge pull request #187 from af83/5111-begin_of_association_chainLuc Donnet
5111 Use current_organisation as begin_of_association_chain
2017-12-28Disable 'displays a flash message' ReferentialsController specs (params are ↵Alban Peignier
invalid to create a valid cloned referential). Refs #5297
2017-12-28Use current_organisation as begin_of_association_chain in ↵Alban Peignier
StoAreasController. Refs #5111
2017-12-28Use current_organisation as begin_of_association_chain in ↵Alban Peignier
Lines/Companies/Networks/GroupOfLinesController. Refs #5102
2017-12-28Fixes JourneyPatternsCollectonsController. Refs #5407Alban Peignier
2017-12-27Refs #5407; Fix CIZog
2017-12-27Refs #5407 @2h; Model implementationZog
- Link PurchaseWindows to VehicleJourneys in the model - Add an autocompletion endpoint
2017-12-26Refs #5382 @1h; Enable all area types for Stopareas in RoutesZog
Given that the organisation has the matching feature.
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-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-20Complete ReferentialVehicleJourneysController spec to test optional feature. ↵Alban Peignier
Refs #5341
2017-12-20Create ReferentialVehicleJourneysController and ↵Alban Peignier
/referentials/:id/vehicle_journeys. Refs #5341
2017-12-20Use login_user for anonymous controller used into FeatureChecker specs. Refs ↵5339-organisation-and-featuresAlban Peignier
#5339
2017-12-20Improve styles in FeatureCheck code. Refs #5339Alban Peignier
2017-12-20Create Organisation#features and FeatureChecker controller concerns. Refs #5339Alban Peignier
2017-12-19Refs #5333; Minor CR improvementZog
2017-12-19Refs #5333@1.5h; Use permissions to sync StopAreas and LinesZog
- add missing policies - update permissions translator - update views to check for the permission - update views helper to check for the permission - uipdate controllers to check for the permission
2017-12-19Merge pull request #159 from ↵Luc Donnet
af83/5317-add-flash-messages-to-inform-users-when-asynchronous-jo 5317 add flash messages to inform users when asynchronous jo
2017-12-19Controller spec AutocompleteStopAreas5305_autocomplete_stop_area_unaccentXinhui
Refs #5305
2017-12-18Referentials#create: Add flash message on referential duplicationTeddy Wing
When a "duplicate referential" action is initiated, show a flash message to let users know that it started and is in progress (and will take a while since it's an asynchronous task). Refs #5317
2017-12-18Referentials#validate: Update flash messageTeddy Wing
* Luc specified a new flash message string to use here. Update the old one with the new version. * Move the translation key to `notice.referentials.validate` because we have multiple "operation_in_progress" messages (this one for validation, and another for referential cloning/duplication). * Add a test to confirm that the flash message is set. Refs #5317
2017-12-18Imports#create: Add flash messageTeddy Wing
Add a message to let users know that the import has started and to be patient while it does its thing. Refs #5317
2017-12-06- Change inheritance naming in api/v1 controllers => it generated errorscedricnjanga
- add format: :json in controller specs
2017-12-05Add some changes according to PR reviewcedricnjanga
2017-11-27Merge branch 'master' of github.com:af83/stif-boivcedricnjanga
2017-11-27Test Devise::CasSessionsController flash message with more specific messageAlban Peignier
2017-11-22Change the use of namespace and remove modulescedricnjanga
2017-11-22Merge branch 'master' into 4941-refactoring_object_idcedricnjanga
2017-11-22Merge branch 'master' into 4941-refactoring_object_idcedricnjanga
2017-11-20Change the use of namespace and remove modulescedricnjanga
2017-11-17Refs: #4823@1.7h; CodeReview #show -> #executedRobert
2017-11-17Merge branch '4516_cleanup_rule_parameter_set'Xinhui
2017-11-14Remove rule parameter set controller, views, helperXinhui
Refs #4516
2017-11-13ComplianceCheckSets#validated: Add response bodyTeddy Wing
On successful status update, respond with the `ComplianceCheckSet` object attributes. Otherwise, respond with an error JSON. Refs #4757
2017-11-13ComplianceCheckSetsController: Get ComplianceCheckSet and update statusTeddy Wing
Get the `ComplianceCheckSet` from the URL and call its `#update_status` method. This doesn't currently work all the way. We need to send a real response. Refs #4757
2017-11-13Add route stub for validation finalisationTeddy Wing
This route will be called by the Java application when ComplianceCheck validation is completed. It will perform post-validation work, primarily updating statuses. Refs #4757
2017-11-09Refs #4932 Change route duplication to redrect to routes#indexcedricnjanga
2017-11-08fix bad indentationGuillaume
2017-11-08filter compliance_control_set by organisation on valisate referential and ↵Guillaume
add specs
2017-10-31Fix spec to add name for import factory Refs #4816Luc Donnet
2017-10-24Fix spec/controllers/compliance_controls_controller_spec.rb redirect route ↵Luc Donnet
for POST UPDATE
2017-10-16Fix spec compliance_controls and factoriesLuc Donnet
2017-10-03Comment spec/controllers/compliance_control_sets_controller_spec.rb to get ↵Luc Donnet
the build passed
2017-10-02Refs: #4627@0.2h; Fixes regression for renamed compliance_control factoryRobert
2017-09-29Refs Adapt transport mode & submode translationscedricnjanga