| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2018-03-26 | Refs #6218; Limit accessible exports for workgroups | Zog | |
| 2018-03-22 | Remove maps code. Refs #6296 | Alban Peignier | |
| 2018-03-18 | Refs #6210 Remove status value attribue from Chouette::VehicleJourney and ↵6210-remove-attributes-from-models | cedricnjanga | |
| section status fron Chouette::JourneyPattern | |||
| 2018-03-16 | Fix stop_area state for filter and display. Update reflex sync to use ↵ | Luc Donnet | |
| confirmed_at. Refs #6141 | |||
| 2018-03-15 | Routes: Add `/costs` route | Teddy Wing | |
| Render the `costs` field of a `Chouette::Route` as JSON. This lives at: http://stif-boiv.dev:3000/referentials/4/lines/1857/routes/7/costs.json I want this in order to get the distance & time costs of a route so that I can merge them with `JourneyPattern#costs` on the frontend on `JourneyPatternsCollection#show`. Refs #6203 | |||
| 2018-03-15 | Merge pull request #372 from af83/6146-line-states | Luc Donnet | |
| 6146 Line state update | |||
| 2018-03-15 | Ignore undefined CustomFields in extra headers for ↵ | Alban Peignier | |
| VehicleJourneysController. Refs #6143 | |||
| 2018-03-15 | Add StopArea#status in stop_areas#_form. Refs #60336033-stop-area-states | Alban Peignier | |
| 2018-03-15 | Refs #6033 Fix stop areas spec feature | cedricnjanga | |
| 2018-03-15 | Refs #6033 Changes for StopArea#index and StopArea#show | cedricnjanga | |
| 2018-03-14 | Fix access for import ressources Refs #6133 @3 | Luc Donnet | |
| 2018-03-14 | Refs #6146; Fix "activated/deactivated" filter | Zog | |
| 2018-03-12 | Refs #5146 Line state update | cedricnjanga | |
| 2018-03-12 | Refs #6133; Fix specs | Zog | |
| 2018-03-12 | Refs #6135; ExportsController#upload endpoint | Zog | |
| With token-based authentication | |||
| 2018-03-12 | Refs #6133; Full UX for exports | Zog | |
| Also added a *dumb* `WorkgroupExport` for testing purposes. | |||
| 2018-03-12 | Refs #6133: Async exports | Zog | |
| 2018-03-12 | Refs #6133; Add options on the Exports, and forward them tu the UX | Zog | |
| 2018-03-12 | refs #6133; Add some basic specs | Zog | |
| 2018-03-12 | Refs #6133; First Crud for exports | Zog | |
| 2018-03-12 | Refs #6133; Fix specs | Zog | |
| 2018-03-07 | AutocompleteLines: Sanitize `:q` param in `LIKE` operator | Teddy Wing | |
| Johan made a number of good points here: > * I think this belongs in the model > * I would rather use a named parameter here > `.where('lines.number LIKE :q OR lines.names LIKE :q ...', q: > "%#{params[:q]}%")` > * You should defiitely escape the params before passing it to your db. > `sanitize_sql_like` seems like the best choice here I wasn't thinking about sanitisation at all and just assumed the `?`s in the prepared statement would take care of it for me. But obviously, we're passing `%`s in the param, so users can of course do the same thing. Protect against this using the `ActiveRecord::Sanitization#sanitize_sql_like` method. This is a private class method, so in order to use it we have to call it from inside the `Chouette::Line` model. And of course the named parameters are a no-brainer. At the time, I had seen that `Array` splat somewhere else in the codebase and just blindly copied the format, forgetting that named parameters even existed. Refs #5889 | |||
| 2018-03-07 | AutocompleteLinesController: Move filter SQL string inside query | Teddy Wing | |
| Get rid of the heredoc to allow us to put the string inside the argument to the function directly and thus make the query more readable by putting it in context. Refs #5889 | |||
| 2018-03-07 | AutocompleteLinesController: Include company name in filter | Teddy Wing | |
| The `#display_name` used in the drop-down on `ReferentialVehicleJourneys#index` includes the line's company name. Include this as a field to filter lines by. Additionally, use `%query%` filtering everywhere. It's going to be slower, but will produce the same behaviour for all fields for consistency and is easier for searching by company name when you might want to filter by a term in the middle of the name. Refs #5889 | |||
| 2018-03-07 | ReferentialVehicleJourneys#index: Make lines filter asynchronous | Teddy Wing | |
| Instead of doing a complex query to get the lines available to filter on, just get all the lines in the current referential. We then filter those by what was typed into the select2 box and asynchronously respond with line options in a new JSON autocomplete controller. Here we're only providing the option to filter by `number` and `name` field on the line. I'd like to filter by everything in the `#display_name`. I don't think the objectid is going to be easy to integrate into the SQL query but I'd like to add the company part. It's possible we could do the objectid filter in Ruby instead of the database query. Refs #5889 | |||
| 2018-03-04 | Refs #3562 Small change in controller to match routes | cedricnjanga | |
| 2018-03-02 | Refs #3562 Take review into account and clean a little bit | cedricnjanga | |
| 2018-03-02 | Refs Refs #3562 Add workbench CCSET affectation | cedricnjanga | |
| 2018-03-02 | Merge pull request #295 from af83/5865-validate-referential-cloning | Luc Donnet | |
| 5865 Ensure user is allowed to duplicate a referential | |||
| 2018-03-01 | Refs #5940; Add missing flash after Calendar creation | Zog | |
| 2018-03-01 | Refs #6056 Add pagination to ComplianceCheckSet#index | cedricnjanga | |
| 2018-02-27 | Merge pull request #339 from af83/5878-fix-ComplianceChecksController-show | Luc Donnet | |
| 5878 Add ComplianceCheck#show | |||
| 2018-02-27 | Fix prerequisite access for compliance_check and compliance_control Refs ↵ | Luc Donnet | |
| #5878 @1 | |||
| 2018-02-27 | Refs #5878; Refactor ComplianceChecksController | Zog | |
| Use InheritedResources helpers | |||
| 2018-02-27 | Merge pull request #321 from af83/5979_change_export_csv_filenames | Luc Donnet | |
| Refs #5979 Change export CSV filenames to have a readable date in it | |||
| 2018-02-27 | Don't use all compliance_control_set from stif organisation. We will use ↵5950_allow_user_to_see_ccset_from_other_organisation | Luc Donnet | |
| later compliance_control_set selected by stif organisatoon Refs #5950 @2 | |||
| 2018-02-23 | Refs #5950 Fix 404 error when user wants to see CCSet from other organisation : | cedricnjanga | |
| - remove begin_association_chain in controller - Change collecyion to only see user organisayion CCSet and STIF CCSet - add policy for show action | |||
| 2018-02-23 | Refs 5878; Add ComplianceCheck#show | Zog | |
| 2018-02-22 | Return false in has_feature? when no organisation is defined. Refs #6007 | Alban Peignier | |
| 2018-02-21 | Refs #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-20 | Refs #5979 Change export CSV filenames to have a readable date in it5979_change_export_csv_filenames | cedricnjanga | |
| 2018-02-20 | Refs #5901; Makes TimeTable search accent insensitive | Zog | |
| 2018-02-20 | Merge pull request #308 from ↵ | Alban Peignier | |
| af83/5911-stops-filter-on-referential-journeys-index Better stops filters on ReferentialVJs#index. Refs #5911 | |||
| 2018-02-20 | Merge pull request #294 from af83/5863-use-shallow-urls-for-referentials | Luc Donnet | |
| 5863 Remove workbench id from the querystring | |||
| 2018-02-20 | Refs #5863 @6h; Remove workbench id from the querystring | Zog | |
| Infer it when possible, and use a nested otherwise | |||
| 2018-02-20 | Replace current_workgroup by referential.workgroup. Refs #5867 | Alban Peignier | |
| 2018-02-19 | Search VehicleJourneys with one StopArea or two ordered StopAreas. Refs #5911 | Alban Peignier | |
| 2018-02-19 | Refs #5911 @2h; Better stops filters on ReferentialVJs#index | Zog | |
| 2018-02-19 | Merge pull request #303 from af83/5899-use-waiting-time-in-schedules | Alban Peignier | |
| Use waiting_time in schedules computation. Refs #5899 | |||
| 2018-02-19 | Merge pull request #309 from af83/5919-make-coluns-sortable | Alban Peignier | |
| Make ReferentialVJs#index sortable. Refs #5919 | |||
