You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Le site n'utilise plus les geojson des ressources communautaires (#2020)
* add geojson file size information in payload
* function to get a resource related geojson
* same thing for a dataset
* add assign for resource controller
* add assign for dataset controller
* update resource view existing functions accordingly
* plug the new function for resources
* use the new function for dataset details page
* add a test
* add condition on convert_to format
* update test
* format file
* add nil case (can happen in tests)
* don't match, assert equal
* use the updated_at field of resource_history
so we know when was the last check
* update the tests
* use that new information
* update test
* new function to convert seconds to hours and minutes
* finally add the information to the webpage
* mix format
* credo + warning
* simplify test
* correct file_size computation
* use a dedicated field for freshness information
* valide_at should be filled when creating resource !
* change field name
* correct merge issue
Co-authored-by: Thibaut Barrère <[email protected]>
<%=renderTransportWeb.DatasetView,"_resources_container.html",conn: @conn,resources: gtfs_rt_official_resources(@dataset),title: dgettext("page-dataset-details","GTFS real time resources") %>
<%=dgettext("validations","This GeoJSON was up-to-date with the GTFS resource %{hours} ago.",hours: hours_ago(associated_geojson.resource_history_last_up_to_date_at))%>
0 commit comments