aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
AgeCommit message (Collapse)Author
2018-03-22Remove maps code. Refs #6296Alban Peignier
2018-03-21Only notify parent when Import is finished. Refs #6243Alban Peignier
2018-03-13Refs #6006; Fix VehicleJourney#with_ordered_stop_area_ids scope6006-fix-stops-filterZog
2018-03-12Refs #6133; Fix specsZog
2018-03-12Refs #6135; ExportsController#upload endpointZog
With token-based authentication
2018-03-12Refs #6133; Add options on the Exports, and forward them tu the UXZog
2018-03-12refs #6133; Add some basic specsZog
2018-03-12Refs #6133; Fix specsZog
2018-03-07Refs #5889; Add missing specsZog
2018-03-07AutocompleteLinesController: Add basic specs for filtersTeddy Wing
Simple checks that the filters by `number`, line `name`, and company `name` work. Refs #5889
2018-03-02Merge pull request #295 from af83/5865-validate-referential-cloningLuc Donnet
5865 Ensure user is allowed to duplicate a referential
2018-02-21Refs #5865 @1h; Ensure user is allowed to duplicate a referential before ↵Zog
doing so I also changed the way 403 errors are handled, to properly respond with a 403 HTTP code
2018-02-20Refs #5901; Update specs and fix unaccented searchZog
2018-02-20Refs #5901; Makes TimeTable search accent insensitiveZog
2018-02-20Merge pull request #308 from ↵Alban Peignier
af83/5911-stops-filter-on-referential-journeys-index Better stops filters on ReferentialVJs#index. Refs #5911
2018-02-20Refs #5863 @6h; Remove workbench id from the querystringZog
Infer it when possible, and use a nested otherwise
2018-02-19Remove ReferentialVehicleJourneysController when only end stop. Refs #59115911-stops-filter-on-referential-journeys-indexAlban Peignier
2018-02-19Refs #5911 @2h; Better stops filters on ReferentialVJs#indexZog
2018-02-13Refs #5707; Add specsZog
2018-02-12Merge pull request #298 from af83/5432-fix-vjas-json-serializationteddywing
5432 Fix vj#show.rabl
2018-02-09Refs #5432; Fix vj#show.rablZog
2018-02-09Refs #5824; Add specs (and fix some)5824-autocomplete-stop-areas-scopeZog
2018-02-09Refs #5824; Fix specsZog
2018-02-02Refs #5835; Timetables inherit application days from calendars5835-fix-timetable-creationZog
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